From cac429e1af19cd5f4e72449b98e672e2ff8f2ca1 Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Wed, 17 Jun 2015 16:39:02 +0900 Subject: [PATCH 1/2] deps: use PassThrough stream instead of through2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don’t need to use through2 in this case. We can use just a bare PassThrough stream. I introduced readable-stream module for more compatibility. --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index fcc9967..9241cae 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ 'use strict'; -var through = require('through2'); +var PassThrough = require('readable-stream/passthrough'); var split = require('split'); var trim = require('trim'); var util = require('util'); @@ -175,7 +175,7 @@ module.exports = function (done) { done = done || function () {}; - var stream = through(); + var stream = new PassThrough(); var parser = Parser(); reemit(parser, stream, [ 'test', 'assert', 'version', 'result', 'pass', 'fail', 'comment' diff --git a/package.json b/package.json index 6a08b33..c0f2643 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "license": "MIT", "dependencies": { "re-emitter": "^1.0.0", + "readable-stream": "^2.0.0", "split": "^1.0.0", - "through2": "^0.6.3", "trim": "0.0.1" }, "devDependencies": { From 601f7072609fe9bc94c016fb3826f718b5855cf7 Mon Sep 17 00:00:00 2001 From: Shinnosuke Watanabe Date: Wed, 17 Jun 2015 16:39:34 +0900 Subject: [PATCH 2/2] deps: bump tap-spec to v4.0.0 https://github.com/scottcorgan/tap-spec --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c0f2643..42923ca 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "trim": "0.0.1" }, "devDependencies": { - "tap-spec": "2.1.1", + "tap-spec": "4.0.0", "tape": "^4.0.0" }, "directories": {