Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongodb-js-errors

Package Overview
Dependencies
Maintainers
34
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-js-errors - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

2

index.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc