@open-wa/wa-automate 4.32.6 → 4.32.9

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.
@@ -322,7 +322,8 @@ const setupSocketServer = (cliConfig, client) => __awaiter(void 0, void 0, void
322
322
  io.use((socket, next) => {
323
323
  if (socket.handshake.auth["apiKey"] == cliConfig.key)
324
324
  next();
325
- next(new Error("Authentication error"));
325
+ else
326
+ next(new Error("Authentication error"));
326
327
  });
327
328
  }
328
329
  io.on("connection", (socket) => {
@@ -103,8 +103,7 @@ function initPage(sessionId, config, qrManager, customUserAgent, spinner, _page,
103
103
  const cacheEnabled = (config === null || config === void 0 ? void 0 : config.cacheEnabled) === false ? false : true;
104
104
  const blockCrashLogs = (config === null || config === void 0 ? void 0 : config.blockCrashLogs) === false ? false : true;
105
105
  setupPromises.push(waPage.setBypassCSP((config === null || config === void 0 ? void 0 : config.bypassCSP) || false));
106
- if (!(config === null || config === void 0 ? void 0 : config.multiDevice))
107
- setupPromises.push(waPage.setCacheEnabled(cacheEnabled));
106
+ setupPromises.push(waPage.setCacheEnabled(cacheEnabled));
108
107
  const blockAssets = !(config === null || config === void 0 ? void 0 : config.headless) ? false : (config === null || config === void 0 ? void 0 : config.blockAssets) || false;
109
108
  if (blockAssets) {
110
109
  const { default: block } = yield Promise.resolve().then(() => __importStar(require('puppeteer-extra-plugin-block-resources')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-wa/wa-automate",
3
- "version": "4.32.6",
3
+ "version": "4.32.9",
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",
@@ -144,7 +144,7 @@
144
144
  "patch-package": "^6.2.2",
145
145
  "pico-s3": "^1.0.1",
146
146
  "postman-2-swagger": "^0.5.0",
147
- "puppeteer": "^13.0.0",
147
+ "puppeteer": "^13.5.1",
148
148
  "puppeteer-extra": "^3.2.3",
149
149
  "puppeteer-extra-plugin-block-resources": "^2.3.0",
150
150
  "puppeteer-extra-plugin-devtools": "^2.3.3",