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.0 to 1.0.1

2

index.js

@@ -34,2 +34,4 @@ var errors = [];

"ECANCELED", "ENFILE", "EXDEV");
addError("ConnectError", "ECONNABORTED", "ECONNREFUSED", "ECONNRESET", "ETIMEDOUT");
addError("BindError", "EADDRNOTAVAIL");
addError("NetworkError", "EADDRINFO", "EADDRNOTAVAIL", "EAFNOSUPPORT",

@@ -36,0 +38,0 @@ "EALREADY", "ECONNABORTED", "ECONNREFUSED",

2

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

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

@@ -41,2 +41,4 @@ #Installation

- [`FileSystemError`](#filesystemerror)
- [`ConnectError`](#connecterror)
- [`BindError`](#binderror)
- [`NetworkError`](#networkerror)

@@ -117,2 +119,17 @@ - [`SSLError`](#sslerror)

#####`ConnectError`
When the error's code matches one of:
- `ECONNABORTED`
- `ECONNREFUSED`
- `ECONNRESET`
- `ETIMEDOUT`
#####`BindError`
When the error's code matches one of:
- `EADDRNOTAVAIL`
#####`NetworkError`

@@ -151,3 +168,26 @@

When the error's message begins with ` - `SSL Error:`
When the error's message begins with `"SSL Error:"`.
#License
The MIT License (MIT)
Copyright (c) 2015 Petka Antonov
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:</p>
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
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