New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

error-type

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

error-type - npm Package Compare versions

Comparing version 1.1.10 to 1.2.0

2

build/src/name.js

@@ -48,2 +48,4 @@ import{setNonEnumProp}from"./set.js";

"AssertionError",
"Warning",
"UnhandledPromiseRejection",

@@ -50,0 +52,0 @@

8

package.json
{
"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": {

[![Codecov](https://img.shields.io/codecov/c/github/ehmicky/error-type.svg?label=tested&logo=codecov)](https://codecov.io/gh/ehmicky/error-type)
[![Build](https://github.com/ehmicky/error-type/workflows/Build/badge.svg)](https://github.com/ehmicky/error-type/actions)
[![Node](https://img.shields.io/node/v/error-type.svg?logo=node.js)](https://www.npmjs.com/package/error-type)
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-4cc61e.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)
[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-4cc61e.svg?logo=medium)](https://medium.com/@ehmicky)
[![TypeScript](https://img.shields.io/badge/-typed-brightgreen?logo=typescript&colorA=gray)](/src/main.d.ts)
[![Twitter](https://img.shields.io/badge/%E2%80%8B-twitter-brightgreen.svg?logo=twitter)](https://twitter.com/intent/follow?screen_name=ehmicky)
[![Medium](https://img.shields.io/badge/%E2%80%8B-medium-brightgreen.svg?logo=medium)](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc