avancement planning

This commit is contained in:
2026-05-26 11:58:39 +02:00
parent 619a2b240a
commit 150b97cd2e
4892 changed files with 99214 additions and 429382 deletions
+12 -16
View File
@@ -1,7 +1,3 @@
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
/// <reference types="node" />
import { EventEmitter } from 'node:events';
import { StringDecoder } from 'node:string_decoder';
/**
@@ -15,17 +11,17 @@ export type { SD, Pipe, PipeProxyErrors };
* Return true if the argument is a Minipass stream, Node stream, or something
* else that Minipass can interact with.
*/
export declare const isStream: (s: any) => s is NodeJS.WriteStream | NodeJS.ReadStream | Minipass<any, any, any> | (NodeJS.ReadStream & {
fd: number;
}) | (EventEmitter & {
export declare const isStream: (s: any) => s is Minipass<any, any, any> | NodeJS.ReadStream | NodeJS.WriteStream | (EventEmitter<any> & {
end(): any;
write(chunk: any, ...args: any[]): any;
}) | (EventEmitter<any> & {
pause(): any;
resume(): any;
pipe(...destArgs: any[]): any;
}) | (NodeJS.ReadStream & {
fd: number;
}) | (NodeJS.WriteStream & {
fd: number;
}) | (EventEmitter & {
end(): any;
write(chunk: any, ...args: any[]): any;
});
/**
* Return true if the argument is a valid {@link Minipass.Readable}
@@ -533,17 +529,17 @@ export declare class Minipass<RType extends unknown = Buffer, WType extends unkn
*
* @deprecated
*/
static get isStream(): (s: any) => s is NodeJS.WriteStream | NodeJS.ReadStream | Minipass<any, any, any> | (NodeJS.ReadStream & {
fd: number;
}) | (EventEmitter & {
static get isStream(): (s: any) => s is Minipass<any, any, any> | NodeJS.ReadStream | NodeJS.WriteStream | (EventEmitter<any> & {
end(): any;
write(chunk: any, ...args: any[]): any;
}) | (EventEmitter<any> & {
pause(): any;
resume(): any;
pipe(...destArgs: any[]): any;
}) | (NodeJS.ReadStream & {
fd: number;
}) | (NodeJS.WriteStream & {
fd: number;
}) | (EventEmitter & {
end(): any;
write(chunk: any, ...args: any[]): any;
});
}
//# sourceMappingURL=index.d.ts.map
File diff suppressed because one or more lines are too long
+13 -3
View File
@@ -22,7 +22,11 @@ const isStream = (s) => !!s &&
(s instanceof Minipass ||
s instanceof node_stream_1.default ||
(0, exports.isReadable)(s) ||
(0, exports.isWritable)(s));
(0, exports.isWritable)(s))
/**
* Return true if the argument is a valid {@link Minipass.Readable}
*/
;
exports.isStream = isStream;
/**
* Return true if the argument is a valid {@link Minipass.Readable}
@@ -32,7 +36,11 @@ const isReadable = (s) => !!s &&
s instanceof node_events_1.EventEmitter &&
typeof s.pipe === 'function' &&
// node core Writable streams have a pipe() method, but it throws
s.pipe !== node_stream_1.default.Writable.prototype.pipe;
s.pipe !== node_stream_1.default.Writable.prototype.pipe
/**
* Return true if the argument is a valid {@link Minipass.Writable}
*/
;
exports.isReadable = isReadable;
/**
* Return true if the argument is a valid {@link Minipass.Writable}
@@ -129,7 +137,7 @@ class PipeProxyErrors extends Pipe {
}
constructor(src, dest, opts) {
super(src, dest, opts);
this.proxyErrors = er => dest.emit('error', er);
this.proxyErrors = (er) => this.dest.emit('error', er);
src.on('error', this.proxyErrors);
}
}
@@ -939,6 +947,7 @@ class Minipass extends node_events_1.EventEmitter {
[Symbol.asyncIterator]() {
return this;
},
[Symbol.asyncDispose]: async () => { },
};
}
/**
@@ -976,6 +985,7 @@ class Minipass extends node_events_1.EventEmitter {
[Symbol.iterator]() {
return this;
},
[Symbol.dispose]: () => { },
};
}
/**
+1 -1
View File
File diff suppressed because one or more lines are too long