@queenanya/baileys 8.2.6-beta → 8.2.6

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.
@@ -112,6 +112,7 @@ const makeMessagesSocket = (config) => {
112
112
  };
113
113
  /** Fetch all the devices we've to send a message to */
114
114
  const getUSyncDevices = async (jids, useCache, ignoreZeroDevices) => {
115
+ var _a;
115
116
  const deviceResults = [];
116
117
  if (!useCache) {
117
118
  logger.debug('not using cache for devices');
@@ -119,12 +120,7 @@ const makeMessagesSocket = (config) => {
119
120
  const toFetch = [];
120
121
  jids = Array.from(new Set(jids));
121
122
  for (let jid of jids) {
122
- const decoded = (0, WABinary_1.jidDecode)(jid);
123
- if (!decoded || !decoded.user) {
124
- logger.warn(`Failed to decode or extract user from JID: ${jid}`);
125
- continue; // skip if invalid
126
- }
127
- const user = decoded.user;
123
+ const user = (_a = (0, WABinary_1.jidDecode)(jid)) === null || _a === void 0 ? void 0 : _a.user;
128
124
  jid = (0, WABinary_1.jidNormalizedUser)(jid);
129
125
  if (useCache) {
130
126
  const devices = userDevicesCache.get(user);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queenanya/baileys",
3
- "version": "8.2.6-beta",
3
+ "version": "8.2.6",
4
4
  "description": "Custom Baileys WhatsApp API",
5
5
  "keywords": [
6
6
  "baileys",
@@ -29,23 +29,6 @@
29
29
  "WASignalGroup/*.js",
30
30
  "engine-requirements.js"
31
31
  ],
32
- "scripts": {
33
- "build:all": "tsc && typedoc",
34
- "build:docs": "typedoc",
35
- "build:tsc": "tsc",
36
- "changelog:last": "conventional-changelog -p angular -r 2",
37
- "changelog:preview": "conventional-changelog -p angular -u",
38
- "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
39
- "example": "node --inspect -r ts-node/register Example/example.ts",
40
- "gen:protobuf": "sh WAProto/GenerateStatics.sh",
41
- "lint": "eslint src --ext .js,.ts",
42
- "lint:fix": "yarn lint --fix",
43
- "prepack": "tsc",
44
- "prepare": "tsc",
45
- "preinstall": "node ./engine-requirements.js",
46
- "release": "release-it",
47
- "test": "jest"
48
- },
49
32
  "dependencies": {
50
33
  "@adiwajshing/keyed-db": "^0.2.4",
51
34
  "@cacheable/node-cache": "^1.4.0",
@@ -104,5 +87,20 @@
104
87
  "sharp": {
105
88
  "optional": true
106
89
  }
90
+ },
91
+ "scripts": {
92
+ "build:all": "tsc && typedoc",
93
+ "build:docs": "typedoc",
94
+ "build:tsc": "tsc",
95
+ "changelog:last": "conventional-changelog -p angular -r 2",
96
+ "changelog:preview": "conventional-changelog -p angular -u",
97
+ "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
98
+ "example": "node --inspect -r ts-node/register Example/example.ts",
99
+ "gen:protobuf": "sh WAProto/GenerateStatics.sh",
100
+ "lint": "eslint src --ext .js,.ts",
101
+ "lint:fix": "yarn lint --fix",
102
+ "preinstall": "node ./engine-requirements.js",
103
+ "release": "release-it",
104
+ "test": "jest"
107
105
  }
108
- }
106
+ }