From c2b28f9d6cba12e88f849e5b4a82607e2c218a16 Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Thu, 9 May 2024 15:31:36 -0700 Subject: [PATCH] deps: minipass@7.1.1 --- node_modules/minipass/dist/commonjs/index.js | 18 +++++++++--------- node_modules/minipass/dist/esm/index.js | 6 +++--- node_modules/minipass/package.json | 2 +- package-lock.json | 11 +++++------ package.json | 2 +- workspaces/libnpmorg/package.json | 2 +- 6 files changed, 20 insertions(+), 21 deletions(-) diff --git a/node_modules/minipass/dist/commonjs/index.js b/node_modules/minipass/dist/commonjs/index.js index b6cdae8eb514b..068c095b69793 100644 --- a/node_modules/minipass/dist/commonjs/index.js +++ b/node_modules/minipass/dist/commonjs/index.js @@ -10,9 +10,9 @@ const proc = typeof process === 'object' && process stdout: null, stderr: null, }; -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"); /** * Return true if the argument is a Minipass stream, Node stream, or something * else that Minipass can interact with. @@ -20,7 +20,7 @@ const string_decoder_1 = require("string_decoder"); const isStream = (s) => !!s && typeof s === 'object' && (s instanceof Minipass || - s instanceof stream_1.default || + s instanceof node_stream_1.default || (0, exports.isReadable)(s) || (0, exports.isWritable)(s)); exports.isStream = isStream; @@ -29,17 +29,17 @@ exports.isStream = isStream; */ const isReadable = (s) => !!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; /** * Return true if the argument is a valid {@link Minipass.Writable} */ const isWritable = (s) => !!s && typeof s === 'object' && - s instanceof events_1.EventEmitter && + s instanceof node_events_1.EventEmitter && typeof s.write === 'function' && typeof s.end === 'function'; exports.isWritable = isWritable; @@ -146,7 +146,7 @@ const isEncodingOptions = (o) => !o.objectMode && !!o.encoding && o.encoding !== * `Events` is the set of event handler signatures that this object * will emit, see {@link Minipass.Events} */ -class Minipass extends events_1.EventEmitter { +class Minipass extends node_events_1.EventEmitter { [FLOWING] = false; [PAUSED] = false; [PIPES] = []; @@ -201,7 +201,7 @@ class Minipass extends events_1.EventEmitter { } this[ASYNC] = !!options.async; this[DECODER] = this[ENCODING] - ? new string_decoder_1.StringDecoder(this[ENCODING]) + ? new node_string_decoder_1.StringDecoder(this[ENCODING]) : null; //@ts-ignore - private option for debugging and testing if (options && options.debugExposeBuffer === true) { diff --git a/node_modules/minipass/dist/esm/index.js b/node_modules/minipass/dist/esm/index.js index b65fafbae43a4..b5fa4513c9083 100644 --- a/node_modules/minipass/dist/esm/index.js +++ b/node_modules/minipass/dist/esm/index.js @@ -4,9 +4,9 @@ const proc = typeof process === 'object' && process stdout: null, stderr: null, }; -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'; /** * Return true if the argument is a Minipass stream, Node stream, or something * else that Minipass can interact with. diff --git a/node_modules/minipass/package.json b/node_modules/minipass/package.json index 76038f55de57b..f8b39b5259490 100644 --- a/node_modules/minipass/package.json +++ b/node_modules/minipass/package.json @@ -1,6 +1,6 @@ { "name": "minipass", - "version": "7.1.0", + "version": "7.1.1", "description": "minimal implementation of a PassThrough stream", "main": "./dist/commonjs/index.js", "types": "./dist/commonjs/index.d.ts", diff --git a/package-lock.json b/package-lock.json index 72ee066fe864d..c91ff5d22ce3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -124,7 +124,7 @@ "libnpmversion": "^6.0.0", "make-fetch-happen": "^13.0.1", "minimatch": "^9.0.4", - "minipass": "^7.1.0", + "minipass": "^7.1.1", "minipass-pipeline": "^1.2.4", "ms": "^2.1.2", "node-gyp": "^10.1.0", @@ -8391,11 +8391,10 @@ } }, "node_modules/minipass": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.0.tgz", - "integrity": "sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.1.tgz", + "integrity": "sha512-UZ7eQ+h8ywIRAW1hIEl2AqdwzJucU/Kp59+8kkZeSvafXhZjul247BvIJjEVFVeON6d7lM46XX1HXCduKAS8VA==", "inBundle": true, - "license": "ISC", "engines": { "node": ">=16 || 14 >=14.17" } @@ -14969,7 +14968,7 @@ "devDependencies": { "@npmcli/eslint-config": "^4.0.0", "@npmcli/template-oss": "4.22.0", - "minipass": "^7.1.0", + "minipass": "^7.1.1", "nock": "^13.3.3", "tap": "^16.3.8" }, diff --git a/package.json b/package.json index 2bc3a146a7989..5a07275e8488c 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,7 @@ "libnpmversion": "^6.0.0", "make-fetch-happen": "^13.0.1", "minimatch": "^9.0.4", - "minipass": "^7.1.0", + "minipass": "^7.1.1", "minipass-pipeline": "^1.2.4", "ms": "^2.1.2", "node-gyp": "^10.1.0", diff --git a/workspaces/libnpmorg/package.json b/workspaces/libnpmorg/package.json index ed3e3410443d8..f5d9562b5ff09 100644 --- a/workspaces/libnpmorg/package.json +++ b/workspaces/libnpmorg/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@npmcli/eslint-config": "^4.0.0", "@npmcli/template-oss": "4.22.0", - "minipass": "^7.1.0", + "minipass": "^7.1.1", "nock": "^13.3.3", "tap": "^16.3.8" },