cache-manager
Advanced tools
Comparing version 0.10.1 to 0.11.0
@@ -0,1 +1,4 @@ | ||
- 0.11.0 2014-09-18 | ||
Prevent stalemate by executing callbacks on error. Fixes #10 - elliotttf | ||
- 0.10.1 2014-09-10 | ||
@@ -2,0 +5,0 @@ Fixed tag/version mismatch |
@@ -51,3 +51,7 @@ /*jshint maxcomplexity:10*/ | ||
if (work_args[0]) { // assume first arg is an error | ||
return cb(work_args[0]); | ||
self.queues[key].forEach(function (done) { | ||
done.call(null, work_args[0]); | ||
}); | ||
delete self.queues[key]; | ||
return; | ||
} | ||
@@ -57,9 +61,12 @@ // Subsequently assume second arg is result. | ||
if (err && (!self.ignoreCacheErrors)) { | ||
return cb(err); | ||
self.queues[key].forEach(function (done) { | ||
done.call(null, err); | ||
}); | ||
} | ||
else { | ||
self.queues[key].forEach(function (done) { | ||
done.apply(null, work_args); | ||
}); | ||
} | ||
self.queues[key].forEach(function (done) { | ||
done.apply(null, work_args); | ||
}); | ||
delete self.queues[key]; | ||
@@ -66,0 +73,0 @@ }); |
{ | ||
"name": "cache-manager", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "Cache module for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
71498
1431