Comparing version 5.16.0 to 5.16.1
"use strict"; | ||
module.exports = (delay, reason) => { | ||
return new Promise((resolve, reject) => { | ||
setTimeout(reject.bind(this, reason || 'timeout'), delay); | ||
let b; | ||
let a = new Promise((resolve, reject) => { | ||
b = setTimeout(reject.bind(this, reason || 'timeout'), delay); | ||
}); | ||
a.clearTimeout = () => { clearTimeout(b); }; | ||
return a; | ||
}; |
{ | ||
"name": "nyks", | ||
"version": "5.16.0", | ||
"version": "5.16.1", | ||
"description": "nodejs exupery style", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
71666
1901