@emulsify/cli 1.10.2 → 1.11.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.
Files changed (37) hide show
  1. package/README.md +6 -6
  2. package/dist/node_modules/.package-lock.json +7 -7
  3. package/dist/node_modules/@types/node/README.md +1 -1
  4. package/dist/node_modules/@types/node/buffer.d.ts +12 -0
  5. package/dist/node_modules/@types/node/inspector.d.ts +1061 -111
  6. package/dist/node_modules/@types/node/package.json +3 -3
  7. package/dist/node_modules/@types/node/perf_hooks.d.ts +30 -1
  8. package/dist/node_modules/@types/node/process.d.ts +142 -17
  9. package/dist/node_modules/@types/node/test.d.ts +232 -86
  10. package/dist/node_modules/@types/node/util.d.ts +6 -0
  11. package/dist/node_modules/@types/node/zlib.d.ts +9 -0
  12. package/dist/node_modules/undici-types/LICENSE +21 -0
  13. package/dist/node_modules/undici-types/balanced-pool.d.ts +11 -0
  14. package/dist/node_modules/undici-types/client.d.ts +12 -1
  15. package/dist/node_modules/undici-types/diagnostics-channel.d.ts +1 -2
  16. package/dist/node_modules/undici-types/dispatcher.d.ts +18 -4
  17. package/dist/node_modules/undici-types/env-http-proxy-agent.d.ts +21 -0
  18. package/dist/node_modules/undici-types/errors.d.ts +21 -0
  19. package/dist/node_modules/undici-types/eventsource.d.ts +63 -0
  20. package/dist/node_modules/undici-types/fetch.d.ts +25 -25
  21. package/dist/node_modules/undici-types/formdata.d.ts +1 -1
  22. package/dist/node_modules/undici-types/handlers.d.ts +10 -4
  23. package/dist/node_modules/undici-types/index.d.ts +10 -2
  24. package/dist/node_modules/undici-types/interceptors.d.ts +12 -2
  25. package/dist/node_modules/undici-types/mock-interceptor.d.ts +4 -4
  26. package/dist/node_modules/undici-types/package.json +1 -1
  27. package/dist/node_modules/undici-types/pool.d.ts +11 -0
  28. package/dist/node_modules/undici-types/proxy-agent.d.ts +0 -2
  29. package/dist/node_modules/undici-types/readable.d.ts +2 -3
  30. package/dist/node_modules/undici-types/retry-agent.d.ts +8 -0
  31. package/dist/node_modules/undici-types/retry-handler.d.ts +116 -0
  32. package/dist/node_modules/undici-types/util.d.ts +18 -0
  33. package/dist/node_modules/undici-types/webidl.d.ts +10 -8
  34. package/dist/node_modules/undici-types/websocket.d.ts +22 -1
  35. package/dist/package-lock.json +257 -200
  36. package/dist/util/system/getAvailableSystems.js +5 -0
  37. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "20.14.13",
3
+ "version": "20.16.2",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -210,8 +210,8 @@
210
210
  },
211
211
  "scripts": {},
212
212
  "dependencies": {
213
- "undici-types": "~5.26.4"
213
+ "undici-types": "~6.19.2"
214
214
  },
215
- "typesPublisherContentHash": "4054f2892d54908808ab9c26086f864bb3573f93a46c6f30c4a553b98967f156",
215
+ "typesPublisherContentHash": "bfa190547a4fe06159207f447a2b225d7ee753bec878cab8292ade89f64f3a06",
216
216
  "typeScriptVersion": "4.8"
217
217
  }
@@ -31,7 +31,17 @@
31
31
  */
32
32
  declare module "perf_hooks" {
33
33
  import { AsyncResource } from "node:async_hooks";
34
- type EntryType = "node" | "mark" | "measure" | "gc" | "function" | "http2" | "http" | "dns" | "net";
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',
@@ -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`
@@ -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 JSON-formatted diagnostic report for the running process.
227
- * The report's JavaScript stack trace is taken from err, if present.
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): string;
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, if present.
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 error A custom error used for reporting the JavaScript stack.
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
- * reports for the current process. Additional documentation is available in the `report documentation`.
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?: ProcessReport | undefined;
1717
+ report: ProcessReport;
1593
1718
  /**
1594
1719
  * ```js
1595
1720
  * import { resourceUsage } from 'node:process';