@skycodee/baileys 8.0.5 → 8.0.7
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/lib/Signal/Group/group_cipher.js +1 -1
- package/lib/Signal/Group/keyhelper.js +1 -1
- package/lib/Signal/Group/sender-chain-key.js +1 -1
- package/lib/Signal/Group/sender-key-message.js +1 -1
- package/lib/Signal/Group/sender-message-key.js +1 -1
- package/lib/Signal/libsignal.js +1 -1
- package/lib/Utils/crypto.js +1 -1
- package/lib/index.js +5 -4
- package/package.json +3 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
|
-
import { decrypt, encrypt } from "libsignal
|
|
2
|
+
import { decrypt, encrypt } from "@skycodee/libsignal/src/crypto.js";
|
|
3
3
|
import { SenderKeyMessage } from "./sender-key-message.js";
|
|
4
4
|
import { SenderKeyRecord } from "./sender-key-record.js";
|
|
5
5
|
import { SenderKeyState } from "./sender-key-state.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
|
-
import { generateKeyPair } from "libsignal
|
|
2
|
+
import { generateKeyPair } from "@skycodee/libsignal/src/curve.js";
|
|
3
3
|
import * as nodeCrypto from "crypto";
|
|
4
4
|
//=======================================================//
|
|
5
5
|
export function generateSenderKey() {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
|
-
import { calculateMAC } from "libsignal
|
|
2
|
+
import { calculateMAC } from "@skycodee/libsignal/src/crypto.js";
|
|
3
3
|
import { SenderMessageKey } from "./sender-message-key.js";
|
|
4
4
|
//=======================================================//
|
|
5
5
|
export class SenderChainKey {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
|
-
import { calculateSignature, verifySignature } from "libsignal
|
|
2
|
+
import { calculateSignature, verifySignature } from "@skycodee/libsignal/src/curve.js";
|
|
3
3
|
import { CiphertextMessage } from "./ciphertext-message.js";
|
|
4
4
|
import { proto } from "../../../WAProto/index.js";
|
|
5
5
|
//=======================================================//
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
|
-
import { deriveSecrets } from "libsignal
|
|
2
|
+
import { deriveSecrets } from "@skycodee/libsignal/src/crypto.js";
|
|
3
3
|
//=======================================================//
|
|
4
4
|
export class SenderMessageKey {
|
|
5
5
|
constructor(iteration, seed) {
|
package/lib/Signal/libsignal.js
CHANGED
|
@@ -5,7 +5,7 @@ import { SenderKeyRecord } from "./Group/sender-key-record.js";
|
|
|
5
5
|
import { SenderKeyName } from "./Group/sender-key-name.js";
|
|
6
6
|
import { generateSignalPubKey } from "../Utils/index.js";
|
|
7
7
|
import { LIDMappingStore } from "./lid-mapping.js";
|
|
8
|
-
import * as libsignal from "libsignal
|
|
8
|
+
import * as libsignal from "@skycodee/libsignal";
|
|
9
9
|
import { LRUCache } from "lru-cache";
|
|
10
10
|
//=======================================================//
|
|
11
11
|
export function makeLibSignalRepository(auth, logger, pnToLIDFunc) {
|
package/lib/Utils/crypto.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
2
|
import { createCipheriv, createDecipheriv, createHash, createHmac, randomBytes } from "crypto";
|
|
3
3
|
import { KEY_BUNDLE_TYPE } from "../Defaults/index.js";
|
|
4
|
-
import * as curve from "libsignal
|
|
4
|
+
import * as curve from "@skycodee/libsignal/src/curve.js";
|
|
5
5
|
//=======================================================//
|
|
6
6
|
const { subtle } = globalThis.crypto;
|
|
7
7
|
export const generateSignalPubKey = (pubKey) => pubKey.length === 33 ? pubKey : Buffer.concat([KEY_BUNDLE_TYPE, pubKey]);
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
//=======================================================//
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
console.log("•
|
|
6
|
-
console.log();
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
|
|
5
|
+
console.log(chalk.whiteBright("\n• Baileys Mod by Skyzopedia"));
|
|
6
|
+
console.log(chalk.cyan("• Telegram: ") + chalk.greenBright("https://t.me/Xskycode"));
|
|
7
|
+
console.log(chalk.gray("------------------------------\n"));
|
|
7
8
|
|
|
8
9
|
import makeWASocket from "./Socket/index.js";
|
|
9
10
|
//=======================================================//
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skycodee/baileys",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.7",
|
|
4
4
|
"description": "Websocket Whatsapp API for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@whiskeysockets/eslint-config": "github:whiskeysockets/eslint-config",
|
|
40
40
|
"@cacheable/node-cache": "*",
|
|
41
41
|
"gradient-string": "2.0.2",
|
|
42
|
-
"libsignal
|
|
42
|
+
"@skycodee/libsignal": "*",
|
|
43
43
|
"moment-timezone": "*",
|
|
44
44
|
"music-metadata": "*",
|
|
45
45
|
"cache-manager": "*",
|
|
@@ -82,6 +82,7 @@
|
|
|
82
82
|
"audio-decode": {
|
|
83
83
|
"optional": true
|
|
84
84
|
},
|
|
85
|
+
"chalk": { "optional": true },
|
|
85
86
|
"jimp": {
|
|
86
87
|
"optional": true
|
|
87
88
|
},
|