Socket
Socket
Sign inDemoInstall

minipass

Package Overview
Dependencies
Maintainers
7
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minipass - npm Package Compare versions

Comparing version 3.1.3 to 3.1.4

6

index.js
'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

4

package.json
{
"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)

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc