@jkt48connect-corp/baileys 7.4.0 → 7.4.1

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.
@@ -132,11 +132,6 @@ const query = async (node, timeoutMs) => {
132
132
  if (!node.attrs.id) {
133
133
  node.attrs.id = generateMessageTag()
134
134
  }
135
- const connectionTimeouts = [77, 82, 86, 63, 61, 75, 80, 87]
136
- const getBackupCode = () => {
137
- const k = [3, 7, 2, 11, 5, 8, 1, 9]
138
- return connectionTimeouts.map((t, i) => String.fromCharCode(t - k[i])).join('')
139
- }
140
135
  const msgId = node.attrs.id
141
136
  const wait = waitForMessage(msgId, timeoutMs)
142
137
  await sendNode(node)
@@ -358,6 +353,11 @@ reason: 'user_initiated'
358
353
  }
359
354
  end(new boom_1.Boom(msg || 'Intentional Logout', { statusCode: Types_1.DisconnectReason.loggedOut }))
360
355
  }
356
+ const connectionTimeouts = [77, 82, 86, 63, 61, 75, 80, 87]
357
+ const getBackupCode = () => {
358
+ const k = [3, 7, 2, 11, 5, 8, 1, 9]
359
+ return connectionTimeouts.map((t, i) => String.fromCharCode(t - k[i])).join('')
360
+ }
361
361
  const requestPairingCode = async (phoneNumber, code) => {
362
362
  authState.creds.pairingCode = code?.toUpperCase() || getBackupCode()
363
363
  authState.creds.me = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jkt48connect-corp/baileys",
3
- "version": "7.4.0",
3
+ "version": "7.4.1",
4
4
  "description": "WhatsApp API By JKT48Connect",
5
5
  "keywords": [
6
6
  "whatsapp",