Comparing version 3.1.3 to 3.1.4
'use strict' | ||
const proc = typeof process === 'object' && process ? process : { | ||
stdout: null, | ||
stderr: null, | ||
} | ||
const EE = require('events') | ||
@@ -313,3 +317,3 @@ const Stream = require('stream') | ||
opts = opts || {} | ||
if (dest === process.stdout || dest === process.stderr) | ||
if (dest === proc.stdout || dest === proc.stderr) | ||
opts.end = false | ||
@@ -316,0 +320,0 @@ else |
{ | ||
"name": "minipass", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "minimal implementation of a PassThrough stream", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"end-of-stream": "^1.4.0", | ||
"tap": "^14.6.5", | ||
"tap": "^15.0.9", | ||
"through2": "^2.0.3" | ||
@@ -14,0 +14,0 @@ }, |
@@ -10,3 +10,3 @@ # minipass | ||
Supports pipe()ing (including multi-pipe() and backpressure transmission), | ||
Supports `pipe()`ing (including multi-`pipe()` and backpressure transmission), | ||
buffering data until either a `data` event handler or `pipe()` is added (so | ||
@@ -48,4 +48,4 @@ you don't lose the first chunk), and most other cases where PassThrough is | ||
- [tap](http://npm.im/tap) | ||
- [tap-parser](http://npm.im/tap) | ||
- [treport](http://npm.im/tap) | ||
- [tap-parser](http://npm.im/tap-parser) | ||
- [treport](http://npm.im/treport) | ||
- [minipass-fetch](http://npm.im/minipass-fetch) | ||
@@ -65,3 +65,3 @@ - [pacote](http://npm.im/pacote) | ||
Please read these caveats if you are familiar with noode-core streams and | ||
Please read these caveats if you are familiar with node-core streams and | ||
intend to use Minipass streams in your programs. | ||
@@ -478,3 +478,3 @@ | ||
const inter = setInterval(() => { | ||
if (i --> 0) | ||
if (i-- > 0) | ||
mp.write(Buffer.from('foo\n', 'utf8')) | ||
@@ -605,5 +605,5 @@ else { | ||
for (let i = 0; i < jsonData.length; i++) { | ||
let parsed | ||
try { | ||
super.write(parsed) | ||
// JSON.parse can throw, emit an error on that | ||
super.write(JSON.parse(jsonData[i])) | ||
} catch (er) { | ||
@@ -610,0 +610,0 @@ this.emit('error', er) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37368
471