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
-15
View File
@@ -1,15 +0,0 @@
The ISC License
Copyright (c) 2017-2023 npm, Inc., Isaac Z. Schlueter, and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+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
+12 -16
View File
@@ -1,7 +1,3 @@
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
/// <reference types="node" resolution-mode="require"/>
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
+1 -1
View File
File diff suppressed because one or more lines are too long
+3 -1
View File
@@ -120,7 +120,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);
}
}
@@ -930,6 +930,7 @@ export class Minipass extends EventEmitter {
[Symbol.asyncIterator]() {
return this;
},
[Symbol.asyncDispose]: async () => { },
};
}
/**
@@ -967,6 +968,7 @@ export class Minipass extends EventEmitter {
[Symbol.iterator]() {
return this;
},
[Symbol.dispose]: () => { },
};
}
/**
+1 -1
View File
File diff suppressed because one or more lines are too long
+9 -14
View File
@@ -1,13 +1,14 @@
{
"name": "minipass",
"version": "7.1.2",
"version": "7.1.3",
"description": "minimal implementation of a PassThrough stream",
"main": "./dist/commonjs/index.js",
"types": "./dist/commonjs/index.d.ts",
"module": "./dist/esm/index.js",
"type": "module",
"tshy": {
"selfLink": false,
"main": true,
"compiler": "tsgo",
"exports": {
"./package.json": "./package.json",
".": "./src/index.ts"
@@ -54,14 +55,14 @@
},
"devDependencies": {
"@types/end-of-stream": "^1.4.2",
"@types/node": "^20.1.2",
"@types/node": "^25.2.3",
"end-of-stream": "^1.4.0",
"node-abort-controller": "^3.1.1",
"prettier": "^2.6.2",
"tap": "^19.0.0",
"prettier": "^3.8.1",
"tap": "^21.6.1",
"through2": "^2.0.3",
"tshy": "^1.14.0",
"typedoc": "^0.25.1"
"tshy": "^3.3.2",
"typedoc": "^0.28.17"
},
"repository": "https://github.com/isaacs/minipass",
"keywords": [
@@ -69,14 +70,8 @@
"stream"
],
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"license": "ISC",
"license": "BlueOak-1.0.0",
"engines": {
"node": ">=16 || 14 >=14.17"
},
"tap": {
"typecheck": true,
"include": [
"test/*.ts"
]
}
}