pouchdb-errors
Advanced tools
Comparing version 7.2.2 to 7.3.0
@@ -58,2 +58,7 @@ import inherits from 'inherits'; | ||
} | ||
if (this.stack === undefined) { | ||
this.stack = (new Error()).stack; | ||
} | ||
/* jshint ignore:end */ | ||
@@ -93,2 +98,6 @@ if (reason !== undefined) { | ||
if (!('stack' in err)) { | ||
err.stack = (new Error()).stack; | ||
} | ||
return err; | ||
@@ -95,0 +104,0 @@ } |
@@ -64,2 +64,7 @@ 'use strict'; | ||
} | ||
if (this.stack === undefined) { | ||
this.stack = (new Error()).stack; | ||
} | ||
/* jshint ignore:end */ | ||
@@ -99,2 +104,6 @@ if (reason !== undefined) { | ||
if (!('stack' in err)) { | ||
err.stack = (new Error()).stack; | ||
} | ||
return err; | ||
@@ -101,0 +110,0 @@ } |
{ | ||
"name": "pouchdb-errors", | ||
"version": "7.2.2", | ||
"version": "7.3.0", | ||
"description": "Errors exposed by PouchDB.", | ||
@@ -9,3 +9,7 @@ "main": "./lib/index.js", | ||
"license": "Apache-2.0", | ||
"repository": "https://github.com/pouchdb/pouchdb", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/pouchdb/pouchdb.git", | ||
"directory": "packages/node_modules/pouchdb-errors" | ||
}, | ||
"jsnext:main": "./lib/index.es.js", | ||
@@ -12,0 +16,0 @@ "dependencies": { |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
21695
205
0
1