Comparing version 2.2.1 to 2.2.2
@@ -56,5 +56,6 @@ const path = require('path'); | ||
let promise = fn(fnParams, (err, result, rheaders) => { | ||
let promise; | ||
promise = fn(fnParams, (err, result, rheaders) => { | ||
if (promise && (promise instanceof Promise)) { | ||
if (promise instanceof Promise) { | ||
return; | ||
@@ -78,6 +79,6 @@ } | ||
if (promise && (promise instanceof Promise)) { | ||
if (promise instanceof Promise) { | ||
promise.catch(err => { | ||
console.error(err); | ||
callback(err) | ||
callback(err); | ||
}).then(result => callback(null, result)); | ||
@@ -84,0 +85,0 @@ } |
{ | ||
"name": "lib", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"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
253
14473