@langitdeveloper/baileys 2.1.2 → 2.1.4

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 CHANGED
@@ -5,9 +5,9 @@
5
5
 
6
6
  # Update For Baileys
7
7
 
8
- - Tambah LID mapping & LID USync Protocol
9
- - Tambah message retry manager & pre-key manager
10
- - Tambah community, mex socket handler
11
- - Tambah browser utils & event stream
12
- - Fix device sender
8
+ - Fix anti disconnect
9
+ - Add LID mapping
10
+ - Add LID USync protocol
11
+ - Add session migrate & validate
12
+
13
13
 
@@ -276,9 +276,6 @@ const jidToSignalProtocolAddress = (jid) => {
276
276
  }
277
277
  const signalUser = domainType !== WABinary_1.WAJIDDomains.WHATSAPP ? `${user}_${domainType}` : user;
278
278
  const finalDevice = device || 0;
279
- if (device === 99 && decoded.server !== 'hosted' && decoded.server !== 'hosted.lid') {
280
- throw new Error('Unexpected non-hosted device JID with device 99. This ID seems invalid. ID:' + jid);
281
- }
282
279
  return new libsignal.ProtocolAddress(signalUser, finalDevice);
283
280
  };
284
281
  const jidToSignalSenderKeyName = (group, user) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langitdeveloper/baileys",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "WhatsApp API Modification By Langit",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -46,7 +46,7 @@
46
46
  "futoin-hkdf": "^1.5.1",
47
47
  "libphonenumber-js": "^1.10.20",
48
48
  "lodash": "^4.17.21",
49
- "libsignal": "github:RILLYZY/libsignal-node",
49
+ "libsignal": "github:langitdeveloper-official/libsignal-node",
50
50
  "music-metadata": "^7.12.3",
51
51
  "node-cache": "^5.1.2",
52
52
  "node-fetch": "^2.6.1",