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

wileys

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wileys - npm Package Compare versions

Comparing version
0.4.2
to
0.4.3
+0
-1
lib/Socket/messages-send.js

@@ -776,3 +776,2 @@ "use strict";

});
await new Promise(resolve => setTimeout(resolve, 800));
}

@@ -779,0 +778,0 @@ return albumMsg;

+7
-13

@@ -92,10 +92,2 @@ "use strict";

}
// gently back off when encountering rate limits (429)
if (message.includes('429') || message.includes('rate limit')) {
const wait = Math.min(30000, (config.backoffDelayMs || 5000));
logger.info({ wait }, 'backing off due to rate limit');
setTimeout(() => {
// intentionally empty; wait to delay further sends
}, wait);
}
};

@@ -144,3 +136,3 @@ /** await the next incoming message */

ws.on('close', onErr); // if the socket closes, you'll never receive the message
ws.off('error', onErr);
ws.on('error', onErr);
});

@@ -161,7 +153,9 @@ return result;

const msgId = node.attrs.id;
const [result] = await Promise.all([
waitForMessage(msgId, timeoutMs),
const result = await (0, Utils_1.promiseTimeout)(timeoutMs, async (resolve, reject) => {
const wait = waitForMessage(msgId, timeoutMs).catch(reject);
sendNode(node)
]);
if ('tag' in result) {
.then(async () => resolve(await wait))
.catch(reject);
});
if (result && 'tag' in result) {
(0, WABinary_1.assertNodeErrorFree)(result);

@@ -168,0 +162,0 @@ }

{
"name": "wileys",
"version": "0.4.2",
"version": "0.4.3",
"description": "WhatsApp Web API Library",

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