core-error-predicates
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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", |
{ | ||
"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. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8834
66
191