sleep-promise
Advanced tools
Comparing version 5.1.0 to 6.0.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
153255
12
46