mongoose-disable-stack-trace
Advanced tools
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
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
0
100
14
3857