@elfhkry666/baileys 0.3.23 → 0.3.24

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.
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elfhkry666/baileys",
3
- "version": "0.3.23",
3
+ "version": "0.3.24",
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",