@open-wa/wa-automate 4.27.5 → 4.27.6

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.
@@ -79,6 +79,9 @@ const waitForRipeSession = (waPage) => __awaiter(void 0, void 0, void 0, functio
79
79
  });
80
80
  exports.waitForRipeSession = waitForRipeSession;
81
81
  const sessionDataInvalid = (waPage) => __awaiter(void 0, void 0, void 0, function* () {
82
+ yield waPage
83
+ .waitForFunction('!window.getQrPng', { timeout: 0, polling: 'mutation' });
84
+ yield browser_1.injectApi(waPage);
82
85
  yield waPage
83
86
  .waitForFunction('!window.getQrPng', { timeout: 0, polling: 'mutation' });
84
87
  //if the code reaches here it means the browser was refreshed. Nuke the session data and restart `create`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.27.5",
3
+ "version": "4.27.6",
4
4
  "licenseCheckUrl": "https://openwa.dev/license-check",
5
5
  "brokenMethodReportUrl": "https://openwa.dev/report-bm",
6
6
  "patches": "https://cdn.openwa.dev/patches.json",