@open-wa/wa-automate 4.71.0 → 4.71.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.
@@ -97,13 +97,11 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
97
97
  waPage.on("framenavigated", (frame) => __awaiter(this, void 0, void 0, function* () {
98
98
  try {
99
99
  const frameNavPromises = [];
100
- const content = yield frame.content();
101
- const webpPackKey = (((content.match(/self.(?:.*)=self.*\|\|\[\]/g) || [])[0] || "").match(/self.*\w?=/g) || [""])[0].replace("=", "").replace("self.", "") || false;
102
- logging_1.log.info(`FRAME NAV, ${frame.url()}, ${webpPackKey}`);
103
- if (webpPackKey) {
104
- frameNavPromises.push(injectApi(waPage, spinner, true));
105
- frameNavPromises.push(qrManager.waitFirstQr(waPage, config, spinner));
106
- }
100
+ // const content = await frame.content() //not using content right now so save some ms by commenting out
101
+ logging_1.log.info(`FRAME NAV DETECTED, ${frame.url()}, Reinjecting APIs...`);
102
+ // there's no more webpack so reinject anyways
103
+ frameNavPromises.push(injectApi(waPage, spinner, true));
104
+ frameNavPromises.push(qrManager.waitFirstQr(waPage, config, spinner));
107
105
  if (frame.url().includes('post_logout=1')) {
108
106
  console.log("Session most likely logged out");
109
107
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.71.0",
3
+ "version": "4.71.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",