error-type
Advanced tools
Comparing version 1.1.10 to 1.2.0
@@ -48,2 +48,4 @@ import{setNonEnumProp}from"./set.js"; | ||
"AssertionError", | ||
"Warning", | ||
"UnhandledPromiseRejection", | ||
@@ -50,0 +52,0 @@ |
{ | ||
"name": "error-type", | ||
"version": "1.1.10", | ||
"version": "1.2.0", | ||
"type": "module", | ||
@@ -49,7 +49,7 @@ "exports": "./build/src/main.js", | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.77", | ||
"@ehmicky/dev-tasks": "^1.0.78", | ||
"error-cause": "^1.0.4", | ||
"error-cause-polyfill": "^1.0.3", | ||
"error-cause-polyfill": "^1.0.4", | ||
"test-each": "^5.0.0", | ||
"tsd": "^0.20.0" | ||
"tsd": "^0.21.0" | ||
}, | ||
@@ -56,0 +56,0 @@ "engines": { |
[](https://codecov.io/gh/ehmicky/error-type) | ||
[](https://github.com/ehmicky/error-type/actions) | ||
[](https://www.npmjs.com/package/error-type) | ||
[](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
[](https://medium.com/@ehmicky) | ||
[](/src/main.d.ts) | ||
[](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
[](https://medium.com/@ehmicky) | ||
@@ -182,4 +182,4 @@ Create custom error types. | ||
If the global `Error` constructor is polyfilled (for example with | ||
[`error-cause`](https://github.com/es-shims/error-cause)), this might prevent | ||
Some `Error` polyfills (such as | ||
[`es-shims/error-cause`](https://github.com/es-shims/error-cause) prevent | ||
extending from it. This library includes | ||
@@ -189,2 +189,13 @@ [some logic](https://github.com/ehmicky/error-type/blob/4ac5e53dde8a89411a59f16775f91a36ab3662b2/src/main.js#L50) | ||
# Related projects | ||
- [`modern-errors`](https://github.com/ehmicky/modern-errors): Handle errors | ||
like it's 2022 🔮 | ||
- [`normalize-exception`](https://github.com/ehmicky/normalize-exception): | ||
Normalize exceptions/errors | ||
- [`merge-error-cause`](https://github.com/ehmicky/merge-error-cause): Merge an | ||
error with its `cause` | ||
- [`error-cause-polyfill`](https://github.com/ehmicky/error-cause-polyfill): | ||
Polyfill `error.cause` | ||
# Support | ||
@@ -191,0 +202,0 @@ |
Sorry, the diff of this file is not supported yet
38403
182
226