sleep-promise
Advanced tools
Comparing version 2.0.0 to 3.0.0
@@ -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" | ||
} | ||
} |
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
4623
59
1