Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

minipass

Package Overview
Dependencies
Maintainers
6
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 4.2.0 to 4.2.1

11

index.js

@@ -395,6 +395,4 @@ 'use strict'

[BUFFERSHIFT]() {
if (this[BUFFER].length) {
if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1
else this[BUFFERLENGTH] -= this[BUFFER][0].length
}
if (this[OBJECTMODE]) this[BUFFERLENGTH] -= 1
else this[BUFFERLENGTH] -= this[BUFFER][0].length
return this[BUFFER].shift()

@@ -404,3 +402,3 @@ }

[FLUSH](noDrain) {
do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()))
do {} while (this[FLUSHCHUNK](this[BUFFERSHIFT]()) && this[BUFFER].length)

@@ -411,3 +409,4 @@ if (!noDrain && !this[BUFFER].length && !this[EOF]) this.emit('drain')

[FLUSHCHUNK](chunk) {
return chunk ? (this.emit('data', chunk), this.flowing) : false
this.emit('data', chunk)
return this.flowing
}

@@ -414,0 +413,0 @@

{
"name": "minipass",
"version": "4.2.0",
"version": "4.2.1",
"description": "minimal implementation of a PassThrough stream",

@@ -35,3 +35,3 @@ "main": "./index.js",

"presnap": "npm run prepare",
"prepare": "node ./scripts/transpile-to-esm.mjs",
"prepare": "node ./scripts/transpile-to-esm.js",
"snap": "tap",

@@ -38,0 +38,0 @@ "test": "tap",

Sorry, the diff of this file is not supported yet

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