Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cache-manager

Package Overview
Dependencies
Maintainers
1
Versions
110
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 2.1.1 to 2.1.2

3

History.md

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

8

lib/callback_filler.js

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

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