Updated the project.
This commit is contained in:
parent
5dfe9f128d
commit
7919556077
1550 changed files with 17063 additions and 40183 deletions
8
my-app/node_modules/minipass/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
8
my-app/node_modules/minipass/dist/commonjs/index.d.ts
generated
vendored
Executable file → Normal file
|
@ -2,8 +2,8 @@
|
|||
/// <reference types="node" />
|
||||
/// <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';
|
||||
/**
|
||||
* Same as StringDecoder, but exposing the `lastNeed` flag on the type
|
||||
*/
|
||||
|
@ -214,7 +214,7 @@ export declare namespace Minipass {
|
|||
/**
|
||||
* Utility type to determine allowed options based on read type
|
||||
*/
|
||||
export type Options<T> = T extends string ? EncodingOptions | ObjectModeOptions : T extends Buffer ? BufferOptions | ObjectModeOptions : SharedOptions;
|
||||
export type Options<T> = ObjectModeOptions | (T extends string ? EncodingOptions : T extends Buffer ? BufferOptions : SharedOptions);
|
||||
export {};
|
||||
}
|
||||
/**
|
||||
|
@ -262,7 +262,7 @@ export declare class Minipass<RType extends unknown = Buffer, WType extends unkn
|
|||
* {@link Minipass.SharedOptions.objectMode} or
|
||||
* {@link Minipass.SharedOptions.encoding}, as appropriate.
|
||||
*/
|
||||
constructor(...args: RType extends Buffer ? [] | [Minipass.Options<RType>] : [Minipass.Options<RType>]);
|
||||
constructor(...args: [Minipass.ObjectModeOptions] | (RType extends Buffer ? [] | [Minipass.Options<RType>] : [Minipass.Options<RType>]));
|
||||
/**
|
||||
* The amount of data stored in the buffer waiting to be read.
|
||||
*
|
||||
|
|
2
my-app/node_modules/minipass/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/minipass/dist/commonjs/index.d.ts.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
18
my-app/node_modules/minipass/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
18
my-app/node_modules/minipass/dist/commonjs/index.js
generated
vendored
Executable file → Normal file
|
@ -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) {
|
||||
|
|
2
my-app/node_modules/minipass/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
2
my-app/node_modules/minipass/dist/commonjs/index.js.map
generated
vendored
Executable file → Normal file
File diff suppressed because one or more lines are too long
4
my-app/node_modules/minipass/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
4
my-app/node_modules/minipass/dist/commonjs/package.json
generated
vendored
Executable file → Normal file
|
@ -1 +1,3 @@
|
|||
{"type":"commonjs"}
|
||||
{
|
||||
"type": "commonjs"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue