Socket
Socket
Sign inDemoInstall

errno

Package Overview
Dependencies
1
Maintainers
2
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

.travis.yml

8

cli.js

@@ -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.

@@ -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 @@ })

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc