error-custom-class
Advanced tools
Comparing version 8.4.0 to 9.0.0
@@ -20,8 +20,7 @@ import{ | ||
ensureCorrectClass(this,new.target); | ||
ponyfillCause(this,parameters); | ||
}}; | ||
ponyfillCause(this,parameters) | ||
} | ||
}; | ||
setErrorName(CustomErrorClass,name); | ||
return CustomErrorClass; | ||
} | ||
//# sourceMappingURL=main.js.map | ||
return CustomErrorClass | ||
} |
{ | ||
"name": "error-custom-class", | ||
"version": "8.4.0", | ||
"version": "9.0.0", | ||
"type": "module", | ||
"exports": { | ||
"types": "./build/types/main.d.ts", | ||
"types": "./build/src/main.d.ts", | ||
"default": "./build/src/main.js" | ||
}, | ||
"main": "./build/src/main.js", | ||
"types": "./build/types/main.d.ts", | ||
"types": "./build/src/main.d.ts", | ||
"files": [ | ||
"build/src/**/*.{js,json}", | ||
"build/types/**/*.d.ts" | ||
"build/src/**/*.{js,json,d.ts}", | ||
"!build/src/**/*.test.js", | ||
"!build/src/{helpers,fixtures}" | ||
], | ||
@@ -50,17 +51,16 @@ "sideEffects": false, | ||
"directories": { | ||
"lib": "src", | ||
"test": "test" | ||
"lib": "src" | ||
}, | ||
"dependencies": { | ||
"error-class-utils": "^2.4.0" | ||
"error-class-utils": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.102", | ||
"error-cause": "^1.0.4", | ||
"error-cause-polyfill": "^1.3.0", | ||
"test-each": "^5.5.0" | ||
"@ehmicky/dev-tasks": "^2.0.80", | ||
"error-cause": "^1.0.5", | ||
"error-cause-polyfill": "^2.0.0", | ||
"test-each": "^6.0.0" | ||
}, | ||
"engines": { | ||
"node": ">=14.18.0" | ||
"node": ">=16.17.0" | ||
} | ||
} |
[![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js&colorA=404040&logoColor=66cc33)](https://www.npmjs.com/package/error-custom-class) | ||
[![Browsers](https://img.shields.io/badge/-Browsers-808080?logo=firefox&colorA=404040)](https://unpkg.com/error-custom-class?module) | ||
[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript&colorA=404040&logoColor=0096ff)](/types/main.d.ts) | ||
[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript&colorA=404040&logoColor=0096ff)](/src/main.d.ts) | ||
[![Codecov](https://img.shields.io/badge/-Tested%20100%25-808080?logo=codecov&colorA=404040)](https://codecov.io/gh/ehmicky/error-custom-class) | ||
[![Minified size](https://img.shields.io/bundlephobia/minzip/error-custom-class?label&colorA=404040&colorB=808080&logo=webpack)](https://bundlephobia.com/package/error-custom-class) | ||
[![Twitter](https://img.shields.io/badge/-Twitter-808080.svg?logo=twitter&colorA=404040)](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
[![Mastodon](https://img.shields.io/badge/-Mastodon-808080.svg?logo=mastodon&colorA=404040&logoColor=9590F9)](https://fosstodon.org/@ehmicky) | ||
[![Medium](https://img.shields.io/badge/-Medium-808080.svg?logo=medium&colorA=404040)](https://medium.com/@ehmicky) | ||
@@ -46,7 +46,10 @@ | ||
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 | ||
This package works in both Node.js >=16.17.0 and | ||
[browsers](https://raw.githubusercontent.com/ehmicky/dev-tasks/main/src/browserslist). | ||
This is an ES module. It must be loaded using | ||
[an `import` or `import()` statement](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c), | ||
not `require()`. | ||
not `require()`. If TypeScript is used, it must be configured to | ||
[output ES modules](https://www.typescriptlang.org/docs/handbook/esm-node.html), | ||
not CommonJS. | ||
@@ -68,4 +71,4 @@ # API | ||
- [`modern-errors`](https://github.com/ehmicky/modern-errors): Handle errors | ||
like it's 2022 🔮 | ||
- [`modern-errors`](https://github.com/ehmicky/modern-errors): Handle errors in | ||
a simple, stable, consistent way | ||
- [`error-class-utils`](https://github.com/ehmicky/error-class-utils): Utilities | ||
@@ -85,4 +88,8 @@ to properly create error classes | ||
update an error's message | ||
- [`wrap-error-message`](https://github.com/ehmicky/wrap-error-message): | ||
Properly wrap an error's message | ||
- [`set-error-props`](https://github.com/ehmicky/set-error-props): Properly | ||
update an error's properties | ||
- [`set-error-stack`](https://github.com/ehmicky/set-error-stack): Properly | ||
update an error's stack | ||
- [`error-cause-polyfill`](https://github.com/ehmicky/error-cause-polyfill): | ||
@@ -94,2 +101,6 @@ Polyfill `error.cause` | ||
some ❤ to Node.js process errors | ||
- [`error-http-response`](https://github.com/ehmicky/error-http-response): | ||
Create HTTP error responses | ||
- [`winston-error-format`](https://github.com/ehmicky/winston-error-format): Log | ||
errors with Winston | ||
@@ -120,4 +131,4 @@ # Support | ||
<!-- | ||
<table><tr><td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt="ehmicky"/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/error-custom-class/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/error-custom-class/commits?author=ehmicky" title="Documentation">📖</a></td></tr></table> | ||
<table><tr><td align="center"><a href="https://fosstodon.org/@ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt="ehmicky"/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/error-custom-class/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/error-custom-class/commits?author=ehmicky" title="Documentation">📖</a></td></tr></table> | ||
--> | ||
<!-- ALL-CONTRIBUTORS-LIST:END --> |
9646
50
130
+ Addederror-class-utils@3.0.0(transitive)
- Removederror-class-utils@2.5.0(transitive)
Updatederror-class-utils@^3.0.0