Socket
Socket
Sign inDemoInstall

mongoose-disable-stack-trace

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-disable-stack-trace - npm Package Compare versions

Comparing version 1.0.1 to 2.0.0

14

index.js

@@ -9,7 +9,9 @@ 'use strict';

Error.captureStackTrace = (that) => !(
that instanceof CastError ||
that instanceof VersionError ||
that instanceof ValidatorError ||
that instanceof ValidationError
) && captureStackTrace.apply(Error, arguments);
module.exports = () => {
Error.captureStackTrace = (that) => !(
that instanceof CastError ||
that instanceof VersionError ||
that instanceof ValidatorError ||
that instanceof ValidationError
) && captureStackTrace.apply(Error, arguments);
};
{
"name": "mongoose-disable-stack-trace",
"version": "1.0.1",
"version": "2.0.0",
"description": "Disables Stack Trace on validation, cast and other error mongoose errors.",

@@ -20,3 +20,3 @@ "main": "index.js",

"author": "Faleij",
"license": "LGPL-3.0",
"license": "MIT",
"bugs": {

@@ -23,0 +23,0 @@ "url": "https://github.com/Faleij/mongoose-disable-stack-trace/issues"

@@ -13,3 +13,3 @@ # mongoose disable stack trace

``` javascript
require('mongoose-disable-stack-trace');
require('mongoose-disable-stack-trace')();
```

@@ -19,4 +19,4 @@

[LGPL-3](LICENSE)
[MIT](LICENSE)
Copyright (c) 2015 Faleij <faleij@gmail.com>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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