X-Git-Url: http://git.squeep.com/?p=squeep-mystery-box;a=blobdiff_plain;f=lib%2Fmystery-box.js;fp=lib%2Fmystery-box.js;h=55d1c3827746ccbc35b2e2e64ce30e9df692888f;hp=a2ea8a82b05919ccac0c166f681cfe2a64b56fce;hb=bb961eddde4819cb9ac0a75151a99ea8e6e5ba53;hpb=4a59439dd745f0c4e772c0c1c863af0f5f567d79 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;