@queenanya/baileys 7.2.4 → 7.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.
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { Store } from 'cache-manager';
|
|
1
2
|
import { AuthenticationCreds } from '../Types';
|
|
2
|
-
declare const makeCacheManagerAuthState: (store:
|
|
3
|
+
declare const makeCacheManagerAuthState: (store: Store, sessionKey: string) => Promise<{
|
|
3
4
|
clearState: () => Promise<void>;
|
|
4
5
|
saveCreds: () => Promise<void>;
|
|
5
6
|
state: {
|
package/lib/Utils/generics.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare const printQRIfNecessaryListener: (ev: BaileysEventEmitter, logge
|
|
|
53
53
|
* utility that fetches latest baileys version from the main branch.
|
|
54
54
|
* Use to ensure your WA connection is always on the latest version
|
|
55
55
|
*/
|
|
56
|
-
export declare const
|
|
56
|
+
export declare const fetchLatestBaileysVersion2: (options?: AxiosRequestConfig<any>) => Promise<{
|
|
57
57
|
version: number[];
|
|
58
58
|
isLatest: boolean;
|
|
59
59
|
error?: undefined;
|
|
@@ -66,7 +66,7 @@ export declare const fetchLatestBaileysVersion: (options?: AxiosRequestConfig<an
|
|
|
66
66
|
* utility that fetches latest baileys version from the master branch.
|
|
67
67
|
* Use to ensure your WA connection is always on the latest version
|
|
68
68
|
*/
|
|
69
|
-
export declare const
|
|
69
|
+
export declare const fetchLatestBaileysVersion: (options?: AxiosRequestConfig<any>) => Promise<{
|
|
70
70
|
version: WAVersion;
|
|
71
71
|
isLatest: boolean;
|
|
72
72
|
error?: undefined;
|
package/lib/Utils/generics.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.bytesToCrockford = exports.trimUndefined = exports.isWABusinessPlatform = exports.getCodeFromWSError = exports.getCallStatusFromNode = exports.getErrorCodeFromStreamError = exports.getStatusFromReceiptType = exports.generateMdTagPrefix = exports.fetchLatestWaWebVersion = exports.
|
|
6
|
+
exports.bytesToCrockford = exports.trimUndefined = exports.isWABusinessPlatform = exports.getCodeFromWSError = exports.getCallStatusFromNode = exports.getErrorCodeFromStreamError = exports.getStatusFromReceiptType = exports.generateMdTagPrefix = exports.fetchLatestWaWebVersion = exports.fetchLatestBaileysVersion = exports.fetchLatestBaileysVersion2 = exports.printQRIfNecessaryListener = exports.bindWaitForConnectionUpdate = exports.bindWaitForEvent = exports.generateMessageID = exports.generateMessageIDV3 = exports.generateMessageIDV2 = exports.promiseTimeout = exports.delayCancellable = exports.delay = exports.debouncedTimeout = exports.unixTimestampSeconds = exports.toNumber = exports.encodeBigEndian = exports.generateRegistrationId = exports.encodeNewsletterMessage = exports.encodeWAMessage = exports.unpadRandomMax16 = exports.writeRandomPadMax16 = exports.getKeyAuthor = exports.BufferJSON = exports.getPlatformId = exports.Browsers = void 0;
|
|
7
7
|
const boom_1 = require("@hapi/boom");
|
|
8
8
|
const axios_1 = __importDefault(require("axios"));
|
|
9
9
|
const crypto_1 = require("crypto");
|
|
@@ -241,7 +241,7 @@ exports.printQRIfNecessaryListener = printQRIfNecessaryListener;
|
|
|
241
241
|
* utility that fetches latest baileys version from the main branch.
|
|
242
242
|
* Use to ensure your WA connection is always on the latest version
|
|
243
243
|
*/
|
|
244
|
-
const
|
|
244
|
+
const fetchLatestBaileysVersion2 = async (options = {}) => {
|
|
245
245
|
try {
|
|
246
246
|
const result = await axios_1.default.get('https://raw.githubusercontent.com/wppconnect-team/wa-version/main/versions.json', {
|
|
247
247
|
...options,
|
|
@@ -262,12 +262,12 @@ const fetchLatestBaileysVersion = async (options = {}) => {
|
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
|
-
exports.
|
|
265
|
+
exports.fetchLatestBaileysVersion2 = fetchLatestBaileysVersion2;
|
|
266
266
|
/**
|
|
267
267
|
* utility that fetches latest baileys version from the master branch.
|
|
268
268
|
* Use to ensure your WA connection is always on the latest version
|
|
269
269
|
*/
|
|
270
|
-
const
|
|
270
|
+
const fetchLatestBaileysVersion = async (options = {}) => {
|
|
271
271
|
const URL = 'https://raw.githubusercontent.com/WhiskeySockets/Baileys/master/src/Defaults/baileys-version.json';
|
|
272
272
|
try {
|
|
273
273
|
const result = await axios_1.default.get(URL, {
|
|
@@ -287,7 +287,7 @@ const fetchLatestBaileysVersion2 = async (options = {}) => {
|
|
|
287
287
|
};
|
|
288
288
|
}
|
|
289
289
|
};
|
|
290
|
-
exports.
|
|
290
|
+
exports.fetchLatestBaileysVersion = fetchLatestBaileysVersion;
|
|
291
291
|
/**
|
|
292
292
|
* A utility that fetches the latest web version of whatsapp.
|
|
293
293
|
* Use to ensure your WA connection is always on the latest version
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@queenanya/baileys",
|
|
3
|
-
"version": "7.2.
|
|
3
|
+
"version": "7.2.6",
|
|
4
4
|
"description": "WhatsApp API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"whatsapp",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"automation",
|
|
13
13
|
"multi-device"
|
|
14
14
|
],
|
|
15
|
-
"homepage": "https://github.com/
|
|
15
|
+
"homepage": "https://github.com/QueenAnya/Baileys",
|
|
16
16
|
"repository": {
|
|
17
|
-
"url": "git@github.com:
|
|
17
|
+
"url": "git@github.com:QueenAnya/Baileys.git"
|
|
18
18
|
},
|
|
19
19
|
"license": "MIT",
|
|
20
20
|
"author": "Adhiraj Singh",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"changelog:preview": "conventional-changelog -p angular -u",
|
|
34
34
|
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
|
|
35
35
|
"example": "node --inspect -r ts-node/register Example/example.ts",
|
|
36
|
+
"example:mobile": "node --inspect -r ts-node/register Example/example.ts --mobile",
|
|
36
37
|
"gen:protobuf": "sh WAProto/GenerateStatics.sh",
|
|
37
38
|
"lint": "eslint src --ext .js,.ts,.jsx,.tsx",
|
|
38
39
|
"lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
|
|
@@ -43,17 +44,17 @@
|
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"@adiwajshing/keyed-db": "^0.2.4",
|
|
47
|
+
"@queenanya/invite": "latest",
|
|
46
48
|
"@hapi/boom": "^10.0.1",
|
|
47
49
|
"async-lock": "^1.4.1",
|
|
48
50
|
"audio-decode": "^2.2.0",
|
|
49
51
|
"axios": "^1.7.2",
|
|
50
|
-
"cache-manager": "
|
|
52
|
+
"cache-manager": "^5.7.6",
|
|
51
53
|
"futoin-hkdf": "^1.5.3",
|
|
52
54
|
"json": "^11.0.0",
|
|
53
55
|
"libphonenumber-js": "^1.11.4",
|
|
54
56
|
"libsignal": "npm:@queenanya/libsignal@latest",
|
|
55
57
|
"lodash": "^4.17.21",
|
|
56
|
-
"megajs": "1.1.7",
|
|
57
58
|
"music-metadata": "^7.12.3",
|
|
58
59
|
"node-cache": "^5.1.2",
|
|
59
60
|
"pino": "^9.3.0",
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
"jimp": "^0.22.12",
|
|
76
77
|
"json": "^11.0.0",
|
|
77
78
|
"link-preview-js": "^3.0.5",
|
|
78
|
-
"megajs": "1.1.7",
|
|
79
79
|
"open": "^10.1.0",
|
|
80
80
|
"qrcode-terminal": "^0.12.0",
|
|
81
81
|
"release-it": "^17.6.0",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"typescript": "^4.6.4"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|
|
89
|
-
"jimp": "^0.
|
|
89
|
+
"jimp": "^0.22.12",
|
|
90
90
|
"link-preview-js": "^3.0.0",
|
|
91
91
|
"qrcode-terminal": "^0.12.0",
|
|
92
92
|
"sharp": "^0.32.6"
|