Package: node-tap / 12.0.1+ds-1

0010-Remove-minipass.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
From 61f743e83e9e9ef9e78ea0f84f38856819dc50d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bastien=20ROUCARI=C3=88S?= <roucaries.bastien@gmail.com>
Date: Fri, 1 Dec 2017 16:32:04 +0100
Subject: Remove minipass

Forwarded: no
---
 lib/base.js   | 2 +-
 package.json  | 1 -
 test/stdin.js | 2 +-
 test/test.js  | 2 +-
 4 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/lib/base.js b/lib/base.js
index 6cd09c4..02db19e 100644
--- a/lib/base.js
+++ b/lib/base.js
@@ -1,6 +1,6 @@
 'use strict'
 
-const MiniPass = require('minipass')
+const MiniPass = require('stream').PassThrough
 
 const extraFromError = require('./extra-from-error.js')
 const assert = require('assert')
diff --git a/package.json b/package.json
index 0fd5e85..c18e34a 100644
--- a/package.json
+++ b/package.json
@@ -23,7 +23,6 @@
     "glob": "^7.0.0",
     "isexe": "^2.0.0",
     "js-yaml": "^3.11.0",
-    "minipass": "^2.3.0",
     "mkdirp": "^0.5.1",
     "own-or": "^1.0.0",
     "own-or-env": "^1.0.1",
diff --git a/test/stdin.js b/test/stdin.js
index c0d3ef7..16518af 100644
--- a/test/stdin.js
+++ b/test/stdin.js
@@ -1,6 +1,6 @@
 const t = require('../')
 const Stdin = require('../lib/stdin.js')
-const MP = require('minipass')
+const MP = require('stream').PassThrough
 
 process.env.TAP_BAIL = ''
 process.env.TAP_BUFFER = ''
diff --git a/test/test.js b/test/test.js
index 391175c..697e5dc 100644
--- a/test/test.js
+++ b/test/test.js
@@ -6,7 +6,7 @@ const Test = t.Test
 const util = require('util')
 const assert = require('assert')
 const EE = require('events').EventEmitter
-const MiniPass = require('minipass')
+const MiniPass = require('stream').PassThrough
 
 // set this forcibly so it doesn't interfere with other tests.
 process.env.TAP_DIAG = ''