[Pkg-javascript-commits] [node-stream-browserify] 10/44: use the nextTick shim from process/browser.js for setImmediate

Bastien Roucariès rouca at moszumanska.debian.org
Sun Aug 13 14:18:41 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-stream-browserify.

commit d57268dfc5b38431db3961c1a9cd2f91db6a88d7
Author: James Halliday <mail at substack.net>
Date:   Wed Dec 11 21:46:43 2013 -0800

    use the nextTick shim from process/browser.js for setImmediate
---
 duplex.js    | 2 +-
 package.json | 2 +-
 readable.js  | 2 +-
 writable.js  | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/duplex.js b/duplex.js
index f67eae1..a7e92e0 100644
--- a/duplex.js
+++ b/duplex.js
@@ -26,7 +26,7 @@
 
 module.exports = Duplex;
 var inherits = require('inherits');
-var setImmediate = require('setimmediate');
+var setImmediate = require('process/browser.js').nextTick;
 var Readable = require('./readable.js');
 var Writable = require('./writable.js');
 
diff --git a/package.json b/package.json
index 07c59e5..0f26560 100644
--- a/package.json
+++ b/package.json
@@ -5,7 +5,7 @@
   "main": "index.js",
   "dependencies": {
     "inherits": "~2.0.1",
-    "setimmediate": "~1.0.1"
+    "process": "~0.5.1"
   },
   "repository": {
     "type": "git",
diff --git a/readable.js b/readable.js
index 8140107..d46d812 100644
--- a/readable.js
+++ b/readable.js
@@ -25,7 +25,7 @@ Readable.ReadableState = ReadableState;
 var EE = require('events').EventEmitter;
 var Stream = require('./index.js');
 var Buffer = require('buffer').Buffer;
-var setImmediate = require('setimmediate');
+var setImmediate = require('process/browser.js').nextTick;
 var StringDecoder;
 
 var inherits = require('inherits');
diff --git a/writable.js b/writable.js
index 2164530..7c58f2e 100644
--- a/writable.js
+++ b/writable.js
@@ -28,7 +28,7 @@ Writable.WritableState = WritableState;
 
 var inherits = require('inherits');
 var Stream = require('./index.js');
-var setImmediate = require('setimmediate');
+var setImmediate = require('process/browser.js').nextTick;
 var Buffer = require('buffer').Buffer;
 
 inherits(Writable, Stream);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-browserify.git



More information about the Pkg-javascript-commits mailing list