Comparing version 2.1.0 to 2.1.1
@@ -15,2 +15,3 @@ const appendLibPath = require('./lib/append.js'); | ||
let args = [].slice.call(arguments); | ||
let isLocal = !names[0]; | ||
@@ -20,3 +21,3 @@ if (names.length === 0) { | ||
return LibGen(cfg, names); | ||
} else if (names.length === 1) { | ||
} else if (names.length === 1 && !isLocal) { | ||
cfg.keys = (typeof args[0] === 'object' ? args[0] : null) || {}; | ||
@@ -26,3 +27,2 @@ return LibGen(cfg, names); | ||
let p = parseParameters(args); | ||
let isLocal = !names[0]; | ||
if (isLocal) { | ||
@@ -29,0 +29,0 @@ executeLocal(cfg, names, p.args, p.kwargs, p.body, p.callback); |
{ | ||
"name": "lib", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "StdLib: Standard Library for Microservices Node.js Bindings", | ||
@@ -5,0 +5,0 @@ "main": "lib.js", |
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
13112