@open-wa/wa-automate 4.31.3 → 4.31.4

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.
@@ -309,7 +309,7 @@ const getSessionDataFilePath = (sessionId, config) => {
309
309
  return false;
310
310
  };
311
311
  exports.getSessionDataFilePath = getSessionDataFilePath;
312
- const addScript = (page, js) => __awaiter(void 0, void 0, void 0, function* () { return page.evaluate(yield script_preloader_1.scriptLoader.getScript(js)); });
312
+ const addScript = (page, js) => __awaiter(void 0, void 0, void 0, function* () { return page.evaluate(yield script_preloader_1.scriptLoader.getScript(js)).catch(e => logging_1.log.error(`Injection error: ${js}`, e)); });
313
313
  exports.addScript = addScript;
314
314
  // (page: Page, js : string) : Promise<unknown> => page.addScriptTag({
315
315
  // path: require.resolve(path.join(__dirname, '../lib', js))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.31.3",
3
+ "version": "4.31.4",
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",