@emulsify/cli 1.10.2 → 1.11.1
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/README.md +6 -6
- package/dist/node_modules/.package-lock.json +22 -22
- package/dist/node_modules/@types/node/README.md +1 -1
- package/dist/node_modules/@types/node/assert.d.ts +2 -2
- package/dist/node_modules/@types/node/buffer.buffer.d.ts +385 -0
- package/dist/node_modules/@types/node/buffer.d.ts +42 -390
- package/dist/node_modules/@types/node/child_process.d.ts +32 -28
- package/dist/node_modules/@types/node/cluster.d.ts +1 -1
- package/dist/node_modules/@types/node/compatibility/disposable.d.ts +16 -0
- package/dist/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/dist/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/dist/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/dist/node_modules/@types/node/console.d.ts +2 -2
- package/dist/node_modules/@types/node/crypto.d.ts +3 -3
- package/dist/node_modules/@types/node/dns/promises.d.ts +6 -5
- package/dist/node_modules/@types/node/dns.d.ts +5 -5
- package/dist/node_modules/@types/node/domain.d.ts +2 -2
- package/dist/node_modules/@types/node/events.d.ts +3 -3
- package/dist/node_modules/@types/node/fs/promises.d.ts +2 -2
- package/dist/node_modules/@types/node/fs.d.ts +2 -2
- package/dist/node_modules/@types/node/globals.d.ts +124 -68
- package/dist/node_modules/@types/node/globals.typedarray.d.ts +21 -0
- package/dist/node_modules/@types/node/http.d.ts +43 -7
- package/dist/node_modules/@types/node/http2.d.ts +238 -101
- package/dist/node_modules/@types/node/https.d.ts +17 -23
- package/dist/node_modules/@types/node/index.d.ts +11 -9
- package/dist/node_modules/@types/node/inspector.d.ts +1061 -111
- package/dist/node_modules/@types/node/module.d.ts +3 -3
- package/dist/node_modules/@types/node/net.d.ts +8 -2
- package/dist/node_modules/@types/node/os.d.ts +1 -1
- package/dist/node_modules/@types/node/package.json +11 -3
- package/dist/node_modules/@types/node/path.d.ts +10 -1
- package/dist/node_modules/@types/node/perf_hooks.d.ts +49 -20
- package/dist/node_modules/@types/node/process.d.ts +142 -17
- package/dist/node_modules/@types/node/punycode.d.ts +1 -1
- package/dist/node_modules/@types/node/querystring.d.ts +1 -1
- package/dist/node_modules/@types/node/readline/promises.d.ts +1 -1
- package/dist/node_modules/@types/node/readline.d.ts +10 -10
- package/dist/node_modules/@types/node/repl.d.ts +4 -4
- package/dist/node_modules/@types/node/stream/promises.d.ts +8 -1
- package/dist/node_modules/@types/node/stream/web.d.ts +182 -25
- package/dist/node_modules/@types/node/stream.d.ts +36 -17
- package/dist/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/dist/node_modules/@types/node/test.d.ts +313 -94
- package/dist/node_modules/@types/node/timers/promises.d.ts +1 -1
- package/dist/node_modules/@types/node/timers.d.ts +1 -1
- package/dist/node_modules/@types/node/tls.d.ts +5 -5
- package/dist/node_modules/@types/node/trace_events.d.ts +4 -4
- package/dist/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +385 -0
- package/dist/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +19 -0
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +91 -0
- package/dist/node_modules/@types/node/tty.d.ts +1 -1
- package/dist/node_modules/@types/node/url.d.ts +14 -11
- package/dist/node_modules/@types/node/util.d.ts +55 -49
- package/dist/node_modules/@types/node/v8.d.ts +12 -12
- package/dist/node_modules/@types/node/vm.d.ts +11 -12
- package/dist/node_modules/@types/node/worker_threads.d.ts +22 -22
- package/dist/node_modules/@types/node/zlib.d.ts +17 -8
- package/dist/node_modules/debug/README.md +1 -1
- package/dist/node_modules/debug/package.json +2 -2
- package/dist/node_modules/fast-uri/.github/workflows/ci.yml +2 -2
- package/dist/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +1 -1
- package/dist/node_modules/fast-uri/index.js +3 -9
- package/dist/node_modules/fast-uri/package.json +4 -4
- package/dist/node_modules/fast-uri/test/ajv.test.js +1 -1
- package/dist/node_modules/fast-uri/test/compatibility.test.js +3 -2
- package/dist/node_modules/fast-uri/test/equal.test.js +1 -2
- package/dist/node_modules/fast-uri/test/parse.test.js +1 -2
- package/dist/node_modules/fast-uri/test/resolve.test.js +1 -2
- package/dist/node_modules/fast-uri/test/serialize.test.js +1 -2
- package/dist/node_modules/fast-uri/test/uri-js.test.js +539 -567
- package/dist/node_modules/fast-uri/test/util.test.js +2 -3
- package/dist/node_modules/ms/index.js +1 -1
- package/dist/node_modules/ms/license.md +1 -1
- package/dist/node_modules/ms/package.json +5 -4
- package/dist/node_modules/ms/readme.md +1 -2
- package/dist/node_modules/simple-git/dist/cjs/index.js +14 -15
- package/dist/node_modules/simple-git/dist/cjs/index.js.map +2 -2
- package/dist/node_modules/simple-git/dist/esm/index.js +14 -15
- package/dist/node_modules/simple-git/dist/esm/index.js.map +2 -2
- package/dist/node_modules/simple-git/dist/typings/response.d.ts +7 -6
- package/dist/node_modules/simple-git/package.json +5 -5
- package/dist/node_modules/undici-types/LICENSE +21 -0
- package/dist/node_modules/undici-types/balanced-pool.d.ts +11 -0
- package/dist/node_modules/undici-types/client.d.ts +12 -1
- package/dist/node_modules/undici-types/diagnostics-channel.d.ts +1 -2
- package/dist/node_modules/undici-types/dispatcher.d.ts +18 -4
- package/dist/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
- package/dist/node_modules/undici-types/errors.d.ts +21 -0
- package/dist/node_modules/undici-types/eventsource.d.ts +63 -0
- package/dist/node_modules/undici-types/fetch.d.ts +25 -25
- package/dist/node_modules/undici-types/formdata.d.ts +1 -1
- package/dist/node_modules/undici-types/handlers.d.ts +10 -4
- package/dist/node_modules/undici-types/index.d.ts +10 -2
- package/dist/node_modules/undici-types/interceptors.d.ts +12 -2
- package/dist/node_modules/undici-types/mock-interceptor.d.ts +4 -4
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/pool.d.ts +11 -0
- package/dist/node_modules/undici-types/proxy-agent.d.ts +0 -2
- package/dist/node_modules/undici-types/readable.d.ts +2 -3
- package/dist/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/dist/node_modules/undici-types/retry-handler.d.ts +116 -0
- package/dist/node_modules/undici-types/util.d.ts +18 -0
- package/dist/node_modules/undici-types/webidl.d.ts +10 -8
- package/dist/node_modules/undici-types/websocket.d.ts +22 -1
- package/dist/package-lock.json +834 -700
- package/dist/package.json +2 -2
- package/dist/util/system/getAvailableSystems.js +5 -0
- package/package.json +2 -2
- package/dist/node_modules/@types/node/globals.global.d.ts +0 -1
- package/dist/node_modules/fast-uri/.taprc +0 -3
|
@@ -12,9 +12,9 @@ declare module "module" {
|
|
|
12
12
|
* does not add or remove exported names from the `ES Modules`.
|
|
13
13
|
*
|
|
14
14
|
* ```js
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
15
|
+
* import fs from 'node:fs';
|
|
16
|
+
* import assert from 'node:assert';
|
|
17
|
+
* import { syncBuiltinESMExports } from 'node:module';
|
|
18
18
|
*
|
|
19
19
|
* fs.readFile = newAPI;
|
|
20
20
|
*
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* It can be accessed using:
|
|
9
9
|
*
|
|
10
10
|
* ```js
|
|
11
|
-
*
|
|
11
|
+
* import net from 'node:net';
|
|
12
12
|
* ```
|
|
13
13
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/net.js)
|
|
14
14
|
*/
|
|
@@ -532,6 +532,12 @@ declare module "net" {
|
|
|
532
532
|
* @since v16.5.0
|
|
533
533
|
*/
|
|
534
534
|
keepAliveInitialDelay?: number | undefined;
|
|
535
|
+
/**
|
|
536
|
+
* Optionally overrides all `net.Socket`s' `readableHighWaterMark` and `writableHighWaterMark`.
|
|
537
|
+
* @default See [stream.getDefaultHighWaterMark()](https://nodejs.org/docs/latest-v20.x/api/stream.html#streamgetdefaulthighwatermarkobjectmode).
|
|
538
|
+
* @since v18.17.0, v20.1.0
|
|
539
|
+
*/
|
|
540
|
+
highWaterMark?: number | undefined;
|
|
535
541
|
}
|
|
536
542
|
interface DropArgument {
|
|
537
543
|
localAddress?: string;
|
|
@@ -812,7 +818,7 @@ declare module "net" {
|
|
|
812
818
|
* on port 8124:
|
|
813
819
|
*
|
|
814
820
|
* ```js
|
|
815
|
-
*
|
|
821
|
+
* import net from 'node:net';
|
|
816
822
|
* const server = net.createServer((c) => {
|
|
817
823
|
* // 'connection' listener.
|
|
818
824
|
* console.log('client connected');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.17.0",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -203,6 +203,13 @@
|
|
|
203
203
|
],
|
|
204
204
|
"main": "",
|
|
205
205
|
"types": "index.d.ts",
|
|
206
|
+
"typesVersions": {
|
|
207
|
+
"<=5.6": {
|
|
208
|
+
"*": [
|
|
209
|
+
"ts5.6/*"
|
|
210
|
+
]
|
|
211
|
+
}
|
|
212
|
+
},
|
|
206
213
|
"repository": {
|
|
207
214
|
"type": "git",
|
|
208
215
|
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
|
|
@@ -210,8 +217,9 @@
|
|
|
210
217
|
},
|
|
211
218
|
"scripts": {},
|
|
212
219
|
"dependencies": {
|
|
213
|
-
"undici-types": "~
|
|
220
|
+
"undici-types": "~6.19.2"
|
|
214
221
|
},
|
|
215
|
-
"
|
|
222
|
+
"peerDependencies": {},
|
|
223
|
+
"typesPublisherContentHash": "9cef648f04b5992e1dfca68a79575ad391a019a0c0dc0e237b99be9e79c8f046",
|
|
216
224
|
"typeScriptVersion": "4.8"
|
|
217
225
|
}
|
|
@@ -11,7 +11,7 @@ declare module "path/win32" {
|
|
|
11
11
|
* paths. It can be accessed using:
|
|
12
12
|
*
|
|
13
13
|
* ```js
|
|
14
|
-
*
|
|
14
|
+
* import path from 'node:path';
|
|
15
15
|
* ```
|
|
16
16
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/path.js)
|
|
17
17
|
*/
|
|
@@ -94,6 +94,15 @@ declare module "path" {
|
|
|
94
94
|
* @throws {TypeError} if any of the arguments is not a string.
|
|
95
95
|
*/
|
|
96
96
|
resolve(...paths: string[]): string;
|
|
97
|
+
/**
|
|
98
|
+
* The `path.matchesGlob()` method determines if `path` matches the `pattern`.
|
|
99
|
+
* @param path The path to glob-match against.
|
|
100
|
+
* @param pattern The glob to check the path against.
|
|
101
|
+
* @returns Whether or not the `path` matched the `pattern`.
|
|
102
|
+
* @throws {TypeError} if `path` or `pattern` are not strings.
|
|
103
|
+
* @since v20.17.0
|
|
104
|
+
*/
|
|
105
|
+
matchesGlob(path: string, pattern: string): boolean;
|
|
97
106
|
/**
|
|
98
107
|
* Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory.
|
|
99
108
|
*
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* * [Resource Timing](https://www.w3.org/TR/resource-timing-2/)
|
|
11
11
|
*
|
|
12
12
|
* ```js
|
|
13
|
-
*
|
|
13
|
+
* import { PerformanceObserver, performance } from 'node:perf_hooks';
|
|
14
14
|
*
|
|
15
15
|
* const obs = new PerformanceObserver((items) => {
|
|
16
16
|
* console.log(items.getEntries()[0].duration);
|
|
@@ -31,7 +31,17 @@
|
|
|
31
31
|
*/
|
|
32
32
|
declare module "perf_hooks" {
|
|
33
33
|
import { AsyncResource } from "node:async_hooks";
|
|
34
|
-
type EntryType =
|
|
34
|
+
type EntryType =
|
|
35
|
+
| "dns" // Node.js only
|
|
36
|
+
| "function" // Node.js only
|
|
37
|
+
| "gc" // Node.js only
|
|
38
|
+
| "http2" // Node.js only
|
|
39
|
+
| "http" // Node.js only
|
|
40
|
+
| "mark" // available on the Web
|
|
41
|
+
| "measure" // available on the Web
|
|
42
|
+
| "net" // Node.js only
|
|
43
|
+
| "node" // Node.js only
|
|
44
|
+
| "resource"; // available on the Web
|
|
35
45
|
interface NodeGCPerformanceDetail {
|
|
36
46
|
/**
|
|
37
47
|
* When `performanceEntry.entryType` is equal to 'gc', the `performance.kind` property identifies
|
|
@@ -270,6 +280,24 @@ declare module "perf_hooks" {
|
|
|
270
280
|
* @param name
|
|
271
281
|
*/
|
|
272
282
|
mark(name: string, options?: MarkOptions): PerformanceMark;
|
|
283
|
+
/**
|
|
284
|
+
* Creates a new `PerformanceResourceTiming` entry in the Resource Timeline.
|
|
285
|
+
* A `PerformanceResourceTiming` is a subclass of `PerformanceEntry` whose `performanceEntry.entryType` is always `'resource'`.
|
|
286
|
+
* Performance resources are used to mark moments in the Resource Timeline.
|
|
287
|
+
* @param timingInfo [Fetch Timing Info](https://fetch.spec.whatwg.org/#fetch-timing-info)
|
|
288
|
+
* @param requestedUrl The resource url
|
|
289
|
+
* @param initiatorType The initiator name, e.g: 'fetch'
|
|
290
|
+
* @param global
|
|
291
|
+
* @param cacheMode The cache mode must be an empty string ('') or 'local'
|
|
292
|
+
* @since v18.2.0, v16.17.0
|
|
293
|
+
*/
|
|
294
|
+
markResourceTiming(
|
|
295
|
+
timingInfo: object,
|
|
296
|
+
requestedUrl: string,
|
|
297
|
+
initiatorType: string,
|
|
298
|
+
global: object,
|
|
299
|
+
cacheMode: "" | "local",
|
|
300
|
+
): PerformanceResourceTiming;
|
|
273
301
|
/**
|
|
274
302
|
* Creates a new PerformanceMeasure entry in the Performance Timeline.
|
|
275
303
|
* A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure',
|
|
@@ -320,10 +348,10 @@ declare module "perf_hooks" {
|
|
|
320
348
|
* A `PerformanceObserver` must be subscribed to the `'function'` event type in order for the timing details to be accessed.
|
|
321
349
|
*
|
|
322
350
|
* ```js
|
|
323
|
-
*
|
|
351
|
+
* import {
|
|
324
352
|
* performance,
|
|
325
353
|
* PerformanceObserver,
|
|
326
|
-
* }
|
|
354
|
+
* } from 'node:perf_hooks';
|
|
327
355
|
*
|
|
328
356
|
* function someFunction() {
|
|
329
357
|
* console.log('hello world');
|
|
@@ -362,10 +390,10 @@ declare module "perf_hooks" {
|
|
|
362
390
|
* with respect to `performanceEntry.startTime`.
|
|
363
391
|
*
|
|
364
392
|
* ```js
|
|
365
|
-
*
|
|
393
|
+
* import {
|
|
366
394
|
* performance,
|
|
367
395
|
* PerformanceObserver,
|
|
368
|
-
* }
|
|
396
|
+
* } from 'node:perf_hooks';
|
|
369
397
|
*
|
|
370
398
|
* const obs = new PerformanceObserver((perfObserverList, observer) => {
|
|
371
399
|
* console.log(perfObserverList.getEntries());
|
|
@@ -405,10 +433,10 @@ declare module "perf_hooks" {
|
|
|
405
433
|
* equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`.
|
|
406
434
|
*
|
|
407
435
|
* ```js
|
|
408
|
-
*
|
|
436
|
+
* import {
|
|
409
437
|
* performance,
|
|
410
438
|
* PerformanceObserver,
|
|
411
|
-
* }
|
|
439
|
+
* } from 'node:perf_hooks';
|
|
412
440
|
*
|
|
413
441
|
* const obs = new PerformanceObserver((perfObserverList, observer) => {
|
|
414
442
|
* console.log(perfObserverList.getEntriesByName('meow'));
|
|
@@ -456,10 +484,10 @@ declare module "perf_hooks" {
|
|
|
456
484
|
* with respect to `performanceEntry.startTime` whose `performanceEntry.entryType` is equal to `type`.
|
|
457
485
|
*
|
|
458
486
|
* ```js
|
|
459
|
-
*
|
|
487
|
+
* import {
|
|
460
488
|
* performance,
|
|
461
489
|
* PerformanceObserver,
|
|
462
|
-
* }
|
|
490
|
+
* } from 'node:perf_hooks';
|
|
463
491
|
*
|
|
464
492
|
* const obs = new PerformanceObserver((perfObserverList, observer) => {
|
|
465
493
|
* console.log(perfObserverList.getEntriesByType('mark'));
|
|
@@ -509,10 +537,10 @@ declare module "perf_hooks" {
|
|
|
509
537
|
* Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes` or `options.type`:
|
|
510
538
|
*
|
|
511
539
|
* ```js
|
|
512
|
-
*
|
|
540
|
+
* import {
|
|
513
541
|
* performance,
|
|
514
542
|
* PerformanceObserver,
|
|
515
|
-
* }
|
|
543
|
+
* } from 'node:perf_hooks';
|
|
516
544
|
*
|
|
517
545
|
* const obs = new PerformanceObserver((list, observer) => {
|
|
518
546
|
* // Called once asynchronously. `list` contains three items.
|
|
@@ -543,6 +571,7 @@ declare module "perf_hooks" {
|
|
|
543
571
|
* @since v18.2.0, v16.17.0
|
|
544
572
|
*/
|
|
545
573
|
class PerformanceResourceTiming extends PerformanceEntry {
|
|
574
|
+
readonly entryType: "resource";
|
|
546
575
|
protected constructor();
|
|
547
576
|
/**
|
|
548
577
|
* The high resolution millisecond timestamp at immediately before dispatching the `fetch`
|
|
@@ -780,7 +809,7 @@ declare module "perf_hooks" {
|
|
|
780
809
|
* detect.
|
|
781
810
|
*
|
|
782
811
|
* ```js
|
|
783
|
-
*
|
|
812
|
+
* import { monitorEventLoopDelay } from 'node:perf_hooks';
|
|
784
813
|
* const h = monitorEventLoopDelay({ resolution: 20 });
|
|
785
814
|
* h.enable();
|
|
786
815
|
* // Do something.
|
|
@@ -829,7 +858,7 @@ declare module "perf_hooks" {
|
|
|
829
858
|
} from "perf_hooks";
|
|
830
859
|
global {
|
|
831
860
|
/**
|
|
832
|
-
* `PerformanceEntry` is a global reference for `
|
|
861
|
+
* `PerformanceEntry` is a global reference for `import { PerformanceEntry } from 'node:node:perf_hooks'`
|
|
833
862
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceentry
|
|
834
863
|
* @since v19.0.0
|
|
835
864
|
*/
|
|
@@ -839,7 +868,7 @@ declare module "perf_hooks" {
|
|
|
839
868
|
} ? T
|
|
840
869
|
: typeof _PerformanceEntry;
|
|
841
870
|
/**
|
|
842
|
-
* `PerformanceMark` is a global reference for `
|
|
871
|
+
* `PerformanceMark` is a global reference for `import { PerformanceMark } from 'node:node:perf_hooks'`
|
|
843
872
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemark
|
|
844
873
|
* @since v19.0.0
|
|
845
874
|
*/
|
|
@@ -849,7 +878,7 @@ declare module "perf_hooks" {
|
|
|
849
878
|
} ? T
|
|
850
879
|
: typeof _PerformanceMark;
|
|
851
880
|
/**
|
|
852
|
-
* `PerformanceMeasure` is a global reference for `
|
|
881
|
+
* `PerformanceMeasure` is a global reference for `import { PerformanceMeasure } from 'node:node:perf_hooks'`
|
|
853
882
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performancemeasure
|
|
854
883
|
* @since v19.0.0
|
|
855
884
|
*/
|
|
@@ -859,7 +888,7 @@ declare module "perf_hooks" {
|
|
|
859
888
|
} ? T
|
|
860
889
|
: typeof _PerformanceMeasure;
|
|
861
890
|
/**
|
|
862
|
-
* `PerformanceObserver` is a global reference for `
|
|
891
|
+
* `PerformanceObserver` is a global reference for `import { PerformanceObserver } from 'node:node:perf_hooks'`
|
|
863
892
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserver
|
|
864
893
|
* @since v19.0.0
|
|
865
894
|
*/
|
|
@@ -869,7 +898,7 @@ declare module "perf_hooks" {
|
|
|
869
898
|
} ? T
|
|
870
899
|
: typeof _PerformanceObserver;
|
|
871
900
|
/**
|
|
872
|
-
* `PerformanceObserverEntryList` is a global reference for `
|
|
901
|
+
* `PerformanceObserverEntryList` is a global reference for `import { PerformanceObserverEntryList } from 'node:node:perf_hooks'`
|
|
873
902
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceobserverentrylist
|
|
874
903
|
* @since v19.0.0
|
|
875
904
|
*/
|
|
@@ -879,7 +908,7 @@ declare module "perf_hooks" {
|
|
|
879
908
|
} ? T
|
|
880
909
|
: typeof _PerformanceObserverEntryList;
|
|
881
910
|
/**
|
|
882
|
-
* `PerformanceResourceTiming` is a global reference for `
|
|
911
|
+
* `PerformanceResourceTiming` is a global reference for `import { PerformanceResourceTiming } from 'node:node:perf_hooks'`
|
|
883
912
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performanceresourcetiming
|
|
884
913
|
* @since v19.0.0
|
|
885
914
|
*/
|
|
@@ -889,7 +918,7 @@ declare module "perf_hooks" {
|
|
|
889
918
|
} ? T
|
|
890
919
|
: typeof _PerformanceResourceTiming;
|
|
891
920
|
/**
|
|
892
|
-
* `performance` is a global reference for `
|
|
921
|
+
* `performance` is a global reference for `import { performance } from 'node:node:perf_hooks'`
|
|
893
922
|
* @see https://nodejs.org/docs/latest-v20.x/api/globals.html#performance
|
|
894
923
|
* @since v16.0.0
|
|
895
924
|
*/
|
|
@@ -1,8 +1,121 @@
|
|
|
1
1
|
declare module "process" {
|
|
2
|
-
import * as net from "node:net";
|
|
3
|
-
import * as os from "node:os";
|
|
4
2
|
import * as tty from "node:tty";
|
|
5
3
|
import { Worker } from "node:worker_threads";
|
|
4
|
+
|
|
5
|
+
interface BuiltInModule {
|
|
6
|
+
"assert": typeof import("assert");
|
|
7
|
+
"node:assert": typeof import("node:assert");
|
|
8
|
+
"assert/strict": typeof import("assert/strict");
|
|
9
|
+
"node:assert/strict": typeof import("node:assert/strict");
|
|
10
|
+
"async_hooks": typeof import("async_hooks");
|
|
11
|
+
"node:async_hooks": typeof import("node:async_hooks");
|
|
12
|
+
"buffer": typeof import("buffer");
|
|
13
|
+
"node:buffer": typeof import("node:buffer");
|
|
14
|
+
"child_process": typeof import("child_process");
|
|
15
|
+
"node:child_process": typeof import("node:child_process");
|
|
16
|
+
"cluster": typeof import("cluster");
|
|
17
|
+
"node:cluster": typeof import("node:cluster");
|
|
18
|
+
"console": typeof import("console");
|
|
19
|
+
"node:console": typeof import("node:console");
|
|
20
|
+
"constants": typeof import("constants");
|
|
21
|
+
"node:constants": typeof import("node:constants");
|
|
22
|
+
"crypto": typeof import("crypto");
|
|
23
|
+
"node:crypto": typeof import("node:crypto");
|
|
24
|
+
"dgram": typeof import("dgram");
|
|
25
|
+
"node:dgram": typeof import("node:dgram");
|
|
26
|
+
"diagnostics_channel": typeof import("diagnostics_channel");
|
|
27
|
+
"node:diagnostics_channel": typeof import("node:diagnostics_channel");
|
|
28
|
+
"dns": typeof import("dns");
|
|
29
|
+
"node:dns": typeof import("node:dns");
|
|
30
|
+
"dns/promises": typeof import("dns/promises");
|
|
31
|
+
"node:dns/promises": typeof import("node:dns/promises");
|
|
32
|
+
"domain": typeof import("domain");
|
|
33
|
+
"node:domain": typeof import("node:domain");
|
|
34
|
+
"events": typeof import("events");
|
|
35
|
+
"node:events": typeof import("node:events");
|
|
36
|
+
"fs": typeof import("fs");
|
|
37
|
+
"node:fs": typeof import("node:fs");
|
|
38
|
+
"fs/promises": typeof import("fs/promises");
|
|
39
|
+
"node:fs/promises": typeof import("node:fs/promises");
|
|
40
|
+
"http": typeof import("http");
|
|
41
|
+
"node:http": typeof import("node:http");
|
|
42
|
+
"http2": typeof import("http2");
|
|
43
|
+
"node:http2": typeof import("node:http2");
|
|
44
|
+
"https": typeof import("https");
|
|
45
|
+
"node:https": typeof import("node:https");
|
|
46
|
+
"inspector": typeof import("inspector");
|
|
47
|
+
"node:inspector": typeof import("node:inspector");
|
|
48
|
+
"inspector/promises": typeof import("inspector/promises");
|
|
49
|
+
"node:inspector/promises": typeof import("node:inspector/promises");
|
|
50
|
+
"module": typeof import("module");
|
|
51
|
+
"node:module": typeof import("node:module");
|
|
52
|
+
"net": typeof import("net");
|
|
53
|
+
"node:net": typeof import("node:net");
|
|
54
|
+
"os": typeof import("os");
|
|
55
|
+
"node:os": typeof import("node:os");
|
|
56
|
+
"path": typeof import("path");
|
|
57
|
+
"node:path": typeof import("node:path");
|
|
58
|
+
"path/posix": typeof import("path/posix");
|
|
59
|
+
"node:path/posix": typeof import("node:path/posix");
|
|
60
|
+
"path/win32": typeof import("path/win32");
|
|
61
|
+
"node:path/win32": typeof import("node:path/win32");
|
|
62
|
+
"perf_hooks": typeof import("perf_hooks");
|
|
63
|
+
"node:perf_hooks": typeof import("node:perf_hooks");
|
|
64
|
+
"process": typeof import("process");
|
|
65
|
+
"node:process": typeof import("node:process");
|
|
66
|
+
"punycode": typeof import("punycode");
|
|
67
|
+
"node:punycode": typeof import("node:punycode");
|
|
68
|
+
"querystring": typeof import("querystring");
|
|
69
|
+
"node:querystring": typeof import("node:querystring");
|
|
70
|
+
"readline": typeof import("readline");
|
|
71
|
+
"node:readline": typeof import("node:readline");
|
|
72
|
+
"readline/promises": typeof import("readline/promises");
|
|
73
|
+
"node:readline/promises": typeof import("node:readline/promises");
|
|
74
|
+
"repl": typeof import("repl");
|
|
75
|
+
"node:repl": typeof import("node:repl");
|
|
76
|
+
"node:sea": typeof import("node:sea");
|
|
77
|
+
"stream": typeof import("stream");
|
|
78
|
+
"node:stream": typeof import("node:stream");
|
|
79
|
+
"stream/consumers": typeof import("stream/consumers");
|
|
80
|
+
"node:stream/consumers": typeof import("node:stream/consumers");
|
|
81
|
+
"stream/promises": typeof import("stream/promises");
|
|
82
|
+
"node:stream/promises": typeof import("node:stream/promises");
|
|
83
|
+
"stream/web": typeof import("stream/web");
|
|
84
|
+
"node:stream/web": typeof import("node:stream/web");
|
|
85
|
+
"string_decoder": typeof import("string_decoder");
|
|
86
|
+
"node:string_decoder": typeof import("node:string_decoder");
|
|
87
|
+
"node:test": typeof import("node:test");
|
|
88
|
+
"node:test/reporters": typeof import("node:test/reporters");
|
|
89
|
+
"timers": typeof import("timers");
|
|
90
|
+
"node:timers": typeof import("node:timers");
|
|
91
|
+
"timers/promises": typeof import("timers/promises");
|
|
92
|
+
"node:timers/promises": typeof import("node:timers/promises");
|
|
93
|
+
"tls": typeof import("tls");
|
|
94
|
+
"node:tls": typeof import("node:tls");
|
|
95
|
+
"trace_events": typeof import("trace_events");
|
|
96
|
+
"node:trace_events": typeof import("node:trace_events");
|
|
97
|
+
"tty": typeof import("tty");
|
|
98
|
+
"node:tty": typeof import("node:tty");
|
|
99
|
+
"url": typeof import("url");
|
|
100
|
+
"node:url": typeof import("node:url");
|
|
101
|
+
"util": typeof import("util");
|
|
102
|
+
"node:util": typeof import("node:util");
|
|
103
|
+
"sys": typeof import("util");
|
|
104
|
+
"node:sys": typeof import("node:util");
|
|
105
|
+
"util/types": typeof import("util/types");
|
|
106
|
+
"node:util/types": typeof import("node:util/types");
|
|
107
|
+
"v8": typeof import("v8");
|
|
108
|
+
"node:v8": typeof import("node:v8");
|
|
109
|
+
"vm": typeof import("vm");
|
|
110
|
+
"node:vm": typeof import("node:vm");
|
|
111
|
+
"wasi": typeof import("wasi");
|
|
112
|
+
"node:wasi": typeof import("node:wasi");
|
|
113
|
+
"worker_threads": typeof import("worker_threads");
|
|
114
|
+
"node:worker_threads": typeof import("node:worker_threads");
|
|
115
|
+
"zlib": typeof import("zlib");
|
|
116
|
+
"node:zlib": typeof import("node:zlib");
|
|
117
|
+
}
|
|
118
|
+
|
|
6
119
|
global {
|
|
7
120
|
var process: NodeJS.Process;
|
|
8
121
|
namespace NodeJS {
|
|
@@ -209,24 +322,28 @@ declare module "process" {
|
|
|
209
322
|
has(scope: string, reference?: string): boolean;
|
|
210
323
|
}
|
|
211
324
|
interface ProcessReport {
|
|
325
|
+
/**
|
|
326
|
+
* Write reports in a compact format, single-line JSON, more easily consumable by log processing systems
|
|
327
|
+
* than the default multi-line format designed for human consumption.
|
|
328
|
+
* @since v13.12.0, v12.17.0
|
|
329
|
+
*/
|
|
330
|
+
compact: boolean;
|
|
212
331
|
/**
|
|
213
332
|
* Directory where the report is written.
|
|
333
|
+
* The default value is the empty string, indicating that reports are written to the current
|
|
214
334
|
* working directory of the Node.js process.
|
|
215
|
-
* @default '' indicating that reports are written to the current
|
|
216
335
|
*/
|
|
217
336
|
directory: string;
|
|
218
337
|
/**
|
|
219
|
-
* Filename where the report is written.
|
|
220
|
-
* The default value is the empty string.
|
|
221
|
-
* @default '' the output filename will be comprised of a timestamp,
|
|
222
|
-
* PID, and sequence number.
|
|
338
|
+
* Filename where the report is written. If set to the empty string, the output filename will be comprised
|
|
339
|
+
* of a timestamp, PID, and sequence number. The default value is the empty string.
|
|
223
340
|
*/
|
|
224
341
|
filename: string;
|
|
225
342
|
/**
|
|
226
|
-
* Returns a
|
|
227
|
-
* The report's JavaScript stack trace is taken from err
|
|
343
|
+
* Returns a JavaScript Object representation of a diagnostic report for the running process.
|
|
344
|
+
* The report's JavaScript stack trace is taken from `err`, if present.
|
|
228
345
|
*/
|
|
229
|
-
getReport(err?: Error):
|
|
346
|
+
getReport(err?: Error): object;
|
|
230
347
|
/**
|
|
231
348
|
* If true, a diagnostic report is generated on fatal errors,
|
|
232
349
|
* such as out of memory errors or failed C++ assertions.
|
|
@@ -252,18 +369,19 @@ declare module "process" {
|
|
|
252
369
|
/**
|
|
253
370
|
* Writes a diagnostic report to a file. If filename is not provided, the default filename
|
|
254
371
|
* includes the date, time, PID, and a sequence number.
|
|
255
|
-
* The report's JavaScript stack trace is taken from err
|
|
372
|
+
* The report's JavaScript stack trace is taken from `err`, if present.
|
|
256
373
|
*
|
|
374
|
+
* If the value of filename is set to `'stdout'` or `'stderr'`, the report is written
|
|
375
|
+
* to the stdout or stderr of the process respectively.
|
|
257
376
|
* @param fileName Name of the file where the report is written.
|
|
258
377
|
* This should be a relative path, that will be appended to the directory specified in
|
|
259
378
|
* `process.report.directory`, or the current working directory of the Node.js process,
|
|
260
379
|
* if unspecified.
|
|
261
|
-
* @param
|
|
380
|
+
* @param err A custom error used for reporting the JavaScript stack.
|
|
262
381
|
* @return Filename of the generated report.
|
|
263
382
|
*/
|
|
264
|
-
writeReport(fileName?: string): string;
|
|
265
|
-
writeReport(error?: Error): string;
|
|
266
383
|
writeReport(fileName?: string, err?: Error): string;
|
|
384
|
+
writeReport(err?: Error): string;
|
|
267
385
|
}
|
|
268
386
|
interface ResourceUsage {
|
|
269
387
|
fsRead: number;
|
|
@@ -793,6 +911,13 @@ declare module "process" {
|
|
|
793
911
|
* @since v17.3.0, v16.14.0
|
|
794
912
|
*/
|
|
795
913
|
getActiveResourcesInfo(): string[];
|
|
914
|
+
/**
|
|
915
|
+
* Provides a way to load built-in modules in a globally available function.
|
|
916
|
+
* @param id ID of the built-in module being requested.
|
|
917
|
+
* @since v20.16.0
|
|
918
|
+
*/
|
|
919
|
+
getBuiltinModule<ID extends keyof BuiltInModule>(id: ID): BuiltInModule[ID];
|
|
920
|
+
getBuiltinModule(id: string): object | undefined;
|
|
796
921
|
/**
|
|
797
922
|
* The `process.getgid()` method returns the numerical group identity of the
|
|
798
923
|
* process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).)
|
|
@@ -1585,11 +1710,11 @@ declare module "process" {
|
|
|
1585
1710
|
*/
|
|
1586
1711
|
allowedNodeEnvironmentFlags: ReadonlySet<string>;
|
|
1587
1712
|
/**
|
|
1588
|
-
* `process.report` is an object whose methods are used to generate diagnostic
|
|
1589
|
-
*
|
|
1713
|
+
* `process.report` is an object whose methods are used to generate diagnostic reports for the current process.
|
|
1714
|
+
* Additional documentation is available in the [report documentation](https://nodejs.org/docs/latest-v20.x/api/report.html).
|
|
1590
1715
|
* @since v11.8.0
|
|
1591
1716
|
*/
|
|
1592
|
-
report
|
|
1717
|
+
report: ProcessReport;
|
|
1593
1718
|
/**
|
|
1594
1719
|
* ```js
|
|
1595
1720
|
* import { resourceUsage } from 'node:process';
|
|
@@ -115,7 +115,7 @@ declare module "readline/promises" {
|
|
|
115
115
|
* The `readlinePromises.createInterface()` method creates a new `readlinePromises.Interface` instance.
|
|
116
116
|
*
|
|
117
117
|
* ```js
|
|
118
|
-
*
|
|
118
|
+
* import readlinePromises from 'node:readline/promises';
|
|
119
119
|
* const rl = readlinePromises.createInterface({
|
|
120
120
|
* input: process.stdin,
|
|
121
121
|
* output: process.stdout,
|
|
@@ -304,7 +304,7 @@ declare module "readline" {
|
|
|
304
304
|
prependOnceListener(event: "SIGINT", listener: () => void): this;
|
|
305
305
|
prependOnceListener(event: "SIGTSTP", listener: () => void): this;
|
|
306
306
|
prependOnceListener(event: "history", listener: (history: string[]) => void): this;
|
|
307
|
-
[Symbol.asyncIterator]():
|
|
307
|
+
[Symbol.asyncIterator](): NodeJS.AsyncIterator<string>;
|
|
308
308
|
}
|
|
309
309
|
export type ReadLine = Interface; // type forwarded for backwards compatibility
|
|
310
310
|
export type Completer = (line: string) => CompleterResult;
|
|
@@ -342,7 +342,7 @@ declare module "readline" {
|
|
|
342
342
|
* The `readline.createInterface()` method creates a new `readline.Interface` instance.
|
|
343
343
|
*
|
|
344
344
|
* ```js
|
|
345
|
-
*
|
|
345
|
+
* import readline from 'node:readline';
|
|
346
346
|
* const rl = readline.createInterface({
|
|
347
347
|
* input: process.stdin,
|
|
348
348
|
* output: process.stdout,
|
|
@@ -398,7 +398,7 @@ declare module "readline" {
|
|
|
398
398
|
* implement a small command-line interface:
|
|
399
399
|
*
|
|
400
400
|
* ```js
|
|
401
|
-
*
|
|
401
|
+
* import readline from 'node:readline';
|
|
402
402
|
* const rl = readline.createInterface({
|
|
403
403
|
* input: process.stdin,
|
|
404
404
|
* output: process.stdout,
|
|
@@ -430,8 +430,8 @@ declare module "readline" {
|
|
|
430
430
|
* well as a `for await...of` loop:
|
|
431
431
|
*
|
|
432
432
|
* ```js
|
|
433
|
-
*
|
|
434
|
-
*
|
|
433
|
+
* import fs from 'node:fs';
|
|
434
|
+
* import readline from 'node:readline';
|
|
435
435
|
*
|
|
436
436
|
* async function processLineByLine() {
|
|
437
437
|
* const fileStream = fs.createReadStream('input.txt');
|
|
@@ -455,8 +455,8 @@ declare module "readline" {
|
|
|
455
455
|
* Alternatively, one could use the `'line'` event:
|
|
456
456
|
*
|
|
457
457
|
* ```js
|
|
458
|
-
*
|
|
459
|
-
*
|
|
458
|
+
* import fs from 'node:fs';
|
|
459
|
+
* import readline from 'node:readline';
|
|
460
460
|
*
|
|
461
461
|
* const rl = readline.createInterface({
|
|
462
462
|
* input: fs.createReadStream('sample.txt'),
|
|
@@ -471,9 +471,9 @@ declare module "readline" {
|
|
|
471
471
|
* Currently, `for await...of` loop can be a bit slower. If `async` / `await` flow and speed are both essential, a mixed approach can be applied:
|
|
472
472
|
*
|
|
473
473
|
* ```js
|
|
474
|
-
*
|
|
475
|
-
*
|
|
476
|
-
*
|
|
474
|
+
* import { once } from 'node:events';
|
|
475
|
+
* import { createReadStream } from 'node:fs';
|
|
476
|
+
* import { createInterface } from 'node:readline';
|
|
477
477
|
*
|
|
478
478
|
* (async function processLineByLine() {
|
|
479
479
|
* try {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* applications. It can be accessed using:
|
|
5
5
|
*
|
|
6
6
|
* ```js
|
|
7
|
-
*
|
|
7
|
+
* import repl from 'node:repl';
|
|
8
8
|
* ```
|
|
9
9
|
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/repl.js)
|
|
10
10
|
*/
|
|
@@ -130,7 +130,7 @@ declare module "repl" {
|
|
|
130
130
|
* or directly using the JavaScript `new` keyword.
|
|
131
131
|
*
|
|
132
132
|
* ```js
|
|
133
|
-
*
|
|
133
|
+
* import repl from 'node:repl';
|
|
134
134
|
*
|
|
135
135
|
* const options = { useColors: true };
|
|
136
136
|
*
|
|
@@ -257,7 +257,7 @@ declare module "repl" {
|
|
|
257
257
|
* The following example shows two new commands added to the REPL instance:
|
|
258
258
|
*
|
|
259
259
|
* ```js
|
|
260
|
-
*
|
|
260
|
+
* import repl from 'node:repl';
|
|
261
261
|
*
|
|
262
262
|
* const replServer = repl.start({ prompt: '> ' });
|
|
263
263
|
* replServer.defineCommand('sayhello', {
|
|
@@ -407,7 +407,7 @@ declare module "repl" {
|
|
|
407
407
|
* If `options` is a string, then it specifies the input prompt:
|
|
408
408
|
*
|
|
409
409
|
* ```js
|
|
410
|
-
*
|
|
410
|
+
* import repl from 'node:repl';
|
|
411
411
|
*
|
|
412
412
|
* // a Unix style prompt
|
|
413
413
|
* repl.start('$ ');
|