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

sleep-promise

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sleep-promise - npm Package Compare versions

Comparing version 2.0.0 to 3.0.0

lib/index.test.js

8

lib/index.js

@@ -5,3 +5,3 @@ function createSleepPromise(timeout) {

});
};
}

@@ -14,8 +14,8 @@ function sleep(timeout) {

});
};
}
var sleepPromise = createSleepPromise(timeout);
// Normal promise
promiseFunction.then = function() {
var sleepPromise = createSleepPromise(timeout);
return sleepPromise.then.apply(sleepPromise, arguments);

@@ -22,0 +22,0 @@ };

@@ -0,0 +0,0 @@ The MIT License (MIT)

{
"name": "sleep-promise",
"version": "2.0.0",
"version": "3.0.0",
"description": "Resolves a promise after a specified delay.",
"main": "lib/index.js",
"scripts": {
"test": "jest"
},
"repository": {

@@ -20,3 +23,6 @@ "type": "git",

},
"homepage": "https://github.com/brummelte/sleep-promise"
"homepage": "https://github.com/brummelte/sleep-promise",
"devDependencies": {
"jest": "^22.4.3"
}
}
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