mongodb-js-errors
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -89,3 +89,3 @@ /* eslint camelcase:0, complexity: 0 */ | ||
var msg = err.message || err.err || JSON.stringify(err); | ||
return new RegExp('^not authorized').test(msg); | ||
return new RegExp('not (authorized|allowed)').test(msg); | ||
}; | ||
@@ -92,0 +92,0 @@ |
{ | ||
"name": "mongodb-js-errors", | ||
"description": "Helpers for handling errors from the MongoDB driver.", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"scripts": { | ||
@@ -6,0 +6,0 @@ "fmt": "mongodb-js-fmt ./*.js test/*.js", |
@@ -11,3 +11,3 @@ # mongodb-errors [![travis][travis_img]][travis_url] [![npm][npm_img]][npm_url] | ||
app.use(require('mongodb-errors/express')); | ||
app.use(require('mongodb-js-errors/express')); | ||
app.use(function(err, req, res) { | ||
@@ -14,0 +14,0 @@ var payload = err.output.payload; |
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
19237
5