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 5.1.0 to 6.0.0

8

build/cjs.js

@@ -10,10 +10,10 @@ 'use strict';

function sleep(timeout) {
// Pass value through, if used in a promise chain
var sleepPromise = createSleepPromise(timeout); // Pass value through, if used in a promise chain
function promiseFunction(value) {
return createSleepPromise(timeout).then(function () {
return sleepPromise.then(function () {
return value;
});
}
} // Normal promise
var sleepPromise = createSleepPromise(timeout); // Normal promise

@@ -20,0 +20,0 @@ promiseFunction.then = function () {

{
"name": "sleep-promise",
"version": "5.1.0",
"version": "6.0.0",
"description": "Resolves a promise after a specified delay.",

@@ -39,2 +39,3 @@ "main": "build/cjs.js",

"jest": "^22.4.3",
"jest-junit": "^3.6.0",
"rimraf": "^2.6.2",

@@ -41,0 +42,0 @@ "rollup": "^0.57.1",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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