From bb961eddde4819cb9ac0a75151a99ea8e6e5ba53 Mon Sep 17 00:00:00 2001 From: Justin Wind Date: Thu, 29 Feb 2024 17:55:46 -0800 Subject: [PATCH] minor doc update --- lib/mystery-box.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/mystery-box.js b/lib/mystery-box.js index a2ea8a8..55d1c38 100644 --- a/lib/mystery-box.js +++ b/lib/mystery-box.js @@ -305,7 +305,7 @@ class MysteryBox extends EventEmitter { * @param {Object|Buffer} contents * @param {Number=} version * @param {Number=} flags - * @returns {String} + * @returns {Promise} */ async pack(contents, version = this.bestVersion, flags = this.defaultFlags) { const { stats, timingsMs } = MysteryBox._newStats('pack'); @@ -399,7 +399,7 @@ class MysteryBox extends EventEmitter { /** * Take contents out of a mysterious box. * @param {String} box - Base64URL encoded payload - * @returns {Object} + * @returns {Promise} */ async unpack(box) { const { stats, timingsMs } = MysteryBox._newStats('unpack'); @@ -522,7 +522,7 @@ class MysteryBox extends EventEmitter { /** * Everyone loves numbers. * @param {Object} timingsMs - * @returns + * @returns {Object} */ static _timingsLog({ start, preCompress, postCompress, preCrypt, postCrypt, end }) { return { @@ -534,4 +534,4 @@ class MysteryBox extends EventEmitter { } -module.exports = MysteryBox; \ No newline at end of file +module.exports = MysteryBox; -- 2.45.2