@open-wa/wa-automate 4.59.0 → 4.59.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.
@@ -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",