@open-wa/wa-automate 4.35.1 → 4.35.2

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.
@@ -316,8 +316,6 @@ function create(config = {}) {
316
316
  //@ts-ignore
317
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
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
319
  return false;
322
320
  }));
323
321
  if (VALID_SESSION) {
@@ -433,6 +431,8 @@ function create(config = {}) {
433
431
  return client;
434
432
  }
435
433
  else {
434
+ const storeKeys = yield waPage.evaluate(`Object.keys(window.Store || {})`);
435
+ logging_1.log.info("Store keys", storeKeys);
436
436
  spinner.fail('The session is invalid. Retrying');
437
437
  yield (0, browser_1.kill)(waPage);
438
438
  return yield create(config);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.35.1",
3
+ "version": "4.35.2",
4
4
  "licenseCheckUrl": "https://funcs.openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://funcs.openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",