@periskope/baileys 7.0.0-alpha-27 → 7.0.0-alpha-28
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
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/index.js';
|
|
4
4
|
import logger from '../Utils/logger.js';
|
|
5
|
-
const version = [2, 3000,
|
|
5
|
+
const version = [2, 3000, 1027934701];
|
|
6
6
|
export const UNAUTHORIZED_CODES = [401, 403, 419];
|
|
7
7
|
export const DEFAULT_ORIGIN = 'https://web.whatsapp.com';
|
|
8
8
|
export const CALL_VIDEO_PREFIX = 'https://call.whatsapp.com/video/';
|
|
@@ -19,7 +19,7 @@ export const makeMessagesRecvSocket = (config) => {
|
|
|
19
19
|
// throttle: ensure no more than 1 ACK every 100ms
|
|
20
20
|
const ackMutex = makeMutex();
|
|
21
21
|
let lastAckSentAt = 0;
|
|
22
|
-
const ACK_MIN_INTERVAL_MS =
|
|
22
|
+
const ACK_MIN_INTERVAL_MS = 500;
|
|
23
23
|
const msgRetryCache = config.msgRetryCounterCache ||
|
|
24
24
|
new NodeCache({
|
|
25
25
|
stdTTL: DEFAULT_CACHE_TTLS.MSG_RETRY, // 1 hour
|
package/lib/Utils/generics.js
CHANGED
|
@@ -3,7 +3,7 @@ import axios, {} from 'axios';
|
|
|
3
3
|
import { createHash, randomBytes } from 'crypto';
|
|
4
4
|
import { platform, release } from 'os';
|
|
5
5
|
import { proto } from '../../WAProto/index.js';
|
|
6
|
-
const baileysVersion = [2, 3000,
|
|
6
|
+
const baileysVersion = [2, 3000, 1027934701];
|
|
7
7
|
import { DisconnectReason } from '../Types/index.js';
|
|
8
8
|
import { getAllBinaryNodeChildren, jidDecode } from '../WABinary/index.js';
|
|
9
9
|
import { sha256 } from './crypto.js';
|