aboutsummaryrefslogtreecommitdiff
path: root/node_modules/process-nextick-args
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2018-09-20 02:56:13 +0200
commitbbff7403fbf46f9ad92240ac213df8d30ef31b64 (patch)
treec58400ec5124da1c7d56b01aea83309f80a56c3b /node_modules/process-nextick-args
parent003fb34971cf63466184351b4db5f7c67df4f444 (diff)
downloadwallet-core-bbff7403fbf46f9ad92240ac213df8d30ef31b64.tar.xz
update packages
Diffstat (limited to 'node_modules/process-nextick-args')
-rw-r--r--node_modules/process-nextick-args/.travis.yml12
-rw-r--r--node_modules/process-nextick-args/index.js5
-rw-r--r--node_modules/process-nextick-args/package.json5
-rw-r--r--node_modules/process-nextick-args/readme.md4
-rw-r--r--node_modules/process-nextick-args/test.js24
5 files changed, 9 insertions, 41 deletions
diff --git a/node_modules/process-nextick-args/.travis.yml b/node_modules/process-nextick-args/.travis.yml
deleted file mode 100644
index 36201b100..000000000
--- a/node_modules/process-nextick-args/.travis.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-language: node_js
-node_js:
- - "0.8"
- - "0.10"
- - "0.11"
- - "0.12"
- - "1.7.1"
- - 1
- - 2
- - 3
- - 4
- - 5
diff --git a/node_modules/process-nextick-args/index.js b/node_modules/process-nextick-args/index.js
index a4f40f845..5f585e8e7 100644
--- a/node_modules/process-nextick-args/index.js
+++ b/node_modules/process-nextick-args/index.js
@@ -3,9 +3,9 @@
if (!process.version ||
process.version.indexOf('v0.') === 0 ||
process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) {
- module.exports = nextTick;
+ module.exports = { nextTick: nextTick };
} else {
- module.exports = process.nextTick;
+ module.exports = process
}
function nextTick(fn, arg1, arg2, arg3) {
@@ -41,3 +41,4 @@ function nextTick(fn, arg1, arg2, arg3) {
});
}
}
+
diff --git a/node_modules/process-nextick-args/package.json b/node_modules/process-nextick-args/package.json
index e5c6c5674..42c5b6794 100644
--- a/node_modules/process-nextick-args/package.json
+++ b/node_modules/process-nextick-args/package.json
@@ -1,8 +1,11 @@
{
"name": "process-nextick-args",
- "version": "1.0.7",
+ "version": "2.0.0",
"description": "process.nextTick but always with args",
"main": "index.js",
+ "files": [
+ "index.js"
+ ],
"scripts": {
"test": "node test.js"
},
diff --git a/node_modules/process-nextick-args/readme.md b/node_modules/process-nextick-args/readme.md
index 78e7cfaeb..ecb432c9b 100644
--- a/node_modules/process-nextick-args/readme.md
+++ b/node_modules/process-nextick-args/readme.md
@@ -10,9 +10,9 @@ npm install --save process-nextick-args
Always be able to pass arguments to process.nextTick, no matter the platform
```js
-var nextTick = require('process-nextick-args');
+var pna = require('process-nextick-args');
-nextTick(function (a, b, c) {
+pna.nextTick(function (a, b, c) {
console.log(a, b, c);
}, 'step', 3, 'profit');
```
diff --git a/node_modules/process-nextick-args/test.js b/node_modules/process-nextick-args/test.js
deleted file mode 100644
index ef1572158..000000000
--- a/node_modules/process-nextick-args/test.js
+++ /dev/null
@@ -1,24 +0,0 @@
-var test = require("tap").test;
-var nextTick = require('./');
-
-test('should work', function (t) {
- t.plan(5);
- nextTick(function (a) {
- t.ok(a);
- nextTick(function (thing) {
- t.equals(thing, 7);
- }, 7);
- }, true);
- nextTick(function (a, b, c) {
- t.equals(a, 'step');
- t.equals(b, 3);
- t.equals(c, 'profit');
- }, 'step', 3, 'profit');
-});
-
-test('correct number of arguments', function (t) {
- t.plan(1);
- nextTick(function () {
- t.equals(2, arguments.length, 'correct number');
- }, 1, 2);
-});