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

async-deco

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-deco - npm Package Compare versions

Comparing version 7.6.0 to 8.0.0

10

package.json
{
"name": "async-deco",
"version": "7.6.0",
"version": "8.0.0",
"description": "A collection of decorators for adding features to asynchronous functions (callback or promise based).",

@@ -29,3 +29,3 @@ "main": "index.js",

"mocha": "^2.1.0",
"memoize-cache": "^3.3.1",
"memoize-cache": "^5.0.1",
"npm-release": "^1.0.0"

@@ -35,6 +35,6 @@ },

"es6-promisify": "^3.0.0",
"little-ds-toolkit": "0.2.1",
"little-ds-toolkit": "0.4.0",
"lodash": "^4.13.1",
"memoize-cache-utils": "^0.0.2",
"occamsrazor-match": "^4.0.0",
"memoize-cache-utils": "^0.1.1",
"occamsrazor-match": "^4.1.0",
"require-all": "^2.0.0",

@@ -41,0 +41,0 @@ "setimmediate": "^1.0.4",

@@ -198,3 +198,3 @@ async-deco

-----
It is a more sophisticated version of the memoize decorator. It can be used for caching in a db/file etc using memoize-cache (https://github.com/sithmel/memoize-cache).
It is a more sophisticated version of the memoize decorator. It can be used for caching in a db/file etc using memoize-cache (https://github.com/sithmel/memoize-cache). Please use version > 5.0.0. Or memoize-cache-redis > 1.0.0 or memoize-cache-manager > 1.0.0.
```js

@@ -302,3 +302,3 @@ var cacheDecorator = require('async-deco/callback/cache');

It takes 2 arguments:
* a cache object [mandatory]. The interface should be compatible with memoize-cache (https://github.com/sithmel/memoize-cache)
* a cache object [mandatory]. The interface should be compatible with memoize-cache (https://github.com/sithmel/memoize-cache). Please use version > 5.0.0. Or memoize-cache-redis > 1.0.0 or memoize-cache-manager > 1.0.0.
* an options object with this optional attributes:

@@ -305,0 +305,0 @@ * error: the error instance for deciding to fallback, or a function taking the error and result (if it returns true it'll trigger the fallback) [optional, it falls back on any error by default]

@@ -34,3 +34,3 @@ var defaultLogger = require('../utils/default-logger');

if (key) {
logger('cache-set', {key: key, args: args, res: res});
logger('cache-set', {key: key.key, tags: key.tags, args: args, res: res});
}

@@ -37,0 +37,0 @@ }

@@ -44,3 +44,3 @@ var defaultLogger = require('../utils/default-logger');

if (key) {
logger('fallback-cache-set', {key: key, args: args, res: res});
logger('fallback-cache-set', {key: key.key, tags: key.tags, args: args, res: res});
}

@@ -47,0 +47,0 @@ }

var assert = require('chai').assert;
var Cache = require('memoize-cache').ramCache;
var Cache = require('memoize-cache').CacheRAM;
var cacheDecorator = require('../../callback/cache');

@@ -4,0 +4,0 @@

var assert = require('chai').assert;
var Cache = require('memoize-cache').ramCache;
var Cache = require('memoize-cache').CacheRAM;
var fallbackCacheDecorator = require('../../callback/fallback-cache');

@@ -4,0 +4,0 @@

var assert = require('chai').assert;
var Cache = require('memoize-cache').ramCache;
var Cache = require('memoize-cache').CacheRAM;
var proxyDecorator = require('../../callback/proxy');

@@ -4,0 +4,0 @@ var fallbackValueDecorator = require('../../callback/fallback-value');

var assert = require('chai').assert;
var Cache = require('memoize-cache').ramCache;
var Cache = require('memoize-cache').CacheRAM;
var dedupeDecorator = require('../../callback/dedupe');

@@ -4,0 +4,0 @@ var cacheDecorator = require('../../callback/cache');

var assert = require('chai').assert;
var Cache = require('memoize-cache').ramCache;
var Cache = require('memoize-cache').CacheRAM;
var cacheDecorator = require('../../promise/cache');

@@ -4,0 +4,0 @@

var assert = require('chai').assert;
var Cache = require('memoize-cache').ramCache;
var Cache = require('memoize-cache').CacheRAM;
var fallbackCacheDecorator = require('../../promise/fallback-cache');

@@ -4,0 +4,0 @@

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