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.0.1 to 7.0.2

2

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

@@ -5,0 +5,0 @@ "main": "index.js",

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

args[args.length - 1] = function (err, res) {
var key;
if (condition(err, res)) {

@@ -34,3 +35,3 @@ cache.query(args, function (e, cacheQuery) {

(!cacheQuery.stale || (useStale && cacheQuery.stale))) {
logger('fallback-cache-hit', {key: cacheQuery.key, result: cacheQuery, actualResult: {err: err, res: res}});
logger('fallback-cache-hit', {timing: cacheQuery.timing, key: cacheQuery.key, result: cacheQuery, actualResult: {err: err, res: res}});
cb(null, cacheQuery.hit);

@@ -42,3 +43,3 @@ }

else {
logger('fallback-cache-miss', {key: cacheQuery.key, actualResult: {err: err, res: res}});
logger('fallback-cache-miss', {timing: cacheQuery.timing, key: cacheQuery.key, actualResult: {err: err, res: res}});
cb(err, res);

@@ -50,4 +51,5 @@ }

if (!noPush) {
if (cache.push(args, res)) {
logger('fallback-cache-set', {args: args, res: res});
key = cache.push(args, res);
if (key) {
logger('fallback-cache-set', {key: key, args: args, res: res});
}

@@ -54,0 +56,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