express-boom-filemaker
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -8,12 +8,9 @@ const boom = require('boom'); | ||
res.boom = {}; | ||
Object.keys(boom).forEach(function(key) { | ||
Object.getOwnPropertyNames(boom).forEach(function(key) { | ||
if (typeof boom[key] !== 'function') return; | ||
if (helperMethods.indexOf(key) !== -1) { | ||
res.boom[key] = function() { | ||
return boom[key].apply(boom, arguments); | ||
}; | ||
res.boom[key] = () => boom[key].apply(boom, arguments); | ||
} else { | ||
res.boom[key] = function() { | ||
const boomed = boom[key].apply(boom, arguments); | ||
const boomedPayloadAndAditionalResponse = Object.assign( | ||
@@ -20,0 +17,0 @@ boomed.output.payload, |
{ | ||
"name": "express-boom-filemaker", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "A module to map boom errors to a custom response header accessible to a FileMaker client.", | ||
@@ -5,0 +5,0 @@ "main": "index.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
5241
25