@emulsify/cli 1.11.4 → 1.12.0
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/node_modules/.package-lock.json +34 -24
- package/dist/node_modules/@types/node/README.md +2 -2
- package/dist/node_modules/@types/node/assert.d.ts +23 -1
- package/dist/node_modules/@types/node/async_hooks.d.ts +64 -0
- package/dist/node_modules/@types/node/buffer.buffer.d.ts +124 -38
- package/dist/node_modules/@types/node/buffer.d.ts +19 -17
- package/dist/node_modules/@types/node/child_process.d.ts +88 -161
- package/dist/node_modules/@types/node/cluster.d.ts +5 -6
- package/dist/node_modules/@types/node/constants.d.ts +14 -12
- package/dist/node_modules/@types/node/crypto.d.ts +237 -166
- package/dist/node_modules/@types/node/dgram.d.ts +15 -14
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +39 -15
- package/dist/node_modules/@types/node/dns/promises.d.ts +11 -9
- package/dist/node_modules/@types/node/dns.d.ts +28 -21
- package/dist/node_modules/@types/node/events.d.ts +81 -35
- package/dist/node_modules/@types/node/fs/promises.d.ts +61 -36
- package/dist/node_modules/@types/node/fs.d.ts +251 -193
- package/dist/node_modules/@types/node/globals.d.ts +146 -442
- package/dist/node_modules/@types/node/globals.typedarray.d.ts +17 -0
- package/dist/node_modules/@types/node/http.d.ts +136 -31
- package/dist/node_modules/@types/node/http2.d.ts +102 -26
- package/dist/node_modules/@types/node/https.d.ts +94 -60
- package/dist/node_modules/@types/node/index.d.ts +5 -3
- package/dist/node_modules/@types/node/{inspector.d.ts → inspector.generated.d.ts} +272 -2
- package/dist/node_modules/@types/node/module.d.ts +362 -138
- package/dist/node_modules/@types/node/net.d.ts +27 -20
- package/dist/node_modules/@types/node/os.d.ts +14 -3
- package/dist/node_modules/@types/node/package.json +4 -89
- package/dist/node_modules/@types/node/perf_hooks.d.ts +37 -10
- package/dist/node_modules/@types/node/process.d.ts +108 -35
- package/dist/node_modules/@types/node/querystring.d.ts +2 -3
- package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/dist/node_modules/@types/node/stream/consumers.d.ts +33 -7
- package/dist/node_modules/@types/node/stream/web.d.ts +13 -4
- package/dist/node_modules/@types/node/stream.d.ts +963 -1014
- package/dist/node_modules/@types/node/string_decoder.d.ts +2 -2
- package/dist/node_modules/@types/node/test.d.ts +1504 -1655
- package/dist/node_modules/@types/node/timers/promises.d.ts +28 -17
- package/dist/node_modules/@types/node/timers.d.ts +157 -111
- package/dist/node_modules/@types/node/tls.d.ts +105 -67
- package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +120 -37
- package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +15 -0
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +5 -3
- package/dist/node_modules/@types/node/url.d.ts +10 -1
- package/dist/node_modules/@types/node/util.d.ts +28 -3
- package/dist/node_modules/@types/node/v8.d.ts +6 -5
- package/dist/node_modules/@types/node/vm.d.ts +147 -68
- package/dist/node_modules/@types/node/wasi.d.ts +1 -1
- package/dist/node_modules/@types/node/web-globals/abortcontroller.d.ts +34 -0
- package/dist/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/dist/node_modules/@types/node/web-globals/events.d.ts +97 -0
- package/dist/node_modules/@types/node/web-globals/fetch.d.ts +46 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +60 -39
- package/dist/node_modules/@types/node/zlib.d.ts +21 -20
- package/dist/node_modules/debug/package.json +7 -3
- package/dist/node_modules/debug/src/browser.js +2 -1
- package/dist/node_modules/debug/src/common.js +57 -39
- package/dist/node_modules/fast-uri/.github/dependabot.yml +1 -1
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +81 -3
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +6 -2
- package/dist/node_modules/fast-uri/LICENSE +3 -1
- package/dist/node_modules/fast-uri/README.md +55 -37
- package/dist/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
- package/dist/node_modules/fast-uri/benchmark/equal.mjs +51 -0
- package/dist/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
- package/dist/node_modules/fast-uri/benchmark/package.json +17 -0
- package/dist/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
- package/dist/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
- package/dist/node_modules/fast-uri/eslint.config.js +6 -0
- package/dist/node_modules/fast-uri/index.js +98 -61
- package/dist/node_modules/fast-uri/lib/schemes.js +160 -81
- package/dist/node_modules/fast-uri/lib/utils.js +217 -123
- package/dist/node_modules/fast-uri/package.json +44 -14
- package/dist/node_modules/fast-uri/test/ajv.test.js +7 -3
- package/dist/node_modules/fast-uri/test/equal.test.js +7 -2
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-parse.json +501 -0
- package/dist/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
- package/dist/node_modules/fast-uri/test/parse.test.js +31 -31
- package/dist/node_modules/fast-uri/test/resolve.test.js +52 -49
- package/dist/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
- package/dist/node_modules/fast-uri/test/serialize.test.js +55 -47
- package/dist/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
- package/dist/node_modules/fast-uri/test/uri-js.test.js +230 -230
- package/dist/node_modules/fast-uri/test/util.test.js +23 -8
- package/dist/node_modules/fast-uri/tsconfig.json +9 -0
- package/dist/node_modules/fast-uri/types/index.d.ts +16 -9
- package/dist/node_modules/fast-uri/types/index.test-d.ts +9 -9
- package/dist/node_modules/fs-extra/LICENSE +1 -1
- package/dist/node_modules/fs-extra/README.md +3 -1
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +11 -1
- package/dist/node_modules/fs-extra/lib/copy/copy.js +13 -15
- package/dist/node_modules/fs-extra/lib/fs/index.js +6 -0
- package/dist/node_modules/fs-extra/lib/util/async.js +29 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +2 -1
- package/dist/node_modules/fs-extra/package.json +1 -1
- package/dist/node_modules/jsonfile/README.md +1 -1
- package/dist/node_modules/jsonfile/index.js +3 -3
- package/dist/node_modules/jsonfile/package.json +1 -1
- package/dist/node_modules/simple-git/dist/cjs/index.js +235 -235
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/esm/index.js +229 -233
- package/dist/node_modules/simple-git/dist/esm/index.js.map +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/git-logger.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/parsers/parse-branch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/plugins/error-detection.plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/simple-git-plugin.d.ts +2 -3
- package/dist/node_modules/simple-git/dist/src/lib/plugins/spawn-options-plugin.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/scheduler.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/runners/tasks-pending-queue.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/apply-patch.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clean.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/clone.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/log.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/push.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/remote.d.ts +4 -2
- package/dist/node_modules/simple-git/dist/src/lib/tasks/reset.d.ts +3 -3
- package/dist/node_modules/simple-git/dist/src/lib/tasks/stash-list.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/tasks/task.d.ts +2 -2
- package/dist/node_modules/simple-git/dist/src/lib/types/handlers.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/types/index.d.ts +9 -13
- package/dist/node_modules/simple-git/dist/src/lib/types/tasks.d.ts +5 -6
- package/dist/node_modules/simple-git/dist/src/lib/utils/argument-filters.d.ts +5 -7
- package/dist/node_modules/simple-git/dist/src/lib/utils/git-output-streams.d.ts +0 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/line-parser.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/task-options.d.ts +1 -1
- package/dist/node_modules/simple-git/dist/src/lib/utils/util.d.ts +11 -10
- package/dist/node_modules/simple-git/package.json +6 -6
- package/dist/node_modules/simple-git/readme.md +8 -0
- package/dist/node_modules/undici-types/dispatcher.d.ts +1 -0
- package/dist/node_modules/undici-types/eventsource.d.ts +0 -2
- package/dist/node_modules/undici-types/filereader.d.ts +1 -1
- package/dist/node_modules/undici-types/interceptors.d.ts +3 -1
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/patch.d.ts +0 -38
- package/dist/node_modules/undici-types/readable.d.ts +5 -0
- package/dist/node_modules/undici-types/webidl.d.ts +6 -0
- package/dist/node_modules/undici-types/websocket.d.ts +0 -2
- package/dist/package-lock.json +911 -812
- package/dist/package.json +1 -1
- package/dist/util/getAvailableStarters.js +2 -2
- package/package.json +1 -1
- package/dist/node_modules/@types/node/dom-events.d.ts +0 -124
- package/dist/node_modules/fast-uri/benchmark.js +0 -105
- package/dist/node_modules/fast-uri/lib/scopedChars.js +0 -30
- package/dist/node_modules/fast-uri/test/.gitkeep +0 -0
- package/dist/node_modules/fast-uri/test/compatibility.test.js +0 -131
- package/dist/node_modules/jsonfile/CHANGELOG.md +0 -171
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/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";
|
|
@@ -31,7 +32,7 @@ declare module "net" {
|
|
|
31
32
|
allowHalfOpen?: boolean | undefined;
|
|
32
33
|
readable?: boolean | undefined;
|
|
33
34
|
writable?: boolean | undefined;
|
|
34
|
-
signal?: AbortSignal;
|
|
35
|
+
signal?: AbortSignal | undefined;
|
|
35
36
|
}
|
|
36
37
|
interface OnReadOpts {
|
|
37
38
|
buffer: Uint8Array | (() => Uint8Array);
|
|
@@ -112,8 +113,8 @@ declare module "net" {
|
|
|
112
113
|
* @since v0.1.90
|
|
113
114
|
* @param [encoding='utf8'] Only used when data is `string`.
|
|
114
115
|
*/
|
|
115
|
-
write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean;
|
|
116
|
-
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean;
|
|
116
|
+
write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
|
|
117
|
+
write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
|
|
117
118
|
/**
|
|
118
119
|
* Initiate a connection on a given socket.
|
|
119
120
|
*
|
|
@@ -327,25 +328,25 @@ declare module "net" {
|
|
|
327
328
|
* the socket is destroyed (for example, if the client disconnected).
|
|
328
329
|
* @since v0.5.10
|
|
329
330
|
*/
|
|
330
|
-
readonly remoteAddress
|
|
331
|
+
readonly remoteAddress: string | undefined;
|
|
331
332
|
/**
|
|
332
333
|
* The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if
|
|
333
334
|
* the socket is destroyed (for example, if the client disconnected).
|
|
334
335
|
* @since v0.11.14
|
|
335
336
|
*/
|
|
336
|
-
readonly remoteFamily
|
|
337
|
+
readonly remoteFamily: string | undefined;
|
|
337
338
|
/**
|
|
338
339
|
* The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if
|
|
339
340
|
* the socket is destroyed (for example, if the client disconnected).
|
|
340
341
|
* @since v0.5.10
|
|
341
342
|
*/
|
|
342
|
-
readonly remotePort
|
|
343
|
+
readonly remotePort: number | undefined;
|
|
343
344
|
/**
|
|
344
345
|
* The socket timeout in milliseconds as set by `socket.setTimeout()`.
|
|
345
346
|
* It is `undefined` if a timeout has not been set.
|
|
346
347
|
* @since v10.7.0
|
|
347
348
|
*/
|
|
348
|
-
readonly timeout?: number
|
|
349
|
+
readonly timeout?: number;
|
|
349
350
|
/**
|
|
350
351
|
* Half-closes the socket. i.e., it sends a FIN packet. It is possible the
|
|
351
352
|
* server will still send some data.
|
|
@@ -380,13 +381,13 @@ declare module "net" {
|
|
|
380
381
|
addListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
|
381
382
|
addListener(
|
|
382
383
|
event: "connectionAttemptFailed",
|
|
383
|
-
listener: (ip: string, port: number, family: number) => void,
|
|
384
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
384
385
|
): this;
|
|
385
386
|
addListener(
|
|
386
387
|
event: "connectionAttemptTimeout",
|
|
387
388
|
listener: (ip: string, port: number, family: number) => void,
|
|
388
389
|
): this;
|
|
389
|
-
addListener(event: "data", listener: (data:
|
|
390
|
+
addListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
390
391
|
addListener(event: "drain", listener: () => void): this;
|
|
391
392
|
addListener(event: "end", listener: () => void): this;
|
|
392
393
|
addListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -400,9 +401,9 @@ declare module "net" {
|
|
|
400
401
|
emit(event: "close", hadError: boolean): boolean;
|
|
401
402
|
emit(event: "connect"): boolean;
|
|
402
403
|
emit(event: "connectionAttempt", ip: string, port: number, family: number): boolean;
|
|
403
|
-
emit(event: "connectionAttemptFailed", ip: string, port: number, family: number): boolean;
|
|
404
|
+
emit(event: "connectionAttemptFailed", ip: string, port: number, family: number, error: Error): boolean;
|
|
404
405
|
emit(event: "connectionAttemptTimeout", ip: string, port: number, family: number): boolean;
|
|
405
|
-
emit(event: "data", data:
|
|
406
|
+
emit(event: "data", data: NonSharedBuffer): boolean;
|
|
406
407
|
emit(event: "drain"): boolean;
|
|
407
408
|
emit(event: "end"): boolean;
|
|
408
409
|
emit(event: "error", err: Error): boolean;
|
|
@@ -413,9 +414,12 @@ declare module "net" {
|
|
|
413
414
|
on(event: "close", listener: (hadError: boolean) => void): this;
|
|
414
415
|
on(event: "connect", listener: () => void): this;
|
|
415
416
|
on(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
|
416
|
-
on(
|
|
417
|
+
on(
|
|
418
|
+
event: "connectionAttemptFailed",
|
|
419
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
420
|
+
): this;
|
|
417
421
|
on(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
|
418
|
-
on(event: "data", listener: (data:
|
|
422
|
+
on(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
419
423
|
on(event: "drain", listener: () => void): this;
|
|
420
424
|
on(event: "end", listener: () => void): this;
|
|
421
425
|
on(event: "error", listener: (err: Error) => void): this;
|
|
@@ -428,10 +432,13 @@ declare module "net" {
|
|
|
428
432
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
429
433
|
once(event: "close", listener: (hadError: boolean) => void): this;
|
|
430
434
|
once(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
|
431
|
-
once(
|
|
435
|
+
once(
|
|
436
|
+
event: "connectionAttemptFailed",
|
|
437
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
438
|
+
): this;
|
|
432
439
|
once(event: "connectionAttemptTimeout", listener: (ip: string, port: number, family: number) => void): this;
|
|
433
440
|
once(event: "connect", listener: () => void): this;
|
|
434
|
-
once(event: "data", listener: (data:
|
|
441
|
+
once(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
435
442
|
once(event: "drain", listener: () => void): this;
|
|
436
443
|
once(event: "end", listener: () => void): this;
|
|
437
444
|
once(event: "error", listener: (err: Error) => void): this;
|
|
@@ -447,13 +454,13 @@ declare module "net" {
|
|
|
447
454
|
prependListener(event: "connectionAttempt", listener: (ip: string, port: number, family: number) => void): this;
|
|
448
455
|
prependListener(
|
|
449
456
|
event: "connectionAttemptFailed",
|
|
450
|
-
listener: (ip: string, port: number, family: number) => void,
|
|
457
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
451
458
|
): this;
|
|
452
459
|
prependListener(
|
|
453
460
|
event: "connectionAttemptTimeout",
|
|
454
461
|
listener: (ip: string, port: number, family: number) => void,
|
|
455
462
|
): this;
|
|
456
|
-
prependListener(event: "data", listener: (data:
|
|
463
|
+
prependListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
457
464
|
prependListener(event: "drain", listener: () => void): this;
|
|
458
465
|
prependListener(event: "end", listener: () => void): this;
|
|
459
466
|
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -472,13 +479,13 @@ declare module "net" {
|
|
|
472
479
|
): this;
|
|
473
480
|
prependOnceListener(
|
|
474
481
|
event: "connectionAttemptFailed",
|
|
475
|
-
listener: (ip: string, port: number, family: number) => void,
|
|
482
|
+
listener: (ip: string, port: number, family: number, error: Error) => void,
|
|
476
483
|
): this;
|
|
477
484
|
prependOnceListener(
|
|
478
485
|
event: "connectionAttemptTimeout",
|
|
479
486
|
listener: (ip: string, port: number, family: number) => void,
|
|
480
487
|
): this;
|
|
481
|
-
prependOnceListener(event: "data", listener: (data:
|
|
488
|
+
prependOnceListener(event: "data", listener: (data: NonSharedBuffer) => void): this;
|
|
482
489
|
prependOnceListener(event: "drain", listener: () => void): this;
|
|
483
490
|
prependOnceListener(event: "end", listener: () => void): this;
|
|
484
491
|
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
@@ -649,7 +656,7 @@ declare module "net" {
|
|
|
649
656
|
* Callback should take two arguments `err` and `count`.
|
|
650
657
|
* @since v0.9.7
|
|
651
658
|
*/
|
|
652
|
-
getConnections(cb: (error: Error | null, count: number) => void):
|
|
659
|
+
getConnections(cb: (error: Error | null, count: number) => void): this;
|
|
653
660
|
/**
|
|
654
661
|
* Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will _not_ let the program exit if it's the only server left (the default behavior).
|
|
655
662
|
* If the server is `ref`ed calling `ref()` again will have no effect.
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/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-v20.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 | NonSharedBuffer>;
|
|
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": "20.
|
|
3
|
+
"version": "20.19.25",
|
|
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",
|
|
@@ -170,11 +90,6 @@
|
|
|
170
90
|
"githubUsername": "victorperin",
|
|
171
91
|
"url": "https://github.com/victorperin"
|
|
172
92
|
},
|
|
173
|
-
{
|
|
174
|
-
"name": "Yongsheng Zhang",
|
|
175
|
-
"githubUsername": "ZYSzys",
|
|
176
|
-
"url": "https://github.com/ZYSzys"
|
|
177
|
-
},
|
|
178
93
|
{
|
|
179
94
|
"name": "NodeJS Contributors",
|
|
180
95
|
"githubUsername": "NodeJS",
|
|
@@ -217,9 +132,9 @@
|
|
|
217
132
|
},
|
|
218
133
|
"scripts": {},
|
|
219
134
|
"dependencies": {
|
|
220
|
-
"undici-types": "~6.
|
|
135
|
+
"undici-types": "~6.21.0"
|
|
221
136
|
},
|
|
222
137
|
"peerDependencies": {},
|
|
223
|
-
"typesPublisherContentHash": "
|
|
224
|
-
"typeScriptVersion": "5.
|
|
138
|
+
"typesPublisherContentHash": "0ec557ab7cdbdee76964ef84ff1599c64e255facd49d8e83135e9183115ebc00",
|
|
139
|
+
"typeScriptVersion": "5.2"
|
|
225
140
|
}
|
|
@@ -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,8 +110,24 @@ 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
|
}
|
|
116
|
+
interface UVMetrics {
|
|
117
|
+
/**
|
|
118
|
+
* Number of event loop iterations.
|
|
119
|
+
*/
|
|
120
|
+
readonly loopCount: number;
|
|
121
|
+
/**
|
|
122
|
+
* Number of events that have been processed by the event handler.
|
|
123
|
+
*/
|
|
124
|
+
readonly events: number;
|
|
125
|
+
/**
|
|
126
|
+
* Number of events that were waiting to be processed when the event provider was called.
|
|
127
|
+
*/
|
|
128
|
+
readonly eventsWaiting: number;
|
|
129
|
+
}
|
|
130
|
+
// TODO: PerformanceNodeEntry is missing
|
|
119
131
|
/**
|
|
120
132
|
* _This property is an extension by Node.js. It is not available in Web browsers._
|
|
121
133
|
*
|
|
@@ -165,6 +177,16 @@ declare module "perf_hooks" {
|
|
|
165
177
|
* @since v8.5.0
|
|
166
178
|
*/
|
|
167
179
|
readonly nodeStart: number;
|
|
180
|
+
/**
|
|
181
|
+
* This is a wrapper to the `uv_metrics_info` function.
|
|
182
|
+
* It returns the current set of event loop metrics.
|
|
183
|
+
*
|
|
184
|
+
* It is recommended to use this property inside a function whose execution was
|
|
185
|
+
* scheduled using `setImmediate` to avoid collecting metrics before finishing all
|
|
186
|
+
* operations scheduled during the current loop iteration.
|
|
187
|
+
* @since v20.18.0
|
|
188
|
+
*/
|
|
189
|
+
readonly uvMetricsInfo: UVMetrics;
|
|
168
190
|
/**
|
|
169
191
|
* The high resolution millisecond timestamp at which the V8 platform was
|
|
170
192
|
* initialized.
|
|
@@ -200,7 +222,7 @@ declare module "perf_hooks" {
|
|
|
200
222
|
/**
|
|
201
223
|
* Additional optional detail to include with the mark.
|
|
202
224
|
*/
|
|
203
|
-
detail?: unknown
|
|
225
|
+
detail?: unknown;
|
|
204
226
|
/**
|
|
205
227
|
* Duration between start and end times.
|
|
206
228
|
*/
|
|
@@ -563,6 +585,11 @@ declare module "perf_hooks" {
|
|
|
563
585
|
buffered?: boolean | undefined;
|
|
564
586
|
},
|
|
565
587
|
): void;
|
|
588
|
+
/**
|
|
589
|
+
* @since v16.0.0
|
|
590
|
+
* @returns Current list of entries stored in the performance observer, emptying it out.
|
|
591
|
+
*/
|
|
592
|
+
takeRecords(): PerformanceEntry[];
|
|
566
593
|
}
|
|
567
594
|
/**
|
|
568
595
|
* Provides detailed network timing data regarding the loading of an application's resources.
|
|
@@ -830,12 +857,12 @@ declare module "perf_hooks" {
|
|
|
830
857
|
* The minimum recordable value. Must be an integer value greater than 0.
|
|
831
858
|
* @default 1
|
|
832
859
|
*/
|
|
833
|
-
|
|
860
|
+
lowest?: number | bigint | undefined;
|
|
834
861
|
/**
|
|
835
862
|
* The maximum recordable value. Must be an integer value greater than min.
|
|
836
863
|
* @default Number.MAX_SAFE_INTEGER
|
|
837
864
|
*/
|
|
838
|
-
|
|
865
|
+
highest?: number | bigint | undefined;
|
|
839
866
|
/**
|
|
840
867
|
* The number of accuracy digits. Must be a number between 1 and 5.
|
|
841
868
|
* @default 3
|