@open-wa/wa-automate 4.23.6 → 4.23.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -117,7 +117,7 @@ function initPage(sessionId, config, customUserAgent, spinner) {
|
|
117
117
|
}
|
118
118
|
spinner === null || spinner === void 0 ? void 0 : spinner.info('Loading session data');
|
119
119
|
let sessionjson = getSessionDataFromFile(sessionId, config, spinner);
|
120
|
-
if (!sessionjson && config.sessionDataBucketAuth) {
|
120
|
+
if (!sessionjson && sessionjson !== "" && config.sessionDataBucketAuth) {
|
121
121
|
try {
|
122
122
|
spinner === null || spinner === void 0 ? void 0 : spinner.info('Unable to find session data file locally, attempting to find session data in cloud storage..');
|
123
123
|
sessionjson = JSON.parse(Buffer.from(yield pico_s3_1.getTextFile(Object.assign(Object.assign({ directory: '_sessionData' }, JSON.parse(Buffer.from(config.sessionDataBucketAuth, 'base64').toString('ascii'))), { filename: `${config.sessionId || 'session'}.data.json` })), 'base64').toString('ascii'));
|
@@ -377,7 +377,9 @@ function create(config = {}) {
|
|
377
377
|
if ((config === null || config === void 0 ? void 0 : config.licenseKey) || me._serialized !== earlyWid) {
|
378
378
|
yield getAndInjectLicense(waPage, config, me, debugInfo, spinner, me._serialized !== earlyWid ? false : yield licensePromise);
|
379
379
|
}
|
380
|
+
spinner.info("Finalizing web session...");
|
380
381
|
yield init_patch_1.injectInitPatch(waPage);
|
382
|
+
spinner.info("Finalizing client...");
|
381
383
|
yield client.loaded();
|
382
384
|
if (config.ensureHeadfulIntegrity && !attemptingReauth) {
|
383
385
|
spinner.info("QR scanned for the first time. Refreshing...");
|
package/package.json
CHANGED