Comparing version 0.1.4 to 0.1.5
@@ -7,4 +7,6 @@ #!/usr/bin/env node | ||
if (arg === undefined) | ||
return console.log(JSON.stringify(errno.code, null, 2)) | ||
if (arg === undefined) { | ||
console.log(JSON.stringify(errno.code, null, 2)) | ||
process.exit(0) | ||
} | ||
@@ -21,2 +23,2 @@ if ((code = +arg) == arg) | ||
process.exit(1) | ||
} | ||
} |
@@ -12,6 +12,6 @@ { | ||
], | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"main": "errno.js", | ||
"dependencies": { | ||
"prr": "~0.0.0" | ||
"prr": "~1.0.1" | ||
}, | ||
@@ -22,3 +22,3 @@ "bin": { | ||
"devDependencies": { | ||
"tape": "~3.5.0" | ||
"tape": "~4.8.0" | ||
}, | ||
@@ -25,0 +25,0 @@ "repository": { |
# node-errno | ||
Better [libuv](https://github.com/libuv/libuv)/[Node.js](https://nodejs.org)/[io.js](https://iojs.org) error handling & reporting. Available in npm as *errno*. | ||
> Better [libuv](https://github.com/libuv/libuv)/[Node.js](https://nodejs.org)/[io.js](https://iojs.org) error handling & reporting. Available in npm as *errno*. | ||
[![npm](https://img.shields.io/npm/v/errno.svg)](https://www.npmjs.com/package/errno) | ||
[![Build Status](https://secure.travis-ci.org/rvagg/node-errno.png)](http://travis-ci.org/rvagg/node-errno) | ||
[![npm](https://img.shields.io/npm/dm/errno.svg)](https://www.npmjs.com/package/errno) | ||
* [errno exposed](#errnoexposed) | ||
@@ -89,3 +93,3 @@ * [Custom errors](#customerrors) | ||
Use `errno.custom.createError()` to create custom `Error` objects to throw around in your Node.js library. Create error heirachies so `instanceof` becomes a useful tool in tracking errors. Call-stack is correctly captured at the time you create an instance of the error object, plus a `cause` property will make available the original error object if you pass one in to the constructor. | ||
Use `errno.custom.createError()` to create custom `Error` objects to throw around in your Node.js library. Create error hierarchies so `instanceof` becomes a useful tool in tracking errors. Call-stack is correctly captured at the time you create an instance of the error object, plus a `cause` property will make available the original error object if you pass one in to the constructor. | ||
@@ -142,2 +146,2 @@ ```js | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
SOFTWARE. |
10
test.js
@@ -11,10 +11,10 @@ #!/usr/bin/env node | ||
t.equal(errno.all.length, 59, 'found ' + errno.all.length + ', expected 59') | ||
t.equal(errno.errno['-1'], errno.all[0], 'errno -1 not first element') | ||
t.equal(errno.all.length, 60, 'found ' + errno.all.length + ', expected 60') | ||
t.equal(errno.errno['-1'], errno.all[1], 'errno -1 not second element') | ||
t.equal(errno.code['UNKNOWN'], errno.all[0], 'code UNKNOWN not first element') | ||
t.equal(errno.code['UNKNOWN'], errno.all[1], 'code UNKNOWN not second element') | ||
t.equal(errno.errno[1], errno.all[2], 'errno 1 not third element') | ||
t.equal(errno.errno[1], errno.all[3], 'errno 1 not fourth element') | ||
t.equal(errno.code['EOF'], errno.all[2], 'code EOF not third element') | ||
t.equal(errno.code['EOF'], errno.all[3], 'code EOF not fourth element') | ||
t.end() | ||
@@ -21,0 +21,0 @@ }) |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
16306
431
146
1
+ Addedprr@1.0.1(transitive)
- Removedprr@0.0.0(transitive)
Updatedprr@~1.0.1