@open-wa/wa-automate 4.59.0 → 4.59.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -305,7 +305,7 @@ class Client {
305
305
  * Wait for internal session to load earlier messages
306
306
  */
307
307
  logging_1.log.info('Waiting for internal session to finish syncing');
308
- const syncT = yield (0, tools_1.timePromise)(() => this._page.waitForFunction(() => WAPI.isSessionLoaded(), { timeout: 20000, polling: 'mutation' }));
308
+ const syncT = yield (0, tools_1.timePromise)(() => this._page.waitForFunction(() => WAPI.isSessionLoaded(), { timeout: 20000, polling: 'mutation' })).catch(() => 20001);
309
309
  logging_1.log.info(`Internal session finished syncing in ${syncT}ms`);
310
310
  if ((_a = this._createConfig) === null || _a === void 0 ? void 0 : _a.eventMode) {
311
311
  yield this.registerAllSimpleListenersOnEv();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.59.0",
3
+ "version": "4.59.1",
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",