set-error-class
Advanced tools
@@ -42,7 +42,7 @@ import{setNonEnumProp}from"./enum.js"; | ||
| const getClassName=function(prototype){var _ref,_getPrototypeName; | ||
| return(_ref=(_getPrototypeName= | ||
| getPrototypeName(prototype))!==null&&_getPrototypeName!==void 0?_getPrototypeName: | ||
| getConstructorName(prototype))!==null&&_ref!==void 0?_ref: | ||
| getClassName(Object.getPrototypeOf(prototype)); | ||
| const getClassName=function(prototype){ | ||
| return( | ||
| getPrototypeName(prototype)?? | ||
| getConstructorName(prototype)?? | ||
| getClassName(Object.getPrototypeOf(prototype))); | ||
@@ -49,0 +49,0 @@ }; |
+4
-3
| { | ||
| "name": "set-error-class", | ||
| "version": "1.3.0", | ||
| "version": "1.4.0", | ||
| "type": "module", | ||
@@ -15,2 +15,3 @@ "exports": { | ||
| ], | ||
| "sideEffects": false, | ||
| "scripts": { | ||
@@ -33,6 +34,6 @@ "test": "gulp test" | ||
| "dependencies": { | ||
| "normalize-exception": "^2.10.0" | ||
| "normalize-exception": "^2.11.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@ehmicky/dev-tasks": "^1.0.99", | ||
| "@ehmicky/dev-tasks": "^1.0.102", | ||
| "test-each": "^5.5.0" | ||
@@ -39,0 +40,0 @@ }, |
+3
-2
@@ -43,4 +43,5 @@ [](https://www.npmjs.com/package/set-error-class) | ||
| This package works in both Node.js >=14.18.0 and browsers. It is an ES module | ||
| and must be loaded using | ||
| This package works in both Node.js >=14.18.0 and | ||
| [browsers](https://raw.githubusercontent.com/ehmicky/dev-tasks/main/src/tasks/build/browserslist). | ||
| It is an ES module and must be loaded using | ||
| [an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c), | ||
@@ -47,0 +48,0 @@ not `require()`. |
140
0.72%12974
-0.12%Updated