async-deco
Advanced tools
Comparing version 3.2.0 to 3.4.0
{ | ||
"name": "async-deco", | ||
"version": "3.2.0", | ||
"version": "3.4.0", | ||
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).", | ||
@@ -28,3 +28,3 @@ "main": "index.js", | ||
"husky": "^0.10.2", | ||
"memoize-cache": "0.0.2", | ||
"memoize-cache": "0.1.0", | ||
"mocha": "^2.1.0", | ||
@@ -31,0 +31,0 @@ "npm-release": "^1.0.0" |
@@ -15,9 +15,5 @@ var noopLogger = require('./noop-logger'); | ||
if (!err) { | ||
cache.push(args, dep, function () { | ||
cb(err, dep); | ||
}); | ||
cache.push(args, dep); | ||
} | ||
else { | ||
cb(err, dep); | ||
} | ||
cb(undefined, dep); | ||
}; | ||
@@ -24,0 +20,0 @@ cache.query(args, function (err, cacheQuery) { |
@@ -34,5 +34,4 @@ var noopLogger = require('./noop-logger'); | ||
else { | ||
cache.push(args, dep, function () { | ||
cb(err, dep); | ||
}); | ||
cache.push(args, dep); | ||
cb(undefined, dep); | ||
} | ||
@@ -39,0 +38,0 @@ }; |
var assert = require('chai').assert; | ||
var Cache = require('memoize-cache'); | ||
var Cache = require('memoize-cache').ramCache; | ||
var cacheDecorator = require('../../callback/cache'); | ||
@@ -4,0 +4,0 @@ |
var assert = require('chai').assert; | ||
var Cache = require('memoize-cache'); | ||
var Cache = require('memoize-cache').ramCache; | ||
var fallbackCacheDecorator = require('../../callback/fallback-cache'); | ||
@@ -4,0 +4,0 @@ |
var assert = require('chai').assert; | ||
var Cache = require('memoize-cache'); | ||
var Cache = require('memoize-cache').ramCache; | ||
var dedupeDecorator = require('../../callback/dedupe'); | ||
@@ -4,0 +4,0 @@ var cacheDecorator = require('../../callback/cache'); |
var assert = require('chai').assert; | ||
var Cache = require('memoize-cache'); | ||
var Cache = require('memoize-cache').ramCache; | ||
var cacheDecorator = require('../../promise/cache'); | ||
@@ -4,0 +4,0 @@ |
var assert = require('chai').assert; | ||
var Cache = require('memoize-cache'); | ||
var Cache = require('memoize-cache').ramCache; | ||
var fallbackCacheDecorator = require('../../promise/fallback-cache'); | ||
@@ -4,0 +4,0 @@ |
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
79947
2262