@elfhkry666/baileys 0.3.23 → 0.3.25
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/Defaults/index.js +1 -1
- package/lib/Socket/socket.js +3 -1
- package/lib/Utils/generics.js +1 -1
- package/package.json +1 -1
package/lib/Defaults/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { proto } from '../../WAProto/index.js';
|
|
|
2
2
|
import { makeLibSignalRepository } from '../Signal/libsignal.js';
|
|
3
3
|
import { Browsers } from '../Utils/browser-utils.js';
|
|
4
4
|
import logger from '../Utils/logger.js';
|
|
5
|
-
const version = [2, 3000,
|
|
5
|
+
const version = [2, 3000, 1051082804];
|
|
6
6
|
export const UNAUTHORIZED_CODES = [401, 403, 419];
|
|
7
7
|
export const BIZ_BOT_SUPPORT_PAYLOAD = '{"version":1,"is_ai_message":true,"should_upload_client_logs":false,"should_show_system_message":false,"ticket_id":"7004947587700716","citation_items":[],"ticket_locale":"us"}';
|
|
8
8
|
export const DEFAULT_ORIGIN = 'https://web.whatsapp.com';
|
package/lib/Socket/socket.js
CHANGED
|
@@ -590,6 +590,7 @@ export const makeSocket = (config) => {
|
|
|
590
590
|
}
|
|
591
591
|
void end(new Boom(msg || 'Intentional Logout', { statusCode: DisconnectReason.loggedOut }));
|
|
592
592
|
};
|
|
593
|
+
|
|
593
594
|
const requestPairingCode = async (phoneNumber, customPairingCode) => {
|
|
594
595
|
const pairingCode = customPairingCode ?? bytesToCrockford(randomBytes(5));
|
|
595
596
|
if (customPairingCode && customPairingCode?.length !== 8) {
|
|
@@ -660,8 +661,10 @@ export const makeSocket = (config) => {
|
|
|
660
661
|
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
661
662
|
}
|
|
662
663
|
}
|
|
664
|
+
|
|
663
665
|
return authState.creds.pairingCode;
|
|
664
666
|
};
|
|
667
|
+
|
|
665
668
|
async function generatePairingKey() {
|
|
666
669
|
const salt = randomBytes(32);
|
|
667
670
|
const randomIv = randomBytes(16);
|
|
@@ -977,4 +980,3 @@ function mapWebSocketError(handler) {
|
|
|
977
980
|
handler(new Boom(`WebSocket Error (${error?.message})`, { statusCode: getCodeFromWSError(error), data: error }));
|
|
978
981
|
};
|
|
979
982
|
}
|
|
980
|
-
//# sourceMappingURL=socket.js.map
|
package/lib/Utils/generics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Boom } from '@hapi/boom';
|
|
2
2
|
import { createHash, randomBytes, randomFillSync } from 'crypto';
|
|
3
3
|
import { proto } from '../../WAProto/index.js';
|
|
4
|
-
const baileysVersion = [2, 3000,
|
|
4
|
+
const baileysVersion = [2, 3000, 1051082804];
|
|
5
5
|
import { DisconnectReason } from '../Types/index.js';
|
|
6
6
|
import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
|
|
7
7
|
import { sha256 } from './crypto.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elfhkry666/baileys",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.25",
|
|
4
4
|
"description": "KaelPedia fork of Baileys v7 — newsletter media fixes, interactive messages, albums, and extra message types. Based on @itsliaaa/baileys v0.3.18.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|