Comparing version 0.0.3 to 0.0.4
@@ -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() | ||
} | ||
} | ||
} |
18
errno.js
@@ -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') |
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
16321
520