Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nyks

Package Overview
Dependencies
Maintainers
3
Versions
250
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nyks - npm Package Compare versions

Comparing version 6.6.2 to 6.6.5

4

async/oneAtATime.js

@@ -17,6 +17,6 @@ "use strict";

wait.resolve(res);
return res;
return wait;
} catch(err) {
wait.reject(err);
throw err;
return wait;
} finally {

@@ -23,0 +23,0 @@ wait = null;

"use strict";
module.exports = function sleep(timeout) {
return new Promise(function(resolve) {
setTimeout(resolve, timeout);
});
let max = 2147483647;
module.exports = async function sleep(timeout) {
if(isNaN(timeout) || typeof timeout != "number")
return;
/* istanbul ignore else */
if(timeout <= max) {
return new Promise(function(resolve) {
setTimeout(resolve, timeout);
});
} else {
let t = Math.floor(timeout / max), r = timeout % max;
for(let i = 0; i < t; i++)
await sleep(max);
return sleep(r);
}
};
{
"name": "nyks",
"version": "6.6.2",
"version": "6.6.5",
"description": "nodejs exupery style",

@@ -45,3 +45,3 @@ "keywords": [

"eslint": "eslint .",
"cover": "nyc mocha",
"cover": "nyc mocha test test/async",
"test": "npm run cover test test/async && npm run eslint"

@@ -48,0 +48,0 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc