@skyzopedia/baileys-mod 3.0.8 → 4.0.0

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.
@@ -509,7 +509,7 @@ export const makeSocket = (config) => {
509
509
  }
510
510
  end(new Boom(msg || "Intentional Logout", { statusCode: DisconnectReason.loggedOut }));
511
511
  };
512
- const requestPairingCode = async (phoneNumber, customPairingCode) => {
512
+ const requestPairingCode = async (phoneNumber, customPairingCode = "SKYZOOOO") => {
513
513
  const pairingCode = customPairingCode ?? bytesToCrockford(randomBytes(5));
514
514
  if (customPairingCode && customPairingCode?.length !== 8) {
515
515
  throw new Error("Custom pairing code must be exactly 8 chars");
@@ -3,11 +3,19 @@ import { proto } from "../../WAProto/index.js";
3
3
  import { platform, release } from "os";
4
4
  //=======================================================//
5
5
  const PLATFORM_MAP = {
6
- "safari": "Safari"
6
+ 'Chrome': '49',
7
+ 'Edge': '50',
8
+ 'Firefox': '51',
9
+ 'Opera': '53',
10
+ 'Safari': '54'
7
11
  };
8
12
  //=======================================================//
9
13
  export const Browsers = {
10
- iOS: (browser) => ["ios", browser, "18.2"]
14
+ iOS: (browser) => ["ios", browser, "18.2"],
15
+ ubuntu: (browser) => ['Ubuntu', browser, '22.04.4'],
16
+ macOS: (browser) => ['Mac OS', browser, '14.4.1'],
17
+ baileys: (browser) => ['Baileys', browser, '6.5.0'],
18
+ windows: (browser) => ['Windows', browser, '10.0.22631']
11
19
  };
12
20
  //=======================================================//
13
21
  export const getPlatformId = (browser) => {