@open-wa/wa-automate 4.35.0 → 4.35.1
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.
@@ -314,7 +314,12 @@ function create(config = {}) {
|
|
314
314
|
yield (0, exports.timeout)(5000);
|
315
315
|
}
|
316
316
|
//@ts-ignore
|
317
|
-
const VALID_SESSION = yield waPage.waitForFunction(`window.Store && window.Store.Msg ? true : false`, { timeout: 9000, polling: 200 }).catch(e =>
|
317
|
+
const VALID_SESSION = yield waPage.waitForFunction(`window.Store && window.Store.Msg ? true : false`, { timeout: 9000, polling: 200 }).catch((e) => __awaiter(this, void 0, void 0, function* () {
|
318
|
+
logging_1.log.error("Valid session check failed", e);
|
319
|
+
const storeKeys = yield waPage.evaluate(`Object.keys(window.Store || {})`);
|
320
|
+
logging_1.log.info("Store keys", storeKeys);
|
321
|
+
return false;
|
322
|
+
}));
|
318
323
|
if (VALID_SESSION) {
|
319
324
|
/**
|
320
325
|
* Session is valid, attempt to preload patches
|
package/package.json
CHANGED