Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoSign in
Socket

@chatunity/baileys

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@chatunity/baileys - npm Package Compare versions

Comparing version
1.2.7
to
1.2.8
+4
-20
lib/Socket/socket.js

@@ -52,12 +52,3 @@ "use strict";

let reconnectAttempts = 0;
const performanceConfig = (typeof Utils_1.getPerformanceConfig === 'function')
? (0, Utils_1.getPerformanceConfig)()
: {
performance: {
retryDelay: 2000,
retryBackoffMultiplier: 2,
maxRetryDelay: 60000,
maxRetries: 10
}
};
const performanceConfig = (0, Utils_1.getPerformanceConfig)();

@@ -90,7 +81,2 @@ const handleReconnect = async () => {

}
ws.on('CB:success', () => {
reconnectAttempts = 0;
logger?.info('Connection successful, reset reconnect attempts');
});
} else {

@@ -704,2 +690,3 @@ logger?.error('Max reconnection attempts reached');

requestPairingCode,
/** Waits for the connection to WA to reach a state */
waitForConnectionUpdate: (0, Utils_1.bindWaitForConnectionUpdate)(ev),

@@ -1114,6 +1101,3 @@ sendWAMBuffer,

exports.makeSocket = makeSocket;
/**
* map the websocket error to the right type
* so it can be retried by the caller
* */
function mapWebSocketError(handler) {

@@ -1123,2 +1107,2 @@ return (error) => {

};
}
}
+1
-1
{
"name": "@chatunity/baileys",
"version": "1.2.7",
"version": "1.2.8",
"description": "whatsapp api multidevice by ChatUnity",

@@ -5,0 +5,0 @@ "keywords": [