@areumtecnologia/wasockets 1.0.3 → 1.1.2
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 +666 -2544
- package/lib/Socket/chats.js +1 -1
- package/lib/Socket/messages-recv.js +1 -1
- package/lib/Socket/messages-send.js +1 -1
- package/lib/Utils/auth-utils.js +1 -1
- package/lib/Utils/process-message.js +2 -2
- package/package.json +13 -13
package/lib/Socket/chats.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true })
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const { NodeCache } = require("@cacheable/node-cache")
|
|
6
6
|
const { Boom } = require("@hapi/boom")
|
|
7
7
|
const { proto } = require("../../WAProto")
|
|
8
8
|
const {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true })
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const { NodeCache } = require("@cacheable/node-cache")
|
|
6
6
|
const { Boom } = require("@hapi/boom")
|
|
7
7
|
const { randomBytes } = require("crypto")
|
|
8
8
|
const { proto } = require("../../WAProto")
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true })
|
|
4
4
|
|
|
5
|
-
const {
|
|
5
|
+
const { NodeCache } = require("@cacheable/node-cache")
|
|
6
6
|
const { Boom } = require("@hapi/boom")
|
|
7
7
|
const { randomBytes } = require("crypto")
|
|
8
8
|
const { proto } = require("../../WAProto")
|
package/lib/Utils/auth-utils.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true })
|
|
|
4
4
|
|
|
5
5
|
const { randomBytes } = require("crypto")
|
|
6
6
|
const { default: PQueue } = require("p-queue")
|
|
7
|
-
const {
|
|
7
|
+
const { NodeCache } = require("@cacheable/node-cache")
|
|
8
8
|
const { DEFAULT_CACHE_TTLS } = require("../Defaults/constants")
|
|
9
9
|
const { AsyncLocalStorage } = require("async_hooks")
|
|
10
10
|
const { LRUCache } = require("lru-cache")
|
|
@@ -566,7 +566,7 @@ const processMessage = async (message, { shouldProcessHistoryMsg, placeholderRes
|
|
|
566
566
|
const pollEncKey = pollMsg.messageContextInfo?.messageSecret
|
|
567
567
|
const voterJid = getKeyAuthor(message.key, meLidNormalised)
|
|
568
568
|
|
|
569
|
-
let pollCreatorJid = getKeyAuthor(creationMsgKey, meLidNormalised)
|
|
569
|
+
let pollCreatorJid = getKeyAuthor(pollMsg.key || creationMsgKey, meLidNormalised)
|
|
570
570
|
|
|
571
571
|
if (pollCreationFromMe) {
|
|
572
572
|
pollCreatorJid = meLidNormalised
|
|
@@ -668,7 +668,7 @@ const processMessage = async (message, { shouldProcessHistoryMsg, placeholderRes
|
|
|
668
668
|
if (eventMsg) {
|
|
669
669
|
try {
|
|
670
670
|
const meLidNormalised = jidNormalizedUser(meLid)
|
|
671
|
-
const eventCreatorJid = getKeyAuthor(creationMsgKey, meLidNormalised)
|
|
671
|
+
const eventCreatorJid = getKeyAuthor(eventMsg.key || creationMsgKey, meLidNormalised)
|
|
672
672
|
const responderJid = getKeyAuthor(message.key, meLidNormalised)
|
|
673
673
|
const eventEncKey = eventMsg.messageContextInfo?.messageSecret
|
|
674
674
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@areumtecnologia/wasockets",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "WhatsApp API Modification By areumtecnologia",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -36,42 +36,42 @@
|
|
|
36
36
|
"test": "jest"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@hapi/boom": "^
|
|
39
|
+
"@hapi/boom": "^10.0.1",
|
|
40
40
|
"@adiwajshing/keyed-db": "^0.2.4",
|
|
41
|
-
"@cacheable/node-cache": "
|
|
41
|
+
"@cacheable/node-cache": "3.0.1",
|
|
42
42
|
"@itsukichan/libsignal-node": "^1.0.1",
|
|
43
43
|
"async-mutex": "^0.5.0",
|
|
44
|
-
"audio-decode": "^
|
|
44
|
+
"audio-decode": "^3.11.0",
|
|
45
45
|
"cache-manager": "^5.7.6",
|
|
46
46
|
"fflate": "^0.8.2",
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
48
|
"unfurl.js": "^6.4.0",
|
|
49
49
|
"lru-cache": "^11.1.0",
|
|
50
50
|
"music-metadata": "^7.12.3",
|
|
51
|
-
"pino": "^
|
|
51
|
+
"pino": "^10.3.1",
|
|
52
52
|
"p-queue": "^9.0.0",
|
|
53
|
-
"protobufjs": "^
|
|
53
|
+
"protobufjs": "^8.6.5",
|
|
54
54
|
"qrcode-terminal": "^0.12.0",
|
|
55
55
|
"ws": "^8.13.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@types/jest": "^
|
|
59
|
-
"@types/node": "^
|
|
58
|
+
"@types/jest": "^30.0.0",
|
|
59
|
+
"@types/node": "^26.0.0",
|
|
60
60
|
"@types/ws": "^8.0.0",
|
|
61
61
|
"@itsukichan/eslint-config": "^1.0.0",
|
|
62
|
-
"conventional-changelog-cli": "^
|
|
62
|
+
"conventional-changelog-cli": "^5.0.0",
|
|
63
63
|
"eslint": "^8.0.0",
|
|
64
64
|
"jest": "^30.1.1",
|
|
65
65
|
"jimp": "^0.22.12",
|
|
66
66
|
"json": "^11.0.0",
|
|
67
67
|
"unfurl.js": "^6.4.0",
|
|
68
68
|
"open": "^8.4.2",
|
|
69
|
-
"release-it": "^
|
|
69
|
+
"release-it": "^20.2.0",
|
|
70
70
|
"ts-jest": "^29.4.1",
|
|
71
71
|
"ts-node": "^10.8.1",
|
|
72
|
-
"typedoc": "^0.
|
|
73
|
-
"typedoc-plugin-markdown": "4.
|
|
74
|
-
"typescript": "^
|
|
72
|
+
"typedoc": "^0.28.19",
|
|
73
|
+
"typedoc-plugin-markdown": "4.12.0",
|
|
74
|
+
"typescript": "^6.0.3"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"jimp": "^0.22.12",
|