* @param {Object|Buffer} contents
* @param {Number=} version
* @param {Number=} flags
- * @returns {String}
+ * @returns {Promise<String>}
*/
async pack(contents, version = this.bestVersion, flags = this.defaultFlags) {
const { stats, timingsMs } = MysteryBox._newStats('pack');
/**
* Take contents out of a mysterious box.
* @param {String} box - Base64URL encoded payload
- * @returns {Object}
+ * @returns {Promise<Object>}
*/
async unpack(box) {
const { stats, timingsMs } = MysteryBox._newStats('unpack');
/**
* Everyone loves numbers.
* @param {Object} timingsMs
- * @returns
+ * @returns {Object}
*/
static _timingsLog({ start, preCompress, postCompress, preCrypt, postCrypt, end }) {
return {
}
-module.exports = MysteryBox;
\ No newline at end of file
+module.exports = MysteryBox;