baileys-natsu 7.0.0-rc13 → 7.0.0-rc15

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,4 +1,4 @@
1
- import { decrypt, encrypt } from 'libsignal/src/crypto';
1
+ import { decrypt, encrypt } from 'libsignal/src/crypto.js';
2
2
  import { SenderKeyMessage } from './sender-key-message.js';
3
3
  import { SenderKeyName } from './sender-key-name.js';
4
4
  import { SenderKeyRecord } from './sender-key-record.js';
@@ -1,5 +1,5 @@
1
1
  import * as nodeCrypto from 'crypto';
2
- import { generateKeyPair } from 'libsignal/src/curve';
2
+ import { generateKeyPair } from 'libsignal/src/curve.js';
3
3
  export function generateSenderKey() {
4
4
  return nodeCrypto.randomBytes(32);
5
5
  }
@@ -1,4 +1,4 @@
1
- import { calculateMAC } from 'libsignal/src/crypto';
1
+ import { calculateMAC } from 'libsignal/src/crypto.js';
2
2
  import { SenderMessageKey } from './sender-message-key.js';
3
3
  export class SenderChainKey {
4
4
  constructor(iteration, chainKey) {
@@ -1,4 +1,4 @@
1
- import { calculateSignature, verifySignature } from 'libsignal/src/curve';
1
+ import { calculateSignature, verifySignature } from 'libsignal/src/curve.js';
2
2
  import { proto } from '../../../WAProto/index.js';
3
3
  import { CiphertextMessage } from './ciphertext-message.js';
4
4
  export class SenderKeyMessage extends CiphertextMessage {
@@ -1,4 +1,4 @@
1
- import { deriveSecrets } from 'libsignal/src/crypto';
1
+ import { deriveSecrets } from 'libsignal/src/crypto.js';
2
2
  export class SenderMessageKey {
3
3
  constructor(iteration, seed) {
4
4
  const derivative = deriveSecrets(seed, Buffer.alloc(32), Buffer.from('WhisperGroup'));
@@ -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';
4
+ import { PreKeyWhisperMessage } 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';
@@ -1,5 +1,5 @@
1
1
  import { createCipheriv, createDecipheriv, createHash, createHmac, randomBytes } from 'crypto';
2
- import * as curve from 'libsignal/src/curve';
2
+ import * as curve from 'libsignal/src/curve.js';
3
3
  import { KEY_BUNDLE_TYPE } from '../Defaults/index.js';
4
4
  export { md5, hkdf } from 'whatsapp-rust-bridge';
5
5
  // insure browser & node compatibility
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "baileys-natsu",
3
3
  "type": "module",
4
- "version": "7.0.0-rc13",
4
+ "version": "7.0.0-rc15",
5
5
  "description": "A WebSockets library for interacting with WhatsApp Web",
6
6
  "keywords": [
7
7
  "whatsapp",