quantal-errors
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -5,3 +5,3 @@ /** | ||
'use strict' | ||
const CommonErrors = require('quantal-errors') | ||
const utils = require('./utils') | ||
const _ = require('lodash') | ||
@@ -11,5 +11,5 @@ | ||
return (err, req, res, next) => { | ||
const boomErr = CommonErrors.utils.toBoom(err, customErrors, customMappings) | ||
const boomErr = utils.toBoom(err, customErrors, customMappings) | ||
res.status(boomErr.output.statusCode).json(_.omit(boomErr.output.payload, ['params'])) | ||
} | ||
} |
{ | ||
"name": "quantal-errors", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"description": "Common errors and their utils", | ||
@@ -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
16964