@wppconnect-team/wppconnect 1.37.9 → 1.37.11
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 +8 -0
- package/dist/api/layers/host.layer.js +6 -6
- package/dist/api/whatsapp.js +1 -1
- package/dist/controllers/initializer.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
## <small>1.37.11 (2026-01-19)</small>
|
|
2
|
+
|
|
3
|
+
- chore(deps): update setup-node action to v6.2.0 and bump wa-version and puppeteer dependencies (#267 ([6da2727](https://github.com/wppconnect-team/wppconnect/commit/6da2727)), closes [#2670](https://github.com/wppconnect-team/wppconnect/issues/2670)
|
|
4
|
+
|
|
5
|
+
## <small>1.37.10 (2026-01-19)</small>
|
|
6
|
+
|
|
7
|
+
- Merge pull request #2629 from uriva/master ([61670a9](https://github.com/wppconnect-team/wppconnect/commit/61670a9)), closes [#2629](https://github.com/wppconnect-team/wppconnect/issues/2629)
|
|
8
|
+
|
|
1
9
|
## <small>1.37.9 (2026-01-05)</small>
|
|
2
10
|
|
|
3
11
|
- fix: Upgrade whatsapp version ([5a02155](https://github.com/wppconnect-team/wppconnect/commit/5a02155))
|
|
@@ -500,7 +500,7 @@ var HostLayer = /** @class */ (function () {
|
|
|
500
500
|
this.log('warn', 'Login Fail');
|
|
501
501
|
(_d = this.statusFind) === null || _d === void 0 ? void 0 : _d.call(this, 'qrReadFail', this.session);
|
|
502
502
|
this.tryAutoClose();
|
|
503
|
-
throw 'Failed to read the QRCode';
|
|
503
|
+
throw new Error('Failed to read the QRCode');
|
|
504
504
|
}
|
|
505
505
|
return [3 /*break*/, 7];
|
|
506
506
|
case 6:
|
|
@@ -527,7 +527,7 @@ var HostLayer = /** @class */ (function () {
|
|
|
527
527
|
this.log('warn', 'Phone not connected');
|
|
528
528
|
(_f = this.statusFind) === null || _f === void 0 ? void 0 : _f.call(this, 'phoneNotConnected', this.session);
|
|
529
529
|
this.tryAutoClose();
|
|
530
|
-
throw 'Phone not connected';
|
|
530
|
+
throw new Error('Phone not connected');
|
|
531
531
|
}
|
|
532
532
|
this.cancelAutoClose();
|
|
533
533
|
return [2 /*return*/, true];
|
|
@@ -535,19 +535,19 @@ var HostLayer = /** @class */ (function () {
|
|
|
535
535
|
if (authenticated === false) {
|
|
536
536
|
this.tryAutoClose();
|
|
537
537
|
this.log('warn', 'Not logged');
|
|
538
|
-
throw 'Not logged';
|
|
538
|
+
throw new Error('Not logged');
|
|
539
539
|
}
|
|
540
540
|
this.tryAutoClose();
|
|
541
541
|
if (this.autoCloseCalled) {
|
|
542
542
|
this.log('error', 'Auto Close Called');
|
|
543
|
-
throw 'Auto Close Called';
|
|
543
|
+
throw new Error('Auto Close Called');
|
|
544
544
|
}
|
|
545
545
|
if (this.page.isClosed()) {
|
|
546
546
|
this.log('error', 'Page Closed');
|
|
547
|
-
throw 'Page Closed';
|
|
547
|
+
throw new Error('Page Closed');
|
|
548
548
|
}
|
|
549
549
|
this.log('error', 'Unknow error');
|
|
550
|
-
throw 'Unknow error';
|
|
550
|
+
throw new Error('Unknow error');
|
|
551
551
|
}
|
|
552
552
|
});
|
|
553
553
|
});
|
package/dist/api/whatsapp.js
CHANGED
|
@@ -456,7 +456,7 @@ var Whatsapp = /** @class */ (function (_super) {
|
|
|
456
456
|
case 7: return [3 /*break*/, 9];
|
|
457
457
|
case 8:
|
|
458
458
|
error_2 = _a.sent();
|
|
459
|
-
throw 'Error trying to download the file.';
|
|
459
|
+
throw new Error('Error trying to download the file.');
|
|
460
460
|
case 9:
|
|
461
461
|
buff = Buffer.from(res.data, 'binary');
|
|
462
462
|
return [2 /*return*/, (0, decrypt_1.magix)(buff, message.mediaKey, message.type, message.size)];
|
|
@@ -291,7 +291,7 @@ function create(sessionOrOption, catchQR, statusFind, onLoadingScreen, catchLink
|
|
|
291
291
|
case 10:
|
|
292
292
|
isLogged = _b.sent();
|
|
293
293
|
if (!isLogged) {
|
|
294
|
-
throw 'Not Logged';
|
|
294
|
+
throw new Error('Not Logged');
|
|
295
295
|
}
|
|
296
296
|
waitLoginPromise_1 = null;
|
|
297
297
|
client_1.onStateChange(function (state) { return __awaiter(_this, void 0, void 0, function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect-team/wppconnect",
|
|
3
|
-
"version": "1.37.
|
|
3
|
+
"version": "1.37.11",
|
|
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",
|
|
@@ -55,17 +55,17 @@
|
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://github.com/wppconnect-team/wppconnect#readme",
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@babel/core": "^7.28.
|
|
59
|
-
"@babel/eslint-parser": "^7.28.
|
|
58
|
+
"@babel/core": "^7.28.6",
|
|
59
|
+
"@babel/eslint-parser": "^7.28.6",
|
|
60
60
|
"@babel/eslint-plugin": "^7.27.1",
|
|
61
|
-
"@babel/preset-env": "^7.28.
|
|
62
|
-
"@commitlint/cli": "^20.3.
|
|
63
|
-
"@commitlint/config-conventional": "^20.3.
|
|
64
|
-
"@commitlint/cz-commitlint": "^20.3.
|
|
61
|
+
"@babel/preset-env": "^7.28.6",
|
|
62
|
+
"@commitlint/cli": "^20.3.1",
|
|
63
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
64
|
+
"@commitlint/cz-commitlint": "^20.3.1",
|
|
65
65
|
"@types/atob": "^2.1.4",
|
|
66
66
|
"@types/mime-types": "^3.0.1",
|
|
67
67
|
"@types/mocha": "^10.0.10",
|
|
68
|
-
"@types/node": "^24.10.
|
|
68
|
+
"@types/node": "^24.10.9",
|
|
69
69
|
"@types/shelljs": "^0.10.0",
|
|
70
70
|
"@types/tmp": "^0.2.6",
|
|
71
71
|
"@types/ws": "^8.18.1",
|
|
@@ -84,17 +84,17 @@
|
|
|
84
84
|
"prettier": "^2.8.8",
|
|
85
85
|
"pretty-quick": "^4.2.2",
|
|
86
86
|
"regenerator-runtime": "^0.14.1",
|
|
87
|
-
"release-it": "^19.2.
|
|
87
|
+
"release-it": "^19.2.3",
|
|
88
88
|
"shx": "^0.4.0",
|
|
89
89
|
"ts-node": "^10.9.2",
|
|
90
|
-
"typedoc": "^0.28.
|
|
90
|
+
"typedoc": "^0.28.16",
|
|
91
91
|
"typescript": "^5.9.3",
|
|
92
92
|
"webpack": "^5.104.1",
|
|
93
93
|
"webpack-cli": "^6.0.1"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@wppconnect/wa-js": "^3.19.
|
|
97
|
-
"@wppconnect/wa-version": "^1.5.
|
|
96
|
+
"@wppconnect/wa-js": "^3.19.8",
|
|
97
|
+
"@wppconnect/wa-version": "^1.5.3081",
|
|
98
98
|
"atob": "^2.1.2",
|
|
99
99
|
"axios": "^1.13.2",
|
|
100
100
|
"boxen": "^5.1.2",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
"logform": "^2.7.0",
|
|
109
109
|
"lookpath": "^1.2.3",
|
|
110
110
|
"mime-types": "^3.0.2",
|
|
111
|
-
"puppeteer": "^24.
|
|
111
|
+
"puppeteer": "^24.35.0",
|
|
112
112
|
"puppeteer-extra": "^3.3.6",
|
|
113
113
|
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
114
114
|
"puppeteer-extra-plugin-user-data-dir": "^2.4.1",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"tmp": "^0.2.5",
|
|
122
122
|
"tree-kill": "^1.2.2",
|
|
123
123
|
"winston": "^3.19.0",
|
|
124
|
-
"ws": "^8.
|
|
124
|
+
"ws": "^8.19.0"
|
|
125
125
|
},
|
|
126
126
|
"optionalDependencies": {
|
|
127
127
|
"@img/sharp-win32-x64": "^0.34.5",
|