@queenanya/baileys 6.8.1 → 6.8.5

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.
@@ -138,7 +138,7 @@ export declare const PHONENUMBER_MCC: {
138
138
  "977": number;
139
139
  "31": number;
140
140
  "687": number;
141
- "64": number; /** from: https://stackoverflow.com/questions/3809401/what-is-a-good-regular-expression-to-match-a-url */
141
+ "64": number;
142
142
  "505": number;
143
143
  "227": number;
144
144
  "234": number;
@@ -20,7 +20,7 @@ exports.DEF_CALLBACK_PREFIX = 'CB:';
20
20
  exports.DEF_TAG_PREFIX = 'TAG:';
21
21
  exports.PHONE_CONNECTION_CB = 'CB:Pong';
22
22
  exports.WA_DEFAULT_EPHEMERAL = 7 * 24 * 60 * 60;
23
- const WA_VERSION = '2.23.14.82';
23
+ const WA_VERSION = '2.24.3.23';
24
24
  const WA_VERSION_HASH = (0, crypto_1.createHash)('md5').update(WA_VERSION).digest('hex');
25
25
  exports.MOBILE_TOKEN = Buffer.from('0a1mLfGUIBVrMKF1RdvLI5lkRBvof6vn0fD2QRSM' + WA_VERSION_HASH);
26
26
  exports.MOBILE_REGISTRATION_ENDPOINT = 'https://v.whatsapp.net/v2';
@@ -49,7 +49,7 @@ exports.PROCESSABLE_HISTORY_TYPES = [
49
49
  ];
50
50
  exports.DEFAULT_CONNECTION_CONFIG = {
51
51
  version: baileys_version_json_1.version,
52
- browser: Utils_1.Browsers.baileys('Firefox'),
52
+ browser: Utils_1.Browsers.windows('Firefox'),
53
53
  waWebSocketUrl: 'wss://web.whatsapp.com/ws/chat',
54
54
  connectTimeoutMs: 20000,
55
55
  keepAliveIntervalMs: 30000,
@@ -12,7 +12,7 @@ const signal_1 = require("./signal");
12
12
  const getUserAgent = (config) => {
13
13
  var _a, _b;
14
14
  const osVersion = config.mobile ? '15.3.1' : '0.1';
15
- const version = config.mobile ? [2, 22, 24] : config.version;
15
+ const version = config.mobile ? [2, 24, 3] : config.version;
16
16
  const device = config.mobile ? 'iPhone_7' : 'Desktop';
17
17
  const manufacturer = config.mobile ? 'Apple' : '';
18
18
  const platform = config.mobile ? WAProto_1.proto.ClientPayload.UserAgent.Platform.IOS : WAProto_1.proto.ClientPayload.UserAgent.Platform.MACOS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@queenanya/baileys",
3
- "version": "6.8.1",
3
+ "version": "6.8.5",
4
4
  "description": "WhatsApp API",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -59,6 +59,7 @@
59
59
  },
60
60
  "devDependencies": {
61
61
  "@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
62
+ "@queenanya/invite": "latest",
62
63
  "@types/got": "^9.6.11",
63
64
  "@types/jest": "^27.5.1",
64
65
  "@types/node": "^16.0.0",