@wppconnect-team/wppconnect 1.23.0 → 1.23.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 +6 -0
- package/dist/api/layers/host.layer.js +11 -7
- package/package.json +16 -16
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 1.23.1 (2023-03-25)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- Fixed multiple inChat emit events ([#1598](https://github.com/wppconnect-team/wppconnect/issues/1598)) ([4900765](https://github.com/wppconnect-team/wppconnect/commit/4900765f20a7c879e597ce01ebcce05bf244006b))
|
|
6
|
+
|
|
1
7
|
# 1.23.0 (2023-03-12)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -261,14 +261,18 @@ var HostLayer = /** @class */ (function () {
|
|
|
261
261
|
return __awaiter(this, void 0, void 0, function () {
|
|
262
262
|
var inChat;
|
|
263
263
|
return __generator(this, function (_b) {
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
264
|
+
switch (_b.label) {
|
|
265
|
+
case 0: return [4 /*yield*/, (0, auth_1.isInsideChat)(this.page).catch(function () { return null; })];
|
|
266
|
+
case 1:
|
|
267
|
+
inChat = _b.sent();
|
|
268
|
+
this.isInChat = !!inChat;
|
|
269
|
+
if (!inChat) {
|
|
270
|
+
return [2 /*return*/];
|
|
271
|
+
}
|
|
272
|
+
this.log('http', 'Connected');
|
|
273
|
+
(_a = this.statusFind) === null || _a === void 0 ? void 0 : _a.call(this, 'inChat', this.session);
|
|
274
|
+
return [2 /*return*/];
|
|
268
275
|
}
|
|
269
|
-
this.log('http', 'Connected');
|
|
270
|
-
(_a = this.statusFind) === null || _a === void 0 ? void 0 : _a.call(this, 'inChat', this.session);
|
|
271
|
-
return [2 /*return*/];
|
|
272
276
|
});
|
|
273
277
|
});
|
|
274
278
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect-team/wppconnect",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.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",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
},
|
|
55
55
|
"homepage": "https://github.com/wppconnect-team/wppconnect#readme",
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/core": "^7.21.
|
|
58
|
-
"@babel/eslint-parser": "^7.
|
|
57
|
+
"@babel/core": "^7.21.3",
|
|
58
|
+
"@babel/eslint-parser": "^7.21.3",
|
|
59
59
|
"@babel/eslint-plugin": "^7.19.1",
|
|
60
60
|
"@babel/preset-env": "^7.20.2",
|
|
61
61
|
"@commitlint/cli": "^17.4.4",
|
|
@@ -65,38 +65,38 @@
|
|
|
65
65
|
"@types/atob": "^2.1.2",
|
|
66
66
|
"@types/mime-types": "^2.1.1",
|
|
67
67
|
"@types/mocha": "^10.0.1",
|
|
68
|
-
"@types/node": "^18.15.
|
|
68
|
+
"@types/node": "^18.15.5",
|
|
69
69
|
"@types/rimraf": "^3.0.2",
|
|
70
70
|
"@types/sharp": "^0.31.1",
|
|
71
71
|
"@types/shelljs": "^0.8.11",
|
|
72
72
|
"@types/tmp": "^0.2.3",
|
|
73
73
|
"@types/ws": "^8.5.4",
|
|
74
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
75
|
-
"@typescript-eslint/parser": "^5.
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^5.56.0",
|
|
75
|
+
"@typescript-eslint/parser": "^5.56.0",
|
|
76
76
|
"babel-loader": "^9.1.2",
|
|
77
77
|
"commitizen": "^4.3.0",
|
|
78
78
|
"concurrently": "^7.6.0",
|
|
79
79
|
"conventional-changelog-cli": "^2.2.2",
|
|
80
|
-
"eslint": "^8.
|
|
81
|
-
"eslint-config-prettier": "^8.
|
|
80
|
+
"eslint": "^8.36.0",
|
|
81
|
+
"eslint-config-prettier": "^8.8.0",
|
|
82
82
|
"eslint-plugin-header": "^3.1.1",
|
|
83
83
|
"eslint-plugin-prettier": "^4.2.1",
|
|
84
84
|
"husky": "^8.0.3",
|
|
85
85
|
"mocha": "^10.2.0",
|
|
86
|
-
"prettier": "^2.8.
|
|
86
|
+
"prettier": "^2.8.6",
|
|
87
87
|
"pretty-quick": "^3.1.3",
|
|
88
88
|
"regenerator-runtime": "^0.13.11",
|
|
89
|
-
"release-it": "^15.
|
|
89
|
+
"release-it": "^15.9.1",
|
|
90
90
|
"shx": "^0.3.4",
|
|
91
91
|
"ts-node": "^10.9.1",
|
|
92
|
-
"typedoc": "^0.23.
|
|
92
|
+
"typedoc": "^0.23.28",
|
|
93
93
|
"typescript": "^4.9.5",
|
|
94
|
-
"webpack": "^5.
|
|
94
|
+
"webpack": "^5.76.2",
|
|
95
95
|
"webpack-cli": "^5.0.1"
|
|
96
96
|
},
|
|
97
97
|
"dependencies": {
|
|
98
|
-
"@wppconnect/wa-js": "^2.22.
|
|
99
|
-
"@wppconnect/wa-version": "^1.2.
|
|
98
|
+
"@wppconnect/wa-js": "^2.22.2",
|
|
99
|
+
"@wppconnect/wa-version": "^1.2.10",
|
|
100
100
|
"atob": "^2.1.2",
|
|
101
101
|
"axios": "^1.3.4",
|
|
102
102
|
"boxen": "^5.1.2",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"logform": "^2.5.1",
|
|
111
111
|
"lookpath": "^1.2.2",
|
|
112
112
|
"mime-types": "^2.1.35",
|
|
113
|
-
"puppeteer": "^19.7.
|
|
113
|
+
"puppeteer": "^19.7.5",
|
|
114
114
|
"puppeteer-extra": "^3.3.6",
|
|
115
115
|
"puppeteer-extra-plugin-stealth": "^2.11.2",
|
|
116
116
|
"puppeteer-extra-plugin-user-data-dir": "^2.4.1",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"tmp": "^0.2.1",
|
|
124
124
|
"tree-kill": "^1.2.2",
|
|
125
125
|
"winston": "^3.8.2",
|
|
126
|
-
"ws": "^8.
|
|
126
|
+
"ws": "^8.13.0"
|
|
127
127
|
},
|
|
128
128
|
"optionalDependencies": {
|
|
129
129
|
"fsevents": "^2.3.2"
|