@open-wa/wa-automate 4.54.0 → 4.54.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -41,6 +41,7 @@ const fs = __importStar(require("fs/promises"));
41
41
  const death_1 = __importDefault(require("death"));
42
42
  // import puppeteer from 'puppeteer-extra';
43
43
  const puppeteer_config_1 = require("../config/puppeteer.config");
44
+ const puppeteer_1 = require("puppeteer");
44
45
  const events_1 = require("./events");
45
46
  const pico_s3_1 = require("pico-s3");
46
47
  // eslint-disable-next-line @typescript-eslint/no-var-requires
@@ -457,6 +458,11 @@ function initBrowser(sessionId, config = {}, spinner) {
457
458
  browserDownloadSpinner.succeed('Something went wrong while downloading the browser');
458
459
  }
459
460
  }
461
+ /**
462
+ * Explicit fallback due to pptr 19
463
+ */
464
+ if (!config.executablePath)
465
+ config.executablePath = (0, puppeteer_1.executablePath)();
460
466
  if (((_a = config === null || config === void 0 ? void 0 : config.proxyServerCredentials) === null || _a === void 0 ? void 0 : _a.address) && (config === null || config === void 0 ? void 0 : config.useNativeProxy))
461
467
  puppeteer_config_1.puppeteerConfig.chromiumArgs.push(`--proxy-server=${config.proxyServerCredentials.address}`);
462
468
  if (config === null || config === void 0 ? void 0 : config.browserWsEndpoint)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.54.0",
3
+ "version": "4.54.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",