Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

core-error-predicates

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

core-error-predicates - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

3

index.js

@@ -36,2 +36,3 @@ var errors = [];

addError("BindError", "EADDRNOTAVAIL");
addError("AddressNotFoundError", "ENOTFOUND");
addError("NetworkError", "EADDRINFO", "EADDRNOTAVAIL", "EAFNOSUPPORT",

@@ -44,3 +45,3 @@ "EALREADY", "ECONNABORTED", "ECONNREFUSED",

"ETIMEDOUT", "EAIFAMNOSUPPORT", "EAISERVICE",
"EAISOCKTYPE", "ESHUTDOWN");
"EAISOCKTYPE", "ESHUTDOWN", "ENOTFOUND");

@@ -47,0 +48,0 @@ errors.push({

{
"name": "core-error-predicates",
"version": "1.0.1",
"version": "1.0.2",
"description": "Error predicate functions for operational errors thrown by node core",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -43,2 +43,3 @@ #Installation

- [`BindError`](#binderror)
- [`AddressNotFoundError`](#addressnotfounderror)
- [`NetworkError`](#networkerror)

@@ -134,2 +135,8 @@ - [`SSLError`](#sslerror)

#####`AddressNotFoundError`
When the error's code matches one of:
- `ENOTFOUND`
#####`NetworkError`

@@ -165,2 +172,3 @@

- `ESHUTDOWN`
- `ENOTFOUND`

@@ -167,0 +175,0 @@ #####`SSLError`

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