aboutsummaryrefslogtreecommitdiff
path: root/node_modules/errno
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
committerFlorian Dold <florian.dold@gmail.com>2017-12-10 21:51:33 +0100
commit0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch)
treef9864d4a4148621378958794cbbfdc2393733283 /node_modules/errno
parent6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff)
downloadwallet-core-0469abd4a9c9270a1fdc962969e36e63699af8b4.tar.xz
upgrade dependencies
Diffstat (limited to 'node_modules/errno')
-rw-r--r--node_modules/errno/.npmignore1
-rw-r--r--node_modules/errno/.travis.yml11
-rw-r--r--node_modules/errno/README.md10
-rwxr-xr-xnode_modules/errno/cli.js8
-rw-r--r--node_modules/errno/package.json6
-rwxr-xr-xnode_modules/errno/test.js10
6 files changed, 31 insertions, 15 deletions
diff --git a/node_modules/errno/.npmignore b/node_modules/errno/.npmignore
deleted file mode 100644
index b512c09d4..000000000
--- a/node_modules/errno/.npmignore
+++ /dev/null
@@ -1 +0,0 @@
-node_modules \ No newline at end of file
diff --git a/node_modules/errno/.travis.yml b/node_modules/errno/.travis.yml
new file mode 100644
index 000000000..f996821c5
--- /dev/null
+++ b/node_modules/errno/.travis.yml
@@ -0,0 +1,11 @@
+sudo: false
+
+language: node_js
+
+node_js:
+ - 9
+ - 8
+ - 7
+ - 6
+ - 5
+ - 4
diff --git a/node_modules/errno/README.md b/node_modules/errno/README.md
index 2c1f8a525..a4d0fb542 100644
--- a/node_modules/errno/README.md
+++ b/node_modules/errno/README.md
@@ -1,6 +1,10 @@
# 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)
* [Custom errors](#customerrors)
@@ -86,7 +90,7 @@ You will need to install with `npm install errno -g` if you want the `errno` com
<a name="customerrors"></a>
## Custom errors
-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.
```js
var create = require('errno').custom.createError
@@ -138,4 +142,4 @@ 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. \ No newline at end of file
+SOFTWARE.
diff --git a/node_modules/errno/cli.js b/node_modules/errno/cli.js
index f841771b8..61d179bbe 100755
--- a/node_modules/errno/cli.js
+++ b/node_modules/errno/cli.js
@@ -4,8 +4,10 @@ var errno = require('./')
, arg = process.argv[2]
, data, code
-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)
+}
if ((code = +arg) == arg)
data = errno.errno[code]
@@ -17,4 +19,4 @@ if (data)
else {
console.error('No such errno/code: "' + arg + '"')
process.exit(1)
-} \ No newline at end of file
+}
diff --git a/node_modules/errno/package.json b/node_modules/errno/package.json
index fe877cba5..aec4411fd 100644
--- a/node_modules/errno/package.json
+++ b/node_modules/errno/package.json
@@ -9,16 +9,16 @@
"errno",
"libuv"
],
- "version": "0.1.4",
+ "version": "0.1.5",
"main": "errno.js",
"dependencies": {
- "prr": "~0.0.0"
+ "prr": "~1.0.1"
},
"bin": {
"errno": "./cli.js"
},
"devDependencies": {
- "tape": "~3.5.0"
+ "tape": "~4.8.0"
},
"repository": {
"type": "git",
diff --git a/node_modules/errno/test.js b/node_modules/errno/test.js
index 6b76a85ae..3a0ef7013 100755
--- a/node_modules/errno/test.js
+++ b/node_modules/errno/test.js
@@ -8,14 +8,14 @@ test('sanity checks', function (t) {
t.ok(errno.errno, 'errno.errno not found')
t.ok(errno.code, 'errno.code not found')
- 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()
})