async-deco
Advanced tools
Comparing version 7.0.3 to 7.0.4
{ | ||
"name": "async-deco", | ||
"version": "7.0.3", | ||
"version": "7.0.4", | ||
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,1 +1,2 @@ | ||
require('setimmediate'); | ||
var defaultLogger = require('../utils/default-logger'); | ||
@@ -20,3 +21,7 @@ var keyGetter = require('memoize-cache-utils/key-getter'); | ||
for (var i = 0; i < len; i++) { | ||
callback_queues[cacheKey][i](err, dep); | ||
setImmediate((function (f) { | ||
return function () { | ||
f(err, dep); | ||
}; | ||
})(callback_queues[cacheKey][i]), 0); | ||
} | ||
@@ -23,0 +28,0 @@ delete callback_queues[cacheKey]; |
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
135472
3657