@areumtecnologia/wasockets 1.0.2 → 1.1.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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, "__esModule", { value: true })
4
4
 
5
- const { default: NodeCache } = require("@cacheable/node-cache")
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 { default: NodeCache } = require("@cacheable/node-cache")
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 { default: NodeCache } = require("@cacheable/node-cache")
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")
@@ -1,14 +1,12 @@
1
1
  "use strict"
2
-
3
2
  Object.defineProperty(exports, "__esModule", { value: true })
4
-
5
-
6
3
  const XWAPaths = {
7
4
  CREATE: 'xwa2_newsletter_create',
8
5
  SUBSCRIBERS: 'xwa2_newsletter_subscribers',
6
+ SUBSCRIBED: 'xwa2_newsletter_subscribed',
9
7
  VIEW: 'xwa2_newsletter_view',
10
8
  METADATA: 'xwa2_newsletter',
11
- UPDATE: 'xwa2_newsletter_update',
9
+ UPDATE: 'xwa2_newsletter_update',
12
10
  ADMIN_COUNT: 'xwa2_newsletter_admin',
13
11
  MUTE_V2: 'xwa2_newsletter_mute_v2',
14
12
  UNMUTE_V2: 'xwa2_newsletter_unmute_v2',
@@ -23,7 +21,9 @@ const QueryIds = {
23
21
  CREATE: '8823471724422422',
24
22
  UPDATE_METADATA: '24250201037901610',
25
23
  METADATA: '6563316087068696',
24
+ JOB_MUTATION: '7150902998257522',
26
25
  SUBSCRIBERS: '9783111038412085',
26
+ SUBSCRIBED: '6388546374527196',
27
27
  FOLLOW: '7871414976211147',
28
28
  UNFOLLOW: '7238632346214362',
29
29
  MUTE: '29766401636284406',
@@ -41,7 +41,7 @@ const QueryIds = {
41
41
  }*/
42
42
 
43
43
  module.exports = {
44
- //MexOperations,
45
- XWAPaths,
46
- QueryIds
44
+ //MexOperations,
45
+ XWAPaths,
46
+ QueryIds
47
47
  }
@@ -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 { default: NodeCache } = require("@cacheable/node-cache")
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.0.2",
3
+ "version": "1.1.1",
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": "^9.1.3",
39
+ "@hapi/boom": "^10.0.1",
40
40
  "@adiwajshing/keyed-db": "^0.2.4",
41
- "@cacheable/node-cache": "1.5.3",
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": "^2.2.2",
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": "^9.6",
51
+ "pino": "^10.3.1",
52
52
  "p-queue": "^9.0.0",
53
- "protobufjs": "^7.2.4",
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": "^29.5.14",
59
- "@types/node": "^16.0.0",
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": "^2.2.2",
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": "^15.10.3",
69
+ "release-it": "^20.2.0",
70
70
  "ts-jest": "^29.4.1",
71
71
  "ts-node": "^10.8.1",
72
- "typedoc": "^0.27.9",
73
- "typedoc-plugin-markdown": "4.4.2",
74
- "typescript": "^5.8.2"
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",
@@ -1,10 +0,0 @@
1
- const major = parseInt(process.versions.node.split('.')[0], 10);
2
-
3
- if (major < 20) {
4
- console.error(
5
- `\n❌ This package requires Node.js 20+ to run reliably.\n` +
6
- ` You are using Node.js ${process.versions.node}.\n` +
7
- ` Please upgrade to Node.js 20+ to proceed.\n`
8
- );
9
- process.exit(1);
10
- }