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 9.1.4 to 9.1.5

5

es2015/add-logger.js

@@ -17,2 +17,4 @@ "use strict";

const noop = () => {};
function addLogger(log) {

@@ -38,3 +40,4 @@ if (!log) throw new Error('addLogger: You must have a log function as argument');

function getLogger(context) {
return logFunctions.get(context) || (() => {});
if (!context) return noop;
return logFunctions.get(context) || noop;
}

@@ -39,2 +39,4 @@ "use strict";

var noop = function noop() {};
function addLogger(log) {

@@ -66,3 +68,4 @@ if (!log) throw new Error('addLogger: You must have a log function as argument');

function getLogger(context) {
return logFunctions.get(context) || function () {};
if (!context) return noop;
return logFunctions.get(context) || noop;
}

2

package.json
{
"name": "async-deco",
"version": "9.1.4",
"version": "9.1.5",
"description": "A collection of decorators for adding features to asynchronous functions",

@@ -5,0 +5,0 @@ "main": "es5/index",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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