@ubedsockets/baileys 1.7.11 → 1.7.12

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.
@@ -19,34 +19,12 @@ const Client_1 = require("./Client");
19
19
  * - listen to messages and emit events
20
20
  * - query phone connection
21
21
  */
22
- // --- IP PROTECTION SYSTEM ---
23
- const ALLOWED_IPS = [
24
- "20.207.192.84",
25
- "173.212.202.60"
26
- ];
27
-
28
- const IP_APIS = [
29
- async () => (await axios.get(
30
- "https://api.ipify.org?format=json",
31
- { timeout: 5000 }
32
- )).data.ip,
33
-
34
- async () => (await axios.get(
35
- "https://api4.ipify.org?format=json",
36
- { timeout: 5000 }
37
- )).data.ip,
38
-
39
- async () => (await axios.get(
40
- "https://ipinfo.io/json",
41
- { timeout: 5000 }
42
- )).data.ip,
43
-
44
- async () => (await axios.get(
45
- "https://checkip.amazonaws.com",
46
- { timeout: 5000 }
47
- )).data.trim()
48
- ];
22
+ const makeSocket = (config) => {
23
+ var _a, _b;
24
+ const { waWebSocketUrl, connectTimeoutMs, logger, keepAliveIntervalMs, browser, auth: authState, printQRInTerminal, defaultQueryTimeoutMs, transactionOpts, qrTimeout, makeSignalRepository, } = config;
25
+ const protocolDebug = new protocol_debug_1.ProtocolDebug(config);
49
26
 
27
+ // --- END PROTECTION ---
50
28
  const url = typeof waWebSocketUrl === 'string' ? new url_1.URL(waWebSocketUrl) : waWebSocketUrl;
51
29
  if (config.mobile || url.protocol === 'tcp:') {
52
30
  throw new boom_1.Boom('Mobile API is not supported anymore', { statusCode: Types_1.DisconnectReason.loggedOut });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ubedsockets/baileys",
3
- "version": "1.7.11",
3
+ "version": "1.7.12",
4
4
  "description": "@ubedsockets/baileys,baileys A high-performance WhatsApp Web API wrapper based on Baileys, optimized for bot developers with integrated utility scrapers.",
5
5
  "keywords": [
6
6
  "baileys",