json-rpc-engine
Advanced tools
Comparing version 3.7.1 to 3.7.2
{ | ||
"name": "json-rpc-engine", | ||
"version": "3.7.1", | ||
"version": "3.7.2", | ||
"description": "a tool for processing JSON RPC", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -15,3 +15,8 @@ const promiseToCallback = require('promise-to-callback') | ||
promiseToCallback(nextDonePromise)((nextErr, nextHandlerSignalDone) => { | ||
if (nextErr) return done(nextErr) | ||
// nextErr is only present if something went really wrong | ||
// if an error is thrown after `await next()` it appears as `err` and not `nextErr` | ||
if (nextErr) { | ||
console.error(nextErr) | ||
return end(nextErr) | ||
} | ||
nextHandlerSignalDone(err) | ||
@@ -18,0 +23,0 @@ }) |
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
22754
612