Skip to content

Commit

Permalink
deps: minipass@7.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys authored and wraithgar committed May 10, 2024
1 parent 9064ffc commit c2b28f9
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 21 deletions.
18 changes: 9 additions & 9 deletions node_modules/minipass/dist/commonjs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ 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.
*/
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;
Expand All @@ -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;
Expand Down Expand Up @@ -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] = [];
Expand Down Expand Up @@ -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) {
Expand Down
6 changes: 3 additions & 3 deletions node_modules/minipass/dist/esm/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion node_modules/minipass/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
11 changes: 5 additions & 6 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion workspaces/libnpmorg/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit c2b28f9

Please sign in to comment.