create-leo-app 0.9.13 → 0.9.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/template-build-and-execute-authorization-ts/package.json +1 -1
- package/template-extension/package.json +1 -1
- package/template-nextjs-ts/next-env.d.ts +1 -1
- package/template-nextjs-ts/node_modules/@types/node/README.md +2 -2
- package/template-nextjs-ts/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/template-nextjs-ts/node_modules/@types/node/assert.d.ts +119 -95
- package/template-nextjs-ts/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/template-nextjs-ts/node_modules/@types/node/buffer.d.ts +12 -6
- package/template-nextjs-ts/node_modules/@types/node/child_process.d.ts +89 -162
- package/template-nextjs-ts/node_modules/@types/node/cluster.d.ts +4 -5
- package/template-nextjs-ts/node_modules/@types/node/crypto.d.ts +203 -167
- package/template-nextjs-ts/node_modules/@types/node/dgram.d.ts +9 -8
- package/template-nextjs-ts/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/template-nextjs-ts/node_modules/@types/node/dns.d.ts +24 -20
- package/template-nextjs-ts/node_modules/@types/node/events.d.ts +80 -34
- package/template-nextjs-ts/node_modules/@types/node/fs/promises.d.ts +78 -56
- package/template-nextjs-ts/node_modules/@types/node/fs.d.ts +153 -129
- package/template-nextjs-ts/node_modules/@types/node/globals.d.ts +151 -343
- package/template-nextjs-ts/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/template-nextjs-ts/node_modules/@types/node/http.d.ts +82 -54
- package/template-nextjs-ts/node_modules/@types/node/http2.d.ts +45 -26
- package/template-nextjs-ts/node_modules/@types/node/https.d.ts +96 -62
- package/template-nextjs-ts/node_modules/@types/node/index.d.ts +7 -2
- package/template-nextjs-ts/node_modules/@types/node/inspector.d.ts +187 -3936
- package/template-nextjs-ts/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/template-nextjs-ts/node_modules/@types/node/module.d.ts +24 -0
- package/template-nextjs-ts/node_modules/@types/node/net.d.ts +33 -11
- package/template-nextjs-ts/node_modules/@types/node/os.d.ts +14 -3
- package/template-nextjs-ts/node_modules/@types/node/package.json +3 -83
- package/template-nextjs-ts/node_modules/@types/node/path.d.ts +1 -1
- package/template-nextjs-ts/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/template-nextjs-ts/node_modules/@types/node/process.d.ts +53 -25
- package/template-nextjs-ts/node_modules/@types/node/readline/promises.d.ts +1 -2
- package/template-nextjs-ts/node_modules/@types/node/sqlite.d.ts +48 -7
- package/template-nextjs-ts/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/template-nextjs-ts/node_modules/@types/node/stream/web.d.ts +4 -0
- package/template-nextjs-ts/node_modules/@types/node/stream.d.ts +29 -33
- package/template-nextjs-ts/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/template-nextjs-ts/node_modules/@types/node/test.d.ts +10 -23
- package/template-nextjs-ts/node_modules/@types/node/tls.d.ts +126 -66
- package/template-nextjs-ts/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/template-nextjs-ts/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/template-nextjs-ts/node_modules/@types/node/ts5.6/index.d.ts +7 -2
- package/template-nextjs-ts/node_modules/@types/node/url.d.ts +21 -9
- package/template-nextjs-ts/node_modules/@types/node/util.d.ts +18 -8
- package/template-nextjs-ts/node_modules/@types/node/v8.d.ts +33 -35
- package/template-nextjs-ts/node_modules/@types/node/vm.d.ts +21 -50
- package/template-nextjs-ts/node_modules/@types/node/wasi.d.ts +1 -1
- package/template-nextjs-ts/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/template-nextjs-ts/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/template-nextjs-ts/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
- package/template-nextjs-ts/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/template-nextjs-ts/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/template-nextjs-ts/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/template-nextjs-ts/node_modules/@types/node/worker_threads.d.ts +65 -50
- package/template-nextjs-ts/node_modules/@types/node/zlib.d.ts +39 -26
- package/template-nextjs-ts/package.json +2 -2
- package/template-nextjs-ts/src/app/page.tsx +1 -1
- package/template-node/package.json +2 -2
- package/template-node-ts/package.json +2 -2
- package/template-offline-public-transaction-ts/package.json +1 -1
- package/template-private-transaction-ts/dist/index.js +41 -0
- package/template-private-transaction-ts/dist/index.js.map +1 -0
- package/template-private-transaction-ts/package.json +2 -2
- package/template-private-transaction-ts/src/index.ts +9 -5
- package/template-react-leo/package.json +1 -1
- package/template-react-managed-worker/package.json +1 -1
- package/template-react-ts/node_modules/@types/node/README.md +2 -2
- package/template-react-ts/node_modules/@types/node/assert/strict.d.ts +105 -2
- package/template-react-ts/node_modules/@types/node/assert.d.ts +119 -95
- package/template-react-ts/node_modules/@types/node/buffer.buffer.d.ts +9 -0
- package/template-react-ts/node_modules/@types/node/buffer.d.ts +12 -6
- package/template-react-ts/node_modules/@types/node/child_process.d.ts +89 -162
- package/template-react-ts/node_modules/@types/node/cluster.d.ts +4 -5
- package/template-react-ts/node_modules/@types/node/crypto.d.ts +203 -167
- package/template-react-ts/node_modules/@types/node/dgram.d.ts +9 -8
- package/template-react-ts/node_modules/@types/node/dns/promises.d.ts +11 -10
- package/template-react-ts/node_modules/@types/node/dns.d.ts +24 -20
- package/template-react-ts/node_modules/@types/node/events.d.ts +80 -34
- package/template-react-ts/node_modules/@types/node/fs/promises.d.ts +78 -56
- package/template-react-ts/node_modules/@types/node/fs.d.ts +153 -129
- package/template-react-ts/node_modules/@types/node/globals.d.ts +151 -343
- package/template-react-ts/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/template-react-ts/node_modules/@types/node/http.d.ts +82 -54
- package/template-react-ts/node_modules/@types/node/http2.d.ts +45 -26
- package/template-react-ts/node_modules/@types/node/https.d.ts +96 -62
- package/template-react-ts/node_modules/@types/node/index.d.ts +7 -2
- package/template-react-ts/node_modules/@types/node/inspector.d.ts +187 -3936
- package/template-react-ts/node_modules/@types/node/inspector.generated.d.ts +4052 -0
- package/template-react-ts/node_modules/@types/node/module.d.ts +24 -0
- package/template-react-ts/node_modules/@types/node/net.d.ts +33 -11
- package/template-react-ts/node_modules/@types/node/os.d.ts +14 -3
- package/template-react-ts/node_modules/@types/node/package.json +3 -83
- package/template-react-ts/node_modules/@types/node/path.d.ts +1 -1
- package/template-react-ts/node_modules/@types/node/perf_hooks.d.ts +6 -8
- package/template-react-ts/node_modules/@types/node/process.d.ts +53 -25
- package/template-react-ts/node_modules/@types/node/readline/promises.d.ts +1 -2
- package/template-react-ts/node_modules/@types/node/sqlite.d.ts +48 -7
- package/template-react-ts/node_modules/@types/node/stream/consumers.d.ts +2 -2
- package/template-react-ts/node_modules/@types/node/stream/web.d.ts +4 -0
- package/template-react-ts/node_modules/@types/node/stream.d.ts +29 -33
- package/template-react-ts/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/template-react-ts/node_modules/@types/node/test.d.ts +10 -23
- package/template-react-ts/node_modules/@types/node/tls.d.ts +126 -66
- package/template-react-ts/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +10 -2
- package/template-react-ts/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/template-react-ts/node_modules/@types/node/ts5.6/index.d.ts +7 -2
- package/template-react-ts/node_modules/@types/node/url.d.ts +21 -9
- package/template-react-ts/node_modules/@types/node/util.d.ts +18 -8
- package/template-react-ts/node_modules/@types/node/v8.d.ts +33 -35
- package/template-react-ts/node_modules/@types/node/vm.d.ts +21 -50
- package/template-react-ts/node_modules/@types/node/wasi.d.ts +1 -1
- package/template-react-ts/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/template-react-ts/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/template-react-ts/node_modules/@types/node/{dom-events.d.ts → web-globals/events.d.ts} +49 -51
- package/template-react-ts/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/template-react-ts/node_modules/@types/node/web-globals/navigator.d.ts +22 -0
- package/template-react-ts/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/template-react-ts/node_modules/@types/node/worker_threads.d.ts +65 -50
- package/template-react-ts/node_modules/@types/node/zlib.d.ts +39 -26
- package/template-react-ts/package.json +1 -1
- package/template-vanilla/package.json +1 -1
|
@@ -684,6 +684,30 @@ declare module "module" {
|
|
|
684
684
|
* @returns The absolute URL string that the specifier would resolve to.
|
|
685
685
|
*/
|
|
686
686
|
resolve(specifier: string, parent?: string | URL): string;
|
|
687
|
+
/**
|
|
688
|
+
* `true` when the current module is the entry point of the current process; `false` otherwise.
|
|
689
|
+
*
|
|
690
|
+
* Equivalent to `require.main === module` in CommonJS.
|
|
691
|
+
*
|
|
692
|
+
* Analogous to Python's `__name__ == "__main__"`.
|
|
693
|
+
*
|
|
694
|
+
* ```js
|
|
695
|
+
* export function foo() {
|
|
696
|
+
* return 'Hello, world';
|
|
697
|
+
* }
|
|
698
|
+
*
|
|
699
|
+
* function main() {
|
|
700
|
+
* const message = foo();
|
|
701
|
+
* console.log(message);
|
|
702
|
+
* }
|
|
703
|
+
*
|
|
704
|
+
* if (import.meta.main) main();
|
|
705
|
+
* // `foo` can be imported from another module without possible side-effects from `main`
|
|
706
|
+
* ```
|
|
707
|
+
* @since v22.18.0
|
|
708
|
+
* @experimental
|
|
709
|
+
*/
|
|
710
|
+
main: boolean;
|
|
687
711
|
}
|
|
688
712
|
namespace NodeJS {
|
|
689
713
|
interface Module {
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/net.js)
|
|
14
14
|
*/
|
|
15
15
|
declare module "net" {
|
|
16
|
+
import { NonSharedBuffer } from "node:buffer";
|
|
16
17
|
import * as stream from "node:stream";
|
|
17
18
|
import { Abortable, EventEmitter } from "node:events";
|
|
18
19
|
import * as dns from "node:dns";
|
|
@@ -32,7 +33,7 @@ declare module "net" {
|
|
|
32
33
|
onread?: OnReadOpts | undefined;
|
|
33
34
|
readable?: boolean | undefined;
|
|
34
35
|
writable?: boolean | undefined;
|
|
35
|
-
signal?: AbortSignal;
|
|
36
|
+
signal?: AbortSignal | undefined;
|
|
36
37
|
}
|
|
37
38
|
interface OnReadOpts {
|
|
38
39
|
buffer: Uint8Array | (() => Uint8Array);
|
|
@@ -324,25 +325,25 @@ declare module "net" {
|
|
|
324
325
|
* the socket is destroyed (for example, if the client disconnected).
|
|
325
326
|
* @since v0.5.10
|
|
326
327
|
*/
|
|
327
|
-
readonly remoteAddress
|
|
328
|
+
readonly remoteAddress: string | undefined;
|
|
328
329
|
/**
|
|
329
330
|
* The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
|
|
330
331
|
* the socket is destroyed (for example, if the client disconnected).
|
|
331
332
|
* @since v0.11.14
|
|
332
333
|
*/
|
|
333
|
-
readonly remoteFamily
|
|
334
|
+
readonly remoteFamily: string | undefined;
|
|
334
335
|
/**
|
|
335
336
|
* The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
|
|
336
337
|
* the socket is destroyed (for example, if the client disconnected).
|
|
337
338
|
* @since v0.5.10
|
|
338
339
|
*/
|
|
339
|
-
readonly remotePort
|
|
340
|
+
readonly remotePort: number | undefined;
|
|
340
341
|
/**
|
|
341
342
|
* The socket timeout in milliseconds as set by `socket.setTimeout()`.
|
|
342
343
|
* It is `undefined` if a timeout has not been set.
|
|
343
344
|
* @since v10.7.0
|
|
344
345
|
*/
|
|
345
|
-
readonly timeout?: number
|
|
346
|
+
readonly timeout?: number;
|
|
346
347
|
/**
|
|
347
348
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
348
349
|
* server will still send some data.
|
|
@@ -383,7 +384,7 @@ declare module "net" {
|
|
|
383
384
|
event: "connectionAttemptTimeout",
|
|
384
385
|
listener: (ip: string, port: number, family: number) => void,
|
|
385
386
|
): this;
|
|
386
|
-
addListener(event: "data", listener: (data:
|
|
387
|
+
addListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
387
388
|
addListener(event: "drain", listener: () => void): this;
|
|
388
389
|
addListener(event: "end", listener: () => void): this;
|
|
389
390
|
addListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -399,7 +400,7 @@ declare module "net" {
|
|
|
399
400
|
emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
|
|
400
401
|
emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean;
|
|
401
402
|
emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
|
|
402
|
-
emit(event: "data", data:
|
|
403
|
+
emit(event: "data", data: NonSharedBuffer): boolean;
|
|
403
404
|
emit(event: "drain"): boolean;
|
|
404
405
|
emit(event: "end"): boolean;
|
|
405
406
|
emit(event: "error", err: Error): boolean;
|
|
@@ -415,7 +416,7 @@ declare module "net" {
|
|
|
415
416
|
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
416
417
|
): this;
|
|
417
418
|
on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
|
418
|
-
on(event: "data", listener: (data:
|
|
419
|
+
on(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
419
420
|
on(event: "drain", listener: () => void): this;
|
|
420
421
|
on(event: "end", listener: () => void): this;
|
|
421
422
|
on(event: "error", listener: (err: Error) => void): this;
|
|
@@ -434,7 +435,7 @@ declare module "net" {
|
|
|
434
435
|
): this;
|
|
435
436
|
once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
|
436
437
|
once(event: "connect", listener: () => void): this;
|
|
437
|
-
once(event: "data", listener: (data:
|
|
438
|
+
once(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
438
439
|
once(event: "drain", listener: () => void): this;
|
|
439
440
|
once(event: "end", listener: () => void): this;
|
|
440
441
|
once(event: "error", listener: (err: Error) => void): this;
|
|
@@ -456,7 +457,7 @@ declare module "net" {
|
|
|
456
457
|
event: "connectionAttemptTimeout",
|
|
457
458
|
listener: (ip: string, port: number, family: number) => void,
|
|
458
459
|
): this;
|
|
459
|
-
prependListener(event: "data", listener: (data:
|
|
460
|
+
prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
460
461
|
prependListener(event: "drain", listener: () => void): this;
|
|
461
462
|
prependListener(event: "end", listener: () => void): this;
|
|
462
463
|
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -481,7 +482,7 @@ declare module "net" {
|
|
|
481
482
|
event: "connectionAttemptTimeout",
|
|
482
483
|
listener: (ip: string, port: number, family: number) => void,
|
|
483
484
|
): this;
|
|
484
|
-
prependOnceListener(event: "data", listener: (data:
|
|
485
|
+
prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
485
486
|
prependOnceListener(event: "drain", listener: () => void): this;
|
|
486
487
|
prependOnceListener(event: "end", listener: () => void): this;
|
|
487
488
|
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -808,6 +809,27 @@ declare module "net" {
|
|
|
808
809
|
* @param value Any JS value
|
|
809
810
|
*/
|
|
810
811
|
static isBlockList(value: unknown): value is BlockList;
|
|
812
|
+
/**
|
|
813
|
+
* ```js
|
|
814
|
+
* const blockList = new net.BlockList();
|
|
815
|
+
* const data = [
|
|
816
|
+
* 'Subnet: IPv4 192.168.1.0/24',
|
|
817
|
+
* 'Address: IPv4 10.0.0.5',
|
|
818
|
+
* 'Range: IPv4 192.168.2.1-192.168.2.10',
|
|
819
|
+
* 'Range: IPv4 10.0.0.1-10.0.0.10',
|
|
820
|
+
* ];
|
|
821
|
+
* blockList.fromJSON(data);
|
|
822
|
+
* blockList.fromJSON(JSON.stringify(data));
|
|
823
|
+
* ```
|
|
824
|
+
* @since v22.19.0
|
|
825
|
+
* @experimental
|
|
826
|
+
*/
|
|
827
|
+
fromJSON(data: string | readonly string[]): void;
|
|
828
|
+
/**
|
|
829
|
+
* @since v22.19.0
|
|
830
|
+
* @experimental
|
|
831
|
+
*/
|
|
832
|
+
toJSON(): readonly string[];
|
|
811
833
|
}
|
|
812
834
|
interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts {
|
|
813
835
|
timeout?: number | undefined;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/os.js)
|
|
9
9
|
*/
|
|
10
10
|
declare module "os" {
|
|
11
|
+
import { NonSharedBuffer } from "buffer";
|
|
11
12
|
interface CpuInfo {
|
|
12
13
|
model: string;
|
|
13
14
|
speed: number;
|
|
@@ -30,10 +31,10 @@ declare module "os" {
|
|
|
30
31
|
mac: string;
|
|
31
32
|
internal: boolean;
|
|
32
33
|
cidr: string | null;
|
|
34
|
+
scopeid?: number;
|
|
33
35
|
}
|
|
34
36
|
interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase {
|
|
35
37
|
family: "IPv4";
|
|
36
|
-
scopeid?: undefined;
|
|
37
38
|
}
|
|
38
39
|
interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase {
|
|
39
40
|
family: "IPv6";
|
|
@@ -231,6 +232,15 @@ declare module "os" {
|
|
|
231
232
|
* @since v2.3.0
|
|
232
233
|
*/
|
|
233
234
|
function homedir(): string;
|
|
235
|
+
interface UserInfoOptions {
|
|
236
|
+
encoding?: BufferEncoding | "buffer" | undefined;
|
|
237
|
+
}
|
|
238
|
+
interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions {
|
|
239
|
+
encoding: "buffer";
|
|
240
|
+
}
|
|
241
|
+
interface UserInfoOptionsWithStringEncoding extends UserInfoOptions {
|
|
242
|
+
encoding?: BufferEncoding | undefined;
|
|
243
|
+
}
|
|
234
244
|
/**
|
|
235
245
|
* Returns information about the currently effective user. On POSIX platforms,
|
|
236
246
|
* this is typically a subset of the password file. The returned object includes
|
|
@@ -244,8 +254,9 @@ declare module "os" {
|
|
|
244
254
|
* Throws a [`SystemError`](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-systemerror) if a user has no `username` or `homedir`.
|
|
245
255
|
* @since v6.0.0
|
|
246
256
|
*/
|
|
247
|
-
function userInfo(options
|
|
248
|
-
function userInfo(options
|
|
257
|
+
function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>;
|
|
258
|
+
function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<NonSharedBuffer>;
|
|
259
|
+
function userInfo(options: UserInfoOptions): UserInfo<string | Buffer>;
|
|
249
260
|
type SignalConstants = {
|
|
250
261
|
[key in NodeJS.Signals]: number;
|
|
251
262
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "22.
|
|
3
|
+
"version": "22.19.7",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,11 +15,6 @@
|
|
|
15
15
|
"githubUsername": "jkomyno",
|
|
16
16
|
"url": "https://github.com/jkomyno"
|
|
17
17
|
},
|
|
18
|
-
{
|
|
19
|
-
"name": "Alvis HT Tang",
|
|
20
|
-
"githubUsername": "alvis",
|
|
21
|
-
"url": "https://github.com/alvis"
|
|
22
|
-
},
|
|
23
18
|
{
|
|
24
19
|
"name": "Andrew Makarov",
|
|
25
20
|
"githubUsername": "r3nya",
|
|
@@ -30,56 +25,11 @@
|
|
|
30
25
|
"githubUsername": "btoueg",
|
|
31
26
|
"url": "https://github.com/btoueg"
|
|
32
27
|
},
|
|
33
|
-
{
|
|
34
|
-
"name": "Chigozirim C.",
|
|
35
|
-
"githubUsername": "smac89",
|
|
36
|
-
"url": "https://github.com/smac89"
|
|
37
|
-
},
|
|
38
28
|
{
|
|
39
29
|
"name": "David Junger",
|
|
40
30
|
"githubUsername": "touffy",
|
|
41
31
|
"url": "https://github.com/touffy"
|
|
42
32
|
},
|
|
43
|
-
{
|
|
44
|
-
"name": "Deividas Bakanas",
|
|
45
|
-
"githubUsername": "DeividasBakanas",
|
|
46
|
-
"url": "https://github.com/DeividasBakanas"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "Eugene Y. Q. Shen",
|
|
50
|
-
"githubUsername": "eyqs",
|
|
51
|
-
"url": "https://github.com/eyqs"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "Hannes Magnusson",
|
|
55
|
-
"githubUsername": "Hannes-Magnusson-CK",
|
|
56
|
-
"url": "https://github.com/Hannes-Magnusson-CK"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
"name": "Huw",
|
|
60
|
-
"githubUsername": "hoo29",
|
|
61
|
-
"url": "https://github.com/hoo29"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
"name": "Kelvin Jin",
|
|
65
|
-
"githubUsername": "kjin",
|
|
66
|
-
"url": "https://github.com/kjin"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "Klaus Meinhardt",
|
|
70
|
-
"githubUsername": "ajafff",
|
|
71
|
-
"url": "https://github.com/ajafff"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"name": "Lishude",
|
|
75
|
-
"githubUsername": "islishude",
|
|
76
|
-
"url": "https://github.com/islishude"
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"name": "Mariusz Wiktorczyk",
|
|
80
|
-
"githubUsername": "mwiktorczyk",
|
|
81
|
-
"url": "https://github.com/mwiktorczyk"
|
|
82
|
-
},
|
|
83
33
|
{
|
|
84
34
|
"name": "Mohsen Azimi",
|
|
85
35
|
"githubUsername": "mohsen1",
|
|
@@ -90,46 +40,16 @@
|
|
|
90
40
|
"githubUsername": "galkin",
|
|
91
41
|
"url": "https://github.com/galkin"
|
|
92
42
|
},
|
|
93
|
-
{
|
|
94
|
-
"name": "Parambir Singh",
|
|
95
|
-
"githubUsername": "parambirs",
|
|
96
|
-
"url": "https://github.com/parambirs"
|
|
97
|
-
},
|
|
98
43
|
{
|
|
99
44
|
"name": "Sebastian Silbermann",
|
|
100
45
|
"githubUsername": "eps1lon",
|
|
101
46
|
"url": "https://github.com/eps1lon"
|
|
102
47
|
},
|
|
103
|
-
{
|
|
104
|
-
"name": "Thomas den Hollander",
|
|
105
|
-
"githubUsername": "ThomasdenH",
|
|
106
|
-
"url": "https://github.com/ThomasdenH"
|
|
107
|
-
},
|
|
108
48
|
{
|
|
109
49
|
"name": "Wilco Bakker",
|
|
110
50
|
"githubUsername": "WilcoBakker",
|
|
111
51
|
"url": "https://github.com/WilcoBakker"
|
|
112
52
|
},
|
|
113
|
-
{
|
|
114
|
-
"name": "wwwy3y3",
|
|
115
|
-
"githubUsername": "wwwy3y3",
|
|
116
|
-
"url": "https://github.com/wwwy3y3"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"name": "Samuel Ainsworth",
|
|
120
|
-
"githubUsername": "samuela",
|
|
121
|
-
"url": "https://github.com/samuela"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"name": "Kyle Uehlein",
|
|
125
|
-
"githubUsername": "kuehlein",
|
|
126
|
-
"url": "https://github.com/kuehlein"
|
|
127
|
-
},
|
|
128
|
-
{
|
|
129
|
-
"name": "Thanik Bhongbhibhat",
|
|
130
|
-
"githubUsername": "bhongy",
|
|
131
|
-
"url": "https://github.com/bhongy"
|
|
132
|
-
},
|
|
133
53
|
{
|
|
134
54
|
"name": "Marcin Kopacz",
|
|
135
55
|
"githubUsername": "chyzwar",
|
|
@@ -220,6 +140,6 @@
|
|
|
220
140
|
"undici-types": "~6.21.0"
|
|
221
141
|
},
|
|
222
142
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
224
|
-
"typeScriptVersion": "5.
|
|
143
|
+
"typesPublisherContentHash": "f1259533877c3d16d2f6d26a40b24b33bdef27833c6208e03356ce70fbf38a8f",
|
|
144
|
+
"typeScriptVersion": "5.2"
|
|
225
145
|
}
|
|
@@ -67,7 +67,7 @@ declare module "path" {
|
|
|
67
67
|
interface PlatformPath {
|
|
68
68
|
/**
|
|
69
69
|
* Normalize a string path, reducing '..' and '.' parts.
|
|
70
|
-
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used.
|
|
70
|
+
* When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. If the path is a zero-length string, '.' is returned, representing the current working directory.
|
|
71
71
|
*
|
|
72
72
|
* @param path string path to normalize.
|
|
73
73
|
* @throws {TypeError} if `path` is not a string.
|
|
@@ -48,13 +48,13 @@ declare module "perf_hooks" {
|
|
|
48
48
|
* the type of garbage collection operation that occurred.
|
|
49
49
|
* See perf_hooks.constants for valid values.
|
|
50
50
|
*/
|
|
51
|
-
readonly kind
|
|
51
|
+
readonly kind: number;
|
|
52
52
|
/**
|
|
53
53
|
* When `performanceEntry.entryType` is equal to 'gc', the `performance.flags`
|
|
54
54
|
* property contains additional information about garbage collection operation.
|
|
55
55
|
* See perf_hooks.constants for valid values.
|
|
56
56
|
*/
|
|
57
|
-
readonly flags
|
|
57
|
+
readonly flags: number;
|
|
58
58
|
}
|
|
59
59
|
/**
|
|
60
60
|
* The constructor of this class is not exposed to users directly.
|
|
@@ -92,11 +92,6 @@ declare module "perf_hooks" {
|
|
|
92
92
|
* @since v8.5.0
|
|
93
93
|
*/
|
|
94
94
|
readonly entryType: EntryType;
|
|
95
|
-
/**
|
|
96
|
-
* Additional detail specific to the `entryType`.
|
|
97
|
-
* @since v16.0.0
|
|
98
|
-
*/
|
|
99
|
-
readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type.
|
|
100
95
|
toJSON(): any;
|
|
101
96
|
}
|
|
102
97
|
/**
|
|
@@ -104,6 +99,7 @@ declare module "perf_hooks" {
|
|
|
104
99
|
* @since v18.2.0, v16.17.0
|
|
105
100
|
*/
|
|
106
101
|
class PerformanceMark extends PerformanceEntry {
|
|
102
|
+
readonly detail: any;
|
|
107
103
|
readonly duration: 0;
|
|
108
104
|
readonly entryType: "mark";
|
|
109
105
|
}
|
|
@@ -114,6 +110,7 @@ declare module "perf_hooks" {
|
|
|
114
110
|
* @since v18.2.0, v16.17.0
|
|
115
111
|
*/
|
|
116
112
|
class PerformanceMeasure extends PerformanceEntry {
|
|
113
|
+
readonly detail: any;
|
|
117
114
|
readonly entryType: "measure";
|
|
118
115
|
}
|
|
119
116
|
interface UVMetrics {
|
|
@@ -130,6 +127,7 @@ declare module "perf_hooks" {
|
|
|
130
127
|
*/
|
|
131
128
|
readonly eventsWaiting: number;
|
|
132
129
|
}
|
|
130
|
+
// TODO: PerformanceNodeEntry is missing
|
|
133
131
|
/**
|
|
134
132
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
135
133
|
*
|
|
@@ -225,7 +223,7 @@ declare module "perf_hooks" {
|
|
|
225
223
|
/**
|
|
226
224
|
* Additional optional detail to include with the mark.
|
|
227
225
|
*/
|
|
228
|
-
detail?: unknown
|
|
226
|
+
detail?: unknown;
|
|
229
227
|
/**
|
|
230
228
|
* Duration between start and end times.
|
|
231
229
|
*/
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
+
import { Control, MessageOptions, SendHandle } from "node:child_process";
|
|
3
|
+
import { PathLike } from "node:fs";
|
|
2
4
|
import * as tty from "node:tty";
|
|
3
5
|
import { Worker } from "node:worker_threads";
|
|
4
6
|
|
|
@@ -231,8 +233,9 @@ declare module "process" {
|
|
|
231
233
|
*/
|
|
232
234
|
readonly tls_sni: boolean;
|
|
233
235
|
/**
|
|
234
|
-
* A value that is `"strip"`
|
|
235
|
-
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false`
|
|
236
|
+
* A value that is `"strip"` by default,
|
|
237
|
+
* `"transform"` if Node.js is run with `--experimental-transform-types`, and `false` if
|
|
238
|
+
* Node.js is run with `--no-experimental-strip-types`.
|
|
236
239
|
* @since v22.10.0
|
|
237
240
|
*/
|
|
238
241
|
readonly typescript: "strip" | "transform" | false;
|
|
@@ -331,7 +334,7 @@ declare module "process" {
|
|
|
331
334
|
*/
|
|
332
335
|
type UnhandledRejectionListener = (reason: unknown, promise: Promise<unknown>) => void;
|
|
333
336
|
type WarningListener = (warning: Error) => void;
|
|
334
|
-
type MessageListener = (message: unknown, sendHandle:
|
|
337
|
+
type MessageListener = (message: unknown, sendHandle: SendHandle) => void;
|
|
335
338
|
type SignalsListener = (signal: Signals) => void;
|
|
336
339
|
type MultipleResolveListener = (
|
|
337
340
|
type: MultipleResolveType,
|
|
@@ -347,7 +350,7 @@ declare module "process" {
|
|
|
347
350
|
/**
|
|
348
351
|
* Can be used to change the default timezone at runtime
|
|
349
352
|
*/
|
|
350
|
-
TZ?: string;
|
|
353
|
+
TZ?: string | undefined;
|
|
351
354
|
}
|
|
352
355
|
interface HRTime {
|
|
353
356
|
/**
|
|
@@ -471,6 +474,11 @@ declare module "process" {
|
|
|
471
474
|
* @default false
|
|
472
475
|
*/
|
|
473
476
|
reportOnUncaughtException: boolean;
|
|
477
|
+
/**
|
|
478
|
+
* If true, a diagnostic report is generated without the environment variables.
|
|
479
|
+
* @default false
|
|
480
|
+
*/
|
|
481
|
+
excludeEnv: boolean;
|
|
474
482
|
/**
|
|
475
483
|
* The signal used to trigger the creation of a diagnostic report.
|
|
476
484
|
* @default 'SIGUSR2'
|
|
@@ -991,7 +999,7 @@ declare module "process" {
|
|
|
991
999
|
* @since v0.1.13
|
|
992
1000
|
* @param [code=0] The exit code. For string type, only integer strings (e.g.,'1') are allowed.
|
|
993
1001
|
*/
|
|
994
|
-
exit(code?: number | string | null
|
|
1002
|
+
exit(code?: number | string | null): never;
|
|
995
1003
|
/**
|
|
996
1004
|
* A number which will be the process exit code, when the process either
|
|
997
1005
|
* exits gracefully, or is exited via {@link exit} without specifying
|
|
@@ -1002,7 +1010,7 @@ declare module "process" {
|
|
|
1002
1010
|
* @default undefined
|
|
1003
1011
|
* @since v0.11.8
|
|
1004
1012
|
*/
|
|
1005
|
-
exitCode
|
|
1013
|
+
exitCode: number | string | null | undefined;
|
|
1006
1014
|
finalization: {
|
|
1007
1015
|
/**
|
|
1008
1016
|
* This function registers a callback to be called when the process emits the `exit` event if the `ref` object was not garbage collected.
|
|
@@ -1466,7 +1474,7 @@ declare module "process" {
|
|
|
1466
1474
|
* @since v20.12.0
|
|
1467
1475
|
* @param path The path to the .env file
|
|
1468
1476
|
*/
|
|
1469
|
-
loadEnvFile(path?:
|
|
1477
|
+
loadEnvFile(path?: PathLike): void;
|
|
1470
1478
|
/**
|
|
1471
1479
|
* The `process.pid` property returns the PID of the process.
|
|
1472
1480
|
*
|
|
@@ -1490,6 +1498,18 @@ declare module "process" {
|
|
|
1490
1498
|
* @since v9.2.0, v8.10.0, v6.13.0
|
|
1491
1499
|
*/
|
|
1492
1500
|
readonly ppid: number;
|
|
1501
|
+
/**
|
|
1502
|
+
* The `process.threadCpuUsage()` method returns the user and system CPU time usage of
|
|
1503
|
+
* the current worker thread, in an object with properties `user` and `system`, whose
|
|
1504
|
+
* values are microsecond values (millionth of a second).
|
|
1505
|
+
*
|
|
1506
|
+
* The result of a previous call to `process.threadCpuUsage()` can be passed as the
|
|
1507
|
+
* argument to the function, to get a diff reading.
|
|
1508
|
+
* @since v22.19.0
|
|
1509
|
+
* @param previousValue A previous return value from calling
|
|
1510
|
+
* `process.threadCpuUsage()`
|
|
1511
|
+
*/
|
|
1512
|
+
threadCpuUsage(previousValue?: CpuUsage): CpuUsage;
|
|
1493
1513
|
/**
|
|
1494
1514
|
* The `process.title` property returns the current process title (i.e. returns
|
|
1495
1515
|
* the current value of `ps`). Assigning a new value to `process.title` modifies
|
|
@@ -1556,7 +1576,7 @@ declare module "process" {
|
|
|
1556
1576
|
* @since v0.1.17
|
|
1557
1577
|
* @deprecated Since v14.0.0 - Use `main` instead.
|
|
1558
1578
|
*/
|
|
1559
|
-
mainModule?: Module
|
|
1579
|
+
mainModule?: Module;
|
|
1560
1580
|
memoryUsage: MemoryUsageFn;
|
|
1561
1581
|
/**
|
|
1562
1582
|
* Gets the amount of memory available to the process (in bytes) based on
|
|
@@ -1690,6 +1710,11 @@ declare module "process" {
|
|
|
1690
1710
|
* @param args Additional arguments to pass when invoking the `callback`
|
|
1691
1711
|
*/
|
|
1692
1712
|
nextTick(callback: Function, ...args: any[]): void;
|
|
1713
|
+
/**
|
|
1714
|
+
* The process.noDeprecation property indicates whether the --no-deprecation flag is set on the current Node.js process.
|
|
1715
|
+
* See the documentation for the ['warning' event](https://nodejs.org/docs/latest/api/process.html#event-warning) and the [emitWarning()](https://nodejs.org/docs/latest/api/process.html#processemitwarningwarning-type-code-ctor) method for more information about this flag's behavior.
|
|
1716
|
+
*/
|
|
1717
|
+
noDeprecation?: boolean;
|
|
1693
1718
|
/**
|
|
1694
1719
|
* This API is available through the [--permission](https://nodejs.org/api/cli.html#--permission) flag.
|
|
1695
1720
|
*
|
|
@@ -1748,18 +1773,7 @@ declare module "process" {
|
|
|
1748
1773
|
* If no IPC channel exists, this property is undefined.
|
|
1749
1774
|
* @since v7.1.0
|
|
1750
1775
|
*/
|
|
1751
|
-
channel?:
|
|
1752
|
-
/**
|
|
1753
|
-
* This method makes the IPC channel keep the event loop of the process running if .unref() has been called before.
|
|
1754
|
-
* @since v7.1.0
|
|
1755
|
-
*/
|
|
1756
|
-
ref(): void;
|
|
1757
|
-
/**
|
|
1758
|
-
* This method makes the IPC channel not keep the event loop of the process running, and lets it finish even while the channel is open.
|
|
1759
|
-
* @since v7.1.0
|
|
1760
|
-
*/
|
|
1761
|
-
unref(): void;
|
|
1762
|
-
};
|
|
1776
|
+
channel?: Control;
|
|
1763
1777
|
/**
|
|
1764
1778
|
* If Node.js is spawned with an IPC channel, the `process.send()` method can be
|
|
1765
1779
|
* used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object.
|
|
@@ -1773,12 +1787,19 @@ declare module "process" {
|
|
|
1773
1787
|
*/
|
|
1774
1788
|
send?(
|
|
1775
1789
|
message: any,
|
|
1776
|
-
sendHandle?:
|
|
1777
|
-
options?:
|
|
1778
|
-
|
|
1779
|
-
|
|
1790
|
+
sendHandle?: SendHandle,
|
|
1791
|
+
options?: MessageOptions,
|
|
1792
|
+
callback?: (error: Error | null) => void,
|
|
1793
|
+
): boolean;
|
|
1794
|
+
send?(
|
|
1795
|
+
message: any,
|
|
1796
|
+
sendHandle: SendHandle,
|
|
1780
1797
|
callback?: (error: Error | null) => void,
|
|
1781
1798
|
): boolean;
|
|
1799
|
+
send?(
|
|
1800
|
+
message: any,
|
|
1801
|
+
callback: (error: Error | null) => void,
|
|
1802
|
+
): boolean;
|
|
1782
1803
|
/**
|
|
1783
1804
|
* If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the
|
|
1784
1805
|
* IPC channel to the parent process, allowing the child process to exit gracefully
|
|
@@ -1968,6 +1989,7 @@ declare module "process" {
|
|
|
1968
1989
|
addListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
1969
1990
|
addListener(event: "warning", listener: WarningListener): this;
|
|
1970
1991
|
addListener(event: "message", listener: MessageListener): this;
|
|
1992
|
+
addListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
1971
1993
|
addListener(event: Signals, listener: SignalsListener): this;
|
|
1972
1994
|
addListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
1973
1995
|
addListener(event: "worker", listener: WorkerListener): this;
|
|
@@ -1979,7 +2001,8 @@ declare module "process" {
|
|
|
1979
2001
|
emit(event: "uncaughtExceptionMonitor", error: Error): boolean;
|
|
1980
2002
|
emit(event: "unhandledRejection", reason: unknown, promise: Promise<unknown>): boolean;
|
|
1981
2003
|
emit(event: "warning", warning: Error): boolean;
|
|
1982
|
-
emit(event: "message", message: unknown, sendHandle:
|
|
2004
|
+
emit(event: "message", message: unknown, sendHandle: SendHandle): this;
|
|
2005
|
+
emit(event: "workerMessage", value: any, source: number): this;
|
|
1983
2006
|
emit(event: Signals, signal?: Signals): boolean;
|
|
1984
2007
|
emit(
|
|
1985
2008
|
event: "multipleResolves",
|
|
@@ -2000,6 +2023,7 @@ declare module "process" {
|
|
|
2000
2023
|
on(event: Signals, listener: SignalsListener): this;
|
|
2001
2024
|
on(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2002
2025
|
on(event: "worker", listener: WorkerListener): this;
|
|
2026
|
+
on(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2003
2027
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2004
2028
|
once(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2005
2029
|
once(event: "disconnect", listener: DisconnectListener): this;
|
|
@@ -2013,6 +2037,7 @@ declare module "process" {
|
|
|
2013
2037
|
once(event: Signals, listener: SignalsListener): this;
|
|
2014
2038
|
once(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2015
2039
|
once(event: "worker", listener: WorkerListener): this;
|
|
2040
|
+
once(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2016
2041
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2017
2042
|
prependListener(event: "beforeExit", listener: BeforeExitListener): this;
|
|
2018
2043
|
prependListener(event: "disconnect", listener: DisconnectListener): this;
|
|
@@ -2023,6 +2048,7 @@ declare module "process" {
|
|
|
2023
2048
|
prependListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2024
2049
|
prependListener(event: "warning", listener: WarningListener): this;
|
|
2025
2050
|
prependListener(event: "message", listener: MessageListener): this;
|
|
2051
|
+
prependListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2026
2052
|
prependListener(event: Signals, listener: SignalsListener): this;
|
|
2027
2053
|
prependListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2028
2054
|
prependListener(event: "worker", listener: WorkerListener): this;
|
|
@@ -2035,6 +2061,7 @@ declare module "process" {
|
|
|
2035
2061
|
prependOnceListener(event: "unhandledRejection", listener: UnhandledRejectionListener): this;
|
|
2036
2062
|
prependOnceListener(event: "warning", listener: WarningListener): this;
|
|
2037
2063
|
prependOnceListener(event: "message", listener: MessageListener): this;
|
|
2064
|
+
prependOnceListener(event: "workerMessage", listener: (value: any, source: number) => void): this;
|
|
2038
2065
|
prependOnceListener(event: Signals, listener: SignalsListener): this;
|
|
2039
2066
|
prependOnceListener(event: "multipleResolves", listener: MultipleResolveListener): this;
|
|
2040
2067
|
prependOnceListener(event: "worker", listener: WorkerListener): this;
|
|
@@ -2047,6 +2074,7 @@ declare module "process" {
|
|
|
2047
2074
|
listeners(event: "unhandledRejection"): UnhandledRejectionListener[];
|
|
2048
2075
|
listeners(event: "warning"): WarningListener[];
|
|
2049
2076
|
listeners(event: "message"): MessageListener[];
|
|
2077
|
+
listeners(event: "workerMessage"): ((value: any, source: number) => void)[];
|
|
2050
2078
|
listeners(event: Signals): SignalsListener[];
|
|
2051
2079
|
listeners(event: "multipleResolves"): MultipleResolveListener[];
|
|
2052
2080
|
listeners(event: "worker"): WorkerListener[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @since v17.0.0
|
|
3
|
-
* @experimental
|
|
4
3
|
*/
|
|
5
4
|
declare module "readline/promises" {
|
|
6
5
|
import { Abortable } from "node:events";
|
|
@@ -65,7 +64,7 @@ declare module "readline/promises" {
|
|
|
65
64
|
constructor(
|
|
66
65
|
stream: NodeJS.WritableStream,
|
|
67
66
|
options?: {
|
|
68
|
-
autoCommit?: boolean;
|
|
67
|
+
autoCommit?: boolean | undefined;
|
|
69
68
|
},
|
|
70
69
|
);
|
|
71
70
|
/**
|