cache-manager
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -0,1 +1,4 @@ | ||
- 2.1.2 2016-06-08 | ||
- Checking that callback array exists before iterating over it (#69). | ||
- 2.1.1 2016-05-24 | ||
@@ -2,0 +5,0 @@ - Fixing version number in package.json. |
@@ -9,5 +9,7 @@ function CallbackFiller() { | ||
waiting.forEach(function(task) { | ||
(task.cb)(err, data); | ||
}); | ||
if (waiting && waiting.length) { | ||
waiting.forEach(function(task) { | ||
(task.cb)(err, data); | ||
}); | ||
} | ||
}; | ||
@@ -14,0 +16,0 @@ |
{ | ||
"name": "cache-manager", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Cache module for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -40,2 +40,6 @@ [![build status](https://secure.travis-ci.org/BryanDonovan/node-cache-manager.png)](http://travis-ci.org/BryanDonovan/node-cache-manager) | ||
* [node-cache-manager-fs-binary](https://github.com/sheershoff/node-cache-manager-fs-binary) | ||
* [node-cache-manager-hazelcast](https://github.com/marudor/node-cache-manager-hazelcast) | ||
## Overview | ||
@@ -42,0 +46,0 @@ |
@@ -518,2 +518,15 @@ // TODO: These are really a mix of unit and integration tests. | ||
context("when callback called twice by client", function() { | ||
it("it does not throw an error", function(done) { | ||
cache.wrap(key, function(cb) { | ||
methods.getWidget(name, cb); | ||
methods.getWidget(name, cb); | ||
}, opts, function(err, widget) { | ||
checkErr(err); | ||
assert.deepEqual(widget, {name: name}); | ||
setTimeout(done, 10); | ||
}); | ||
}); | ||
}); | ||
it("lets us make nested calls", function(done) { | ||
@@ -520,0 +533,0 @@ function getCachedWidget(name, cb) { |
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
134500
2858
312