@queenanya/baileys 7.4.1 → 7.4.5
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 +2 -2
- package/lib/Defaults/index.js +2 -1
- package/package.json +20 -22
package/README.md
CHANGED
|
@@ -320,7 +320,7 @@ const sock = makeWASocket({ })
|
|
|
320
320
|
// the store can listen from a new socket once the current socket outlives its lifetime
|
|
321
321
|
store.bind(sock.ev)
|
|
322
322
|
|
|
323
|
-
sock.ev.on('chats.
|
|
323
|
+
sock.ev.on('chats.upsert', () => {
|
|
324
324
|
// can use "store.chats" however you want, even after the socket dies out
|
|
325
325
|
// "chats" => a KeyedDB instance
|
|
326
326
|
console.log('got chats', store.chats.all())
|
|
@@ -867,7 +867,7 @@ const result = await sock.getSubscribedNewsletters()
|
|
|
867
867
|
```
|
|
868
868
|
- To update the Groups Add privacy
|
|
869
869
|
``` ts
|
|
870
|
-
const value = 'all' // 'contacts' | 'contact_blacklist'
|
|
870
|
+
const value = 'all' // 'contacts' | 'contact_blacklist'
|
|
871
871
|
await sock.updateGroupsAddPrivacy(value)
|
|
872
872
|
```
|
|
873
873
|
- To update the Default Disappearing Mode
|
package/lib/Defaults/index.js
CHANGED
|
@@ -14,7 +14,8 @@ exports.DEFAULT_ORIGIN = 'https://web.whatsapp.com';
|
|
|
14
14
|
exports.DEF_CALLBACK_PREFIX = 'CB:';
|
|
15
15
|
exports.DEF_TAG_PREFIX = 'TAG:';
|
|
16
16
|
exports.PHONE_CONNECTION_CB = 'CB:Pong';
|
|
17
|
-
|
|
17
|
+
// export const WA_DEFAULT_EPHEMERAL = 7 * 24 * 60 * 60
|
|
18
|
+
exports.WA_DEFAULT_EPHEMERAL = 24 * 60 * 60;
|
|
18
19
|
exports.NOISE_MODE = 'Noise_XX_25519_AESGCM_SHA256\0\0\0\0';
|
|
19
20
|
exports.DICT_VERSION = 2;
|
|
20
21
|
exports.KEY_BUNDLE_TYPE = Buffer.from([5]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@queenanya/baileys",
|
|
3
|
-
"version": "7.4.
|
|
3
|
+
"version": "7.4.5",
|
|
4
4
|
"description": "WhatsApp API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"automation",
|
|
13
13
|
"multi-device"
|
|
14
14
|
],
|
|
15
|
-
"homepage": "https://github.com/QueenAnya/
|
|
15
|
+
"homepage": "https://github.com/QueenAnya/bail",
|
|
16
16
|
"repository": {
|
|
17
|
-
"url": "git@github.com:QueenAnya/
|
|
17
|
+
"url": "git@github.com:QueenAnya/bail"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"author": "Adhiraj Singh",
|
|
@@ -25,29 +25,13 @@
|
|
|
25
25
|
"WAProto/*",
|
|
26
26
|
"WASignalGroup/*.js"
|
|
27
27
|
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"build:all": "tsc && typedoc",
|
|
30
|
-
"build:docs": "typedoc",
|
|
31
|
-
"build:tsc": "tsc",
|
|
32
|
-
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
33
|
-
"changelog:preview": "conventional-changelog -p angular -u",
|
|
34
|
-
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
35
|
-
"example": "node --inspect -r ts-node/register Example/example.ts",
|
|
36
|
-
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
37
|
-
"lint": "eslint src --ext .js,.ts",
|
|
38
|
-
"lint:fix": "yarn lint --fix",
|
|
39
|
-
"prepack": "tsc",
|
|
40
|
-
"prepare": "tsc",
|
|
41
|
-
"release": "release-it",
|
|
42
|
-
"test": "jest"
|
|
43
|
-
},
|
|
44
28
|
"dependencies": {
|
|
45
29
|
"@adiwajshing/keyed-db": "^0.2.4",
|
|
46
30
|
"@queenanya/eslint-config": "github:whiskeysockets/eslint-config",
|
|
47
|
-
"@hapi/boom": "
|
|
31
|
+
"@hapi/boom": "* || latest",
|
|
48
32
|
"async-lock": "^1.4.1",
|
|
49
33
|
"audio-decode": "^2.2.0",
|
|
50
|
-
"axios": "
|
|
34
|
+
"axios": "* || latest || next",
|
|
51
35
|
"cache-manager": "^5.7.6",
|
|
52
36
|
"futoin-hkdf": "^1.5.3",
|
|
53
37
|
"json": "^11.0.0",
|
|
@@ -102,5 +86,19 @@
|
|
|
102
86
|
"sharp": {
|
|
103
87
|
"optional": true
|
|
104
88
|
}
|
|
89
|
+
},
|
|
90
|
+
"scripts": {
|
|
91
|
+
"build:all": "tsc && typedoc",
|
|
92
|
+
"build:docs": "typedoc",
|
|
93
|
+
"build:tsc": "tsc",
|
|
94
|
+
"changelog:last": "conventional-changelog -p angular -r 2",
|
|
95
|
+
"changelog:preview": "conventional-changelog -p angular -u",
|
|
96
|
+
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
97
|
+
"example": "node --inspect -r ts-node/register Example/example.ts",
|
|
98
|
+
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
99
|
+
"lint": "eslint src --ext .js,.ts",
|
|
100
|
+
"lint:fix": "yarn lint --fix",
|
|
101
|
+
"release": "release-it",
|
|
102
|
+
"test": "jest"
|
|
105
103
|
}
|
|
106
|
-
}
|
|
104
|
+
}
|