@periskope/baileys 6.7.17-alpha.5 → 6.7.18-alpha.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/README.md +1263 -4
- package/WAProto/index.d.ts +3212 -122
- package/WAProto/index.js +9635 -299
- package/lib/Defaults/baileys-version.json +1 -1
- package/lib/WAUSync/Protocols/USyncStatusProtocol.js +3 -3
- package/package.json +2 -1
|
@@ -16,13 +16,13 @@ class USyncStatusProtocol {
|
|
|
16
16
|
return null;
|
|
17
17
|
}
|
|
18
18
|
parser(node) {
|
|
19
|
-
var _a;
|
|
19
|
+
var _a, _b, _c;
|
|
20
20
|
if (node.tag === 'status') {
|
|
21
21
|
(0, WABinary_1.assertNodeErrorFree)(node);
|
|
22
|
-
let status = node === null || node === void 0 ? void 0 : node.content.toString();
|
|
22
|
+
let status = (_b = (_a = node === null || node === void 0 ? void 0 : node.content) === null || _a === void 0 ? void 0 : _a.toString()) !== null && _b !== void 0 ? _b : null;
|
|
23
23
|
const setAt = new Date(+((node === null || node === void 0 ? void 0 : node.attrs.t) || 0) * 1000);
|
|
24
24
|
if (!status) {
|
|
25
|
-
if (+((
|
|
25
|
+
if (+((_c = node.attrs) === null || _c === void 0 ? void 0 : _c.code) === 401) {
|
|
26
26
|
status = '';
|
|
27
27
|
}
|
|
28
28
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@periskope/baileys",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.18-alpha.1",
|
|
4
4
|
"description": "WhatsApp API", "keywords": [
|
|
5
5
|
"whatsapp",
|
|
6
6
|
"automation"
|
|
@@ -61,6 +61,7 @@
|
|
|
61
61
|
"json": "^11.0.0",
|
|
62
62
|
"link-preview-js": "^3.0.0",
|
|
63
63
|
"open": "^8.4.2",
|
|
64
|
+
"protobufjs-cli": "^1.1.3",
|
|
64
65
|
"release-it": "^15.10.3",
|
|
65
66
|
"sharp": "^0.32.6",
|
|
66
67
|
"ts-jest": "^27.0.3",
|