shiqiyuebaileysmultidevice
Advanced tools
Comparing version 4.0.10 to 4.0.11
@@ -16,1 +16,2 @@ /// <reference types="node" /> | ||
}; | ||
export declare function stringifyAuth(auth: any): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.useAuthState = exports.useSingleFileAuthState = exports.initAuthCreds = exports.addTransactionCapability = void 0; | ||
exports.stringifyAuth = exports.useAuthState = exports.useSingleFileAuthState = exports.initAuthCreds = exports.addTransactionCapability = void 0; | ||
const boom_1 = require("@hapi/boom"); | ||
@@ -172,3 +172,3 @@ const crypto_1 = require("crypto"); | ||
logger && logger.trace('saving auth state'); | ||
const authStr = JSON.stringify({ creds, keys }, generics_1.BufferJSON.replacer, 2); | ||
const authStr = stringifyAuth({ creds, keys }); | ||
authBuffer.write(authStr); | ||
@@ -220,1 +220,5 @@ ev.emit('save-state', authStr); | ||
exports.useAuthState = useAuthState; | ||
function stringifyAuth(auth) { | ||
return JSON.stringify(auth, generics_1.BufferJSON.replacer, 2); | ||
} | ||
exports.stringifyAuth = stringifyAuth; |
{ | ||
"name": "shiqiyuebaileysmultidevice", | ||
"version": "4.0.10", | ||
"version": "4.0.11", | ||
"description": "WhatsApp API", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/adiwajshing/Baileys", |
4567131
92046