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

errno

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errno - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

8

custom.js

@@ -11,3 +11,4 @@ function init (name, message, cause) {

Error.call(this)
Error.captureStackTrace(this, arguments.callee)
if (Error.captureStackTrace)
Error.captureStackTrace(this, arguments.callee)
init.call(this, 'CustomError', message, cause)

@@ -33,3 +34,4 @@ }

Error.call(this)
Error.captureStackTrace(this, arguments.callee)
if (Error.captureStackTrace)
Error.captureStackTrace(this, arguments.callee)
}

@@ -47,2 +49,2 @@ err.prototype = !!proto ? new proto() : new CustomError()

}
}
}

@@ -30,3 +30,3 @@ var all = module.exports.all = [

"code": "EAGAIN",
"description": "no more processes"
"description": "resource temporarily unavailable"
},

@@ -41,3 +41,3 @@ {

"code": "EADDRNOTAVAIL",
"description": ""
"description": "address not available"
},

@@ -47,3 +47,3 @@ {

"code": "EAFNOSUPPORT",
"description": ""
"description": "address family not supported"
},

@@ -53,3 +53,3 @@ {

"code": "EALREADY",
"description": ""
"description": "connection already in progress"
},

@@ -214,3 +214,3 @@ {

"code": "ECHARSET",
"description": ""
"description": "invalid Unicode character"
},

@@ -220,3 +220,3 @@ {

"code": "EAIFAMNOSUPPORT",
"description": ""
"description": "address family for hostname not supported"
},

@@ -226,3 +226,3 @@ {

"code": "EAISERVICE",
"description": ""
"description": "servname not supported for ai_socktype"
},

@@ -232,3 +232,3 @@ {

"code": "EAISOCKTYPE",
"description": ""
"description": "ai_socktype not supported"
},

@@ -238,3 +238,3 @@ {

"code": "ESHUTDOWN",
"description": ""
"description": "cannot send after transport endpoint shutdown"
},

@@ -241,0 +241,0 @@ {

@@ -8,3 +8,3 @@ {

, "keywords": [ "errors", "errno", "libuv" ]
, "version": "0.0.3"
, "version": "0.0.4"
, "main": "errno.js"

@@ -22,3 +22,6 @@ , "dependencies": {}

}
, "license" : "MIT"
}
, "license": "MIT"
, "scripts": {
"test": "node ./test.js"
}
}

@@ -10,3 +10,3 @@ #!/usr/bin/env node

assert(errno.all.length === 56, 'found ' + errno.all.length + ', expected 56')
assert(errno.all.length === 59, 'found ' + errno.all.length + ', expected 59')

@@ -19,2 +19,2 @@ assert(errno.errno['-1'] === errno.all[0], 'errno -1 not first element')

assert(errno.code['EOF'] === errno.all[2], 'code EOF not third element')
assert(errno.code['EOF'] === errno.all[2], 'code EOF not third element')
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