@wppconnect-team/wppconnect 1.27.0 → 1.27.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 1.27.1 (2023-06-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ - Reverting to previous fix as a temporary workaround ([#1718](https://github.com/wppconnect-team/wppconnect/issues/1718)) ([a0375b6](https://github.com/wppconnect-team/wppconnect/commit/a0375b6086507882600b4d24e12be23add1c4e29))
6
+
1
7
  # 1.27.0 (2023-06-02)
2
8
 
3
9
  ### Bug Fixes
@@ -378,10 +378,14 @@ function initBrowser(session, options, logger) {
378
378
  case 2:
379
379
  browser = _a.sent();
380
380
  return [3 /*break*/, 5];
381
- case 3: return [4 /*yield*/, puppeteer_extra_1.default.launch(__assign({ headless: options.headless ? 'new' : false, devtools: options.devtools, args: options.browserArgs
381
+ case 3: return [4 /*yield*/, puppeteer_extra_1.default.launch(__assign({ headless: options.headless, devtools: options.devtools, args: options.browserArgs
382
382
  ? options.browserArgs
383
383
  : __spreadArray([], puppeteer_config_1.puppeteerConfig.chromiumArgs, true) }, options.puppeteerOptions))];
384
384
  case 4:
385
+ /**
386
+ * Setting the headless mode to the old Puppeteer mode, when using the 'new' mode, results in an error on CentOS7 and Debian11.
387
+ * Temporary fix.
388
+ */
385
389
  browser = _a.sent();
386
390
  // Register an exit callback to remove user-data-dir
387
391
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "1.27.0",
3
+ "version": "1.27.1",
4
4
  "description": "WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination... 😀🤔💭",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -86,7 +86,7 @@
86
86
  "prettier": "^2.8.8",
87
87
  "pretty-quick": "^3.1.3",
88
88
  "regenerator-runtime": "^0.13.11",
89
- "release-it": "^15.10.3",
89
+ "release-it": "^15.10.5",
90
90
  "shx": "^0.3.4",
91
91
  "ts-node": "^10.9.1",
92
92
  "typedoc": "^0.23.28",