Socket
Socket
Sign inDemoInstall

minipass

Package Overview
Dependencies
0
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.1.0 to 7.1.1

4

dist/commonjs/index.d.ts

@@ -5,4 +5,4 @@ /// <reference types="node" />

/// <reference types="node" />
import { EventEmitter } from 'events';
import { StringDecoder } from 'string_decoder';
import { EventEmitter } from 'node:events';
import { StringDecoder } from 'node:string_decoder';
/**

@@ -9,0 +9,0 @@ * Same as StringDecoder, but exposing the `lastNeed` flag on the type

@@ -13,5 +13,5 @@ "use strict";

};
const events_1 = require("events");
const stream_1 = __importDefault(require("stream"));
const string_decoder_1 = require("string_decoder");
const node_events_1 = require("node:events");
const node_stream_1 = __importDefault(require("node:stream"));
const node_string_decoder_1 = require("node:string_decoder");
/**

@@ -24,3 +24,3 @@ * Return true if the argument is a Minipass stream, Node stream, or something

(s instanceof Minipass ||
s instanceof stream_1.default ||
s instanceof node_stream_1.default ||
(0, exports.isReadable)(s) ||

@@ -34,6 +34,6 @@ (0, exports.isWritable)(s));

typeof s === 'object' &&
s instanceof events_1.EventEmitter &&
s instanceof node_events_1.EventEmitter &&
typeof s.pipe === 'function' &&
// node core Writable streams have a pipe() method, but it throws
s.pipe !== stream_1.default.Writable.prototype.pipe;
s.pipe !== node_stream_1.default.Writable.prototype.pipe;
exports.isReadable = isReadable;

@@ -45,3 +45,3 @@ /**

typeof s === 'object' &&
s instanceof events_1.EventEmitter &&
s instanceof node_events_1.EventEmitter &&
typeof s.write === 'function' &&

@@ -153,3 +153,3 @@ typeof s.end === 'function';

*/
class Minipass extends events_1.EventEmitter {
class Minipass extends node_events_1.EventEmitter {
[FLOWING] = false;

@@ -209,3 +209,3 @@ [PAUSED] = false;

this[DECODER] = this[ENCODING]
? new string_decoder_1.StringDecoder(this[ENCODING])
? new node_string_decoder_1.StringDecoder(this[ENCODING])
: null;

@@ -212,0 +212,0 @@ //@ts-ignore - private option for debugging and testing

@@ -5,4 +5,4 @@ /// <reference types="node" resolution-mode="require"/>

/// <reference types="node" resolution-mode="require"/>
import { EventEmitter } from 'events';
import { StringDecoder } from 'string_decoder';
import { EventEmitter } from 'node:events';
import { StringDecoder } from 'node:string_decoder';
/**

@@ -9,0 +9,0 @@ * Same as StringDecoder, but exposing the `lastNeed` flag on the type

@@ -7,5 +7,5 @@ const proc = typeof process === 'object' && process

};
import { EventEmitter } from 'events';
import Stream from 'stream';
import { StringDecoder } from 'string_decoder';
import { EventEmitter } from 'node:events';
import Stream from 'node:stream';
import { StringDecoder } from 'node:string_decoder';
/**

@@ -12,0 +12,0 @@ * Return true if the argument is a Minipass stream, Node stream, or something

{
"name": "minipass",
"version": "7.1.0",
"version": "7.1.1",
"description": "minimal implementation of a PassThrough stream",

@@ -5,0 +5,0 @@ "main": "./dist/commonjs/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc