Socket
Socket
Sign inDemoInstall

cache-manager

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cache-manager - npm Package Compare versions

Comparing version 0.10.1 to 0.11.0

3

History.md

@@ -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

19

lib/caching.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc