@ryuu-reinzz/baileys 3.0.0 → 3.0.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.
@@ -1,7 +1,7 @@
1
1
  // @ts-ignore
2
2
  import * as libsignal from 'libsignal';
3
3
  // @ts-ignore
4
- import { PreKeyWhisperMessage } from 'libsignal/src/protobufs.js';
4
+ import signals from 'libsignal/src/protobufs.js';
5
5
  import { LRUCache } from 'lru-cache';
6
6
  import { generateSignalPubKey } from '../Utils/index.js';
7
7
  import { isHostedLidUser, isHostedPnUser, isLidUser, isPnUser, jidDecode, transferDevice, WAJIDDomains } from '../WABinary/index.js';
@@ -10,6 +10,7 @@ import { SenderKeyRecord } from './Group/sender-key-record.js';
10
10
  import { GroupCipher, GroupSessionBuilder, SenderKeyDistributionMessage } from './Group/index.js';
11
11
  import { LIDMappingStore } from './lid-mapping.js';
12
12
  /** Extract identity key from PreKeyWhisperMessage for identity change detection */
13
+ const { PreKeyWhisperMessage } = signals;
13
14
  function extractIdentityFromPkmsg(ciphertext) {
14
15
  try {
15
16
  if (!ciphertext || ciphertext.length < 2) {
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "require": "./lib/index.cjs"
9
9
  }
10
10
  },
11
- "version": "3.0.0",
11
+ "version": "3.0.1",
12
12
  "description": "A WebSockets library for interacting with WhatsApp Web",
13
13
  "keywords": [
14
14
  "whatsapp",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@cacheable/node-cache": "^1.4.0",
33
- "@hapi/boom": "^9.1.3",
34
33
  "@ryuu-reinzz/haruka-lib": "^3.2.6",
34
+ "@hapi/boom": "^9.1.3",
35
35
  "async-mutex": "^0.5.0",
36
36
  "better-sqlite3": "^12.5.0",
37
37
  "libsignal": "npm:@ryuu-reinzz/libsignal@2.1.0",
@@ -68,7 +68,7 @@
68
68
  "pino-pretty": "^13.1.1",
69
69
  "prettier": "^3.5.3",
70
70
  "protobufjs-cli": "^2.0.1",
71
- "release-it": "^20.0.0",
71
+ "release-it": "^15.10.3",
72
72
  "ts-jest": "^29.4.0",
73
73
  "tsc-esm-fix": "^3.1.2",
74
74
  "tsx": "^4.20.3",
@@ -97,4 +97,4 @@
97
97
  "engines": {
98
98
  "node": ">=20.0.0"
99
99
  }
100
- }
100
+ }