@emulsify/cli 2.1.1 → 2.2.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/README.md +43 -264
- package/dist/handlers/init.js +13 -5
- package/dist/handlers/systemInstall.js +77 -4
- package/dist/index.js +99 -21
- package/dist/node_modules/.package-lock.json +11 -11
- package/dist/node_modules/@types/node/README.md +1 -1
- package/dist/node_modules/@types/node/assert/strict.d.ts +10 -1
- package/dist/node_modules/@types/node/assert.d.ts +144 -17
- package/dist/node_modules/@types/node/async_hooks.d.ts +9 -9
- package/dist/node_modules/@types/node/buffer.d.ts +0 -5
- package/dist/node_modules/@types/node/child_process.d.ts +17 -21
- package/dist/node_modules/@types/node/cluster.d.ts +13 -13
- package/dist/node_modules/@types/node/console.d.ts +1 -1
- package/dist/node_modules/@types/node/crypto.d.ts +454 -571
- package/dist/node_modules/@types/node/diagnostics_channel.d.ts +20 -9
- package/dist/node_modules/@types/node/dns.d.ts +14 -14
- package/dist/node_modules/@types/node/events.d.ts +3 -3
- package/dist/node_modules/@types/node/fs/promises.d.ts +4 -4
- package/dist/node_modules/@types/node/fs.d.ts +3 -12
- package/dist/node_modules/@types/node/globals.d.ts +4 -4
- package/dist/node_modules/@types/node/http.d.ts +5 -5
- package/dist/node_modules/@types/node/http2.d.ts +1 -1
- package/dist/node_modules/@types/node/index.d.ts +0 -3
- package/dist/node_modules/@types/node/inspector.d.ts +1 -1
- package/dist/node_modules/@types/node/module.d.ts +16 -45
- package/dist/node_modules/@types/node/net.d.ts +1 -1
- package/dist/node_modules/@types/node/os.d.ts +2 -2
- package/dist/node_modules/@types/node/package.json +4 -4
- package/dist/node_modules/@types/node/perf_hooks.d.ts +1 -9
- package/dist/node_modules/@types/node/process.d.ts +11 -11
- package/dist/node_modules/@types/node/readline.d.ts +12 -11
- package/dist/node_modules/@types/node/repl.d.ts +10 -10
- package/dist/node_modules/@types/node/sqlite.d.ts +1 -1
- package/dist/node_modules/@types/node/stream/promises.d.ts +2 -2
- package/dist/node_modules/@types/node/stream/web.d.ts +1 -1
- package/dist/node_modules/@types/node/stream.d.ts +5 -5
- package/dist/node_modules/@types/node/test/reporters.d.ts +1 -1
- package/dist/node_modules/@types/node/test.d.ts +8 -8
- package/dist/node_modules/@types/node/tls.d.ts +1 -1
- package/dist/node_modules/@types/node/ts5.6/index.d.ts +1 -4
- package/dist/node_modules/@types/node/ts5.7/index.d.ts +0 -3
- package/dist/node_modules/@types/node/url.d.ts +3 -3
- package/dist/node_modules/@types/node/util/types.d.ts +1 -1
- package/dist/node_modules/@types/node/util.d.ts +3 -20
- package/dist/node_modules/@types/node/v8.d.ts +1 -1
- package/dist/node_modules/@types/node/vm.d.ts +9 -9
- package/dist/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
- package/dist/node_modules/@types/node/worker_threads.d.ts +2 -5
- package/dist/node_modules/@types/node/zlib.d.ts +3 -3
- package/dist/node_modules/chardet/README.md +15 -1
- package/dist/node_modules/chardet/lib/encoding/sbcs.d.ts +19 -0
- package/dist/node_modules/chardet/lib/encoding/sbcs.js +172 -1
- package/dist/node_modules/chardet/lib/encoding/sbcs.js.map +1 -1
- package/dist/node_modules/chardet/lib/index.js +3 -0
- package/dist/node_modules/chardet/lib/index.js.map +1 -1
- package/dist/node_modules/chardet/lib/match.d.ts +1 -1
- package/dist/node_modules/chardet/lib/match.js.map +1 -1
- package/dist/node_modules/chardet/package.json +14 -10
- package/dist/node_modules/undici-types/agent.d.ts +0 -2
- package/dist/node_modules/undici-types/client.d.ts +25 -19
- package/dist/node_modules/undici-types/dispatcher.d.ts +7 -33
- package/dist/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
- package/dist/node_modules/undici-types/fetch.d.ts +24 -4
- package/dist/node_modules/undici-types/h2c-client.d.ts +6 -6
- package/dist/node_modules/undici-types/handlers.d.ts +1 -2
- package/dist/node_modules/undici-types/header.d.ts +5 -0
- package/dist/node_modules/undici-types/index.d.ts +3 -1
- package/dist/node_modules/undici-types/interceptors.d.ts +1 -1
- package/dist/node_modules/undici-types/package.json +1 -1
- package/dist/node_modules/undici-types/pool.d.ts +0 -2
- package/dist/node_modules/undici-types/proxy-agent.d.ts +2 -2
- package/dist/node_modules/undici-types/round-robin-pool.d.ts +0 -2
- package/dist/node_modules/undici-types/snapshot-agent.d.ts +4 -0
- package/dist/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
- package/dist/node_modules/undici-types/webidl.d.ts +0 -1
- package/dist/package-lock.json +37 -37
- package/dist/package.json +2 -2
- package/dist/util/platform/getInitSuccessMessageForPlatform.js +30 -25
- package/package.json +2 -2
- package/dist/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
|
@@ -404,7 +404,7 @@ declare module "node:child_process" {
|
|
|
404
404
|
* as the connection may have been closed during the time it takes to send the
|
|
405
405
|
* connection to the child.
|
|
406
406
|
* @since v0.5.9
|
|
407
|
-
* @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-
|
|
407
|
+
* @param sendHandle `undefined`, or a [`net.Socket`](https://nodejs.org/docs/latest-v26.x/api/net.html#class-netsocket), [`net.Server`](https://nodejs.org/docs/latest-v26.x/api/net.html#class-netserver), or [`dgram.Socket`](https://nodejs.org/docs/latest-v26.x/api/dgram.html#class-dgramsocket) object.
|
|
408
408
|
* @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties:
|
|
409
409
|
*/
|
|
410
410
|
send(message: Serializable, callback?: (error: Error | null) => void): boolean;
|
|
@@ -787,16 +787,15 @@ declare module "node:child_process" {
|
|
|
787
787
|
encoding?: BufferEncoding | undefined;
|
|
788
788
|
}
|
|
789
789
|
interface ExecOptionsWithBufferEncoding extends ExecOptions {
|
|
790
|
-
encoding: "buffer" | null;
|
|
790
|
+
encoding: "buffer" | null;
|
|
791
791
|
}
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
792
|
+
interface ExecException extends Omit<NodeJS.ErrnoException, "code"> {
|
|
793
|
+
cmd: string;
|
|
794
|
+
code?: number | string;
|
|
795
795
|
killed?: boolean;
|
|
796
|
-
code?: number;
|
|
797
796
|
signal?: NodeJS.Signals;
|
|
798
|
-
stdout?: string;
|
|
799
|
-
stderr?: string;
|
|
797
|
+
stdout?: string | NonSharedBuffer;
|
|
798
|
+
stderr?: string | NonSharedBuffer;
|
|
800
799
|
}
|
|
801
800
|
/**
|
|
802
801
|
* Spawns a shell then executes the `command` within that shell, buffering any
|
|
@@ -956,11 +955,6 @@ declare module "node:child_process" {
|
|
|
956
955
|
}
|
|
957
956
|
/** @deprecated Use `ExecFileOptions` instead. */
|
|
958
957
|
interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions {}
|
|
959
|
-
// TODO: execFile exceptions can take many forms... this accurately describes none of them
|
|
960
|
-
type ExecFileException =
|
|
961
|
-
& Omit<ExecException, "code">
|
|
962
|
-
& Omit<NodeJS.ErrnoException, "code">
|
|
963
|
-
& { code?: string | number | null };
|
|
964
958
|
/**
|
|
965
959
|
* The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified
|
|
966
960
|
* executable `file` is spawned directly as a new process making it slightly more
|
|
@@ -1028,36 +1022,36 @@ declare module "node:child_process" {
|
|
|
1028
1022
|
// no `options` definitely means stdout/stderr are `string`.
|
|
1029
1023
|
function execFile(
|
|
1030
1024
|
file: string,
|
|
1031
|
-
callback?: (error:
|
|
1025
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
1032
1026
|
): ChildProcess;
|
|
1033
1027
|
function execFile(
|
|
1034
1028
|
file: string,
|
|
1035
1029
|
args: readonly string[] | undefined | null,
|
|
1036
|
-
callback?: (error:
|
|
1030
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
1037
1031
|
): ChildProcess;
|
|
1038
1032
|
// `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`.
|
|
1039
1033
|
function execFile(
|
|
1040
1034
|
file: string,
|
|
1041
1035
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1042
|
-
callback?: (error:
|
|
1036
|
+
callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void,
|
|
1043
1037
|
): ChildProcess;
|
|
1044
1038
|
function execFile(
|
|
1045
1039
|
file: string,
|
|
1046
1040
|
args: readonly string[] | undefined | null,
|
|
1047
1041
|
options: ExecFileOptionsWithBufferEncoding,
|
|
1048
|
-
callback?: (error:
|
|
1042
|
+
callback?: (error: ExecException | null, stdout: NonSharedBuffer, stderr: NonSharedBuffer) => void,
|
|
1049
1043
|
): ChildProcess;
|
|
1050
1044
|
// `options` with well-known or absent `encoding` means stdout/stderr are definitely `string`.
|
|
1051
1045
|
function execFile(
|
|
1052
1046
|
file: string,
|
|
1053
1047
|
options: ExecFileOptionsWithStringEncoding,
|
|
1054
|
-
callback?: (error:
|
|
1048
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
1055
1049
|
): ChildProcess;
|
|
1056
1050
|
function execFile(
|
|
1057
1051
|
file: string,
|
|
1058
1052
|
args: readonly string[] | undefined | null,
|
|
1059
1053
|
options: ExecFileOptionsWithStringEncoding,
|
|
1060
|
-
callback?: (error:
|
|
1054
|
+
callback?: (error: ExecException | null, stdout: string, stderr: string) => void,
|
|
1061
1055
|
): ChildProcess;
|
|
1062
1056
|
// fallback if nothing else matches. Worst case is always `string | Buffer`.
|
|
1063
1057
|
function execFile(
|
|
@@ -1065,7 +1059,7 @@ declare module "node:child_process" {
|
|
|
1065
1059
|
options: ExecFileOptions | undefined | null,
|
|
1066
1060
|
callback:
|
|
1067
1061
|
| ((
|
|
1068
|
-
error:
|
|
1062
|
+
error: ExecException | null,
|
|
1069
1063
|
stdout: string | NonSharedBuffer,
|
|
1070
1064
|
stderr: string | NonSharedBuffer,
|
|
1071
1065
|
) => void)
|
|
@@ -1078,7 +1072,7 @@ declare module "node:child_process" {
|
|
|
1078
1072
|
options: ExecFileOptions | undefined | null,
|
|
1079
1073
|
callback:
|
|
1080
1074
|
| ((
|
|
1081
|
-
error:
|
|
1075
|
+
error: ExecException | null,
|
|
1082
1076
|
stdout: string | NonSharedBuffer,
|
|
1083
1077
|
stderr: string | NonSharedBuffer,
|
|
1084
1078
|
) => void)
|
|
@@ -1360,6 +1354,8 @@ declare module "node:child_process" {
|
|
|
1360
1354
|
args?: readonly string[],
|
|
1361
1355
|
options?: ExecFileSyncOptions,
|
|
1362
1356
|
): string | NonSharedBuffer;
|
|
1357
|
+
/** @deprecated This deprecated alias will be removed in a future version. Use `ExecException` instead. */
|
|
1358
|
+
interface ExecFileException extends ExecException {}
|
|
1363
1359
|
}
|
|
1364
1360
|
declare module "child_process" {
|
|
1365
1361
|
export * from "node:child_process";
|
|
@@ -11,10 +11,10 @@ declare module "node:cluster" {
|
|
|
11
11
|
*/
|
|
12
12
|
id: number;
|
|
13
13
|
/**
|
|
14
|
-
* All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-
|
|
14
|
+
* All workers are created using [`child_process.fork()`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#child_processforkmodulepath-args-options), the returned object
|
|
15
15
|
* from this function is stored as `.process`. In a worker, the global `process` is stored.
|
|
16
16
|
*
|
|
17
|
-
* See: [Child Process module](https://nodejs.org/docs/latest-
|
|
17
|
+
* See: [Child Process module](https://nodejs.org/docs/latest-v26.x/api/child_process.html#child_processforkmodulepath-args-options).
|
|
18
18
|
*
|
|
19
19
|
* Workers will call `process.exit(0)` if the `'disconnect'` event occurs
|
|
20
20
|
* on `process` and `.exitedAfterDisconnect` is not `true`. This protects against
|
|
@@ -25,7 +25,7 @@ declare module "node:cluster" {
|
|
|
25
25
|
/**
|
|
26
26
|
* Send a message to a worker or primary, optionally with a handle.
|
|
27
27
|
*
|
|
28
|
-
* In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-
|
|
28
|
+
* In the primary, this sends a message to a specific worker. It is identical to [`ChildProcess.send()`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#subprocesssendmessage-sendhandle-options-callback).
|
|
29
29
|
*
|
|
30
30
|
* In a worker, this sends a message to the primary. It is identical to `process.send()`.
|
|
31
31
|
*
|
|
@@ -67,7 +67,7 @@ declare module "node:cluster" {
|
|
|
67
67
|
* This method is aliased as `worker.destroy()` for backwards compatibility.
|
|
68
68
|
*
|
|
69
69
|
* In a worker, `process.kill()` exists, but it is not this function;
|
|
70
|
-
* it is [`kill()`](https://nodejs.org/docs/latest-
|
|
70
|
+
* it is [`kill()`](https://nodejs.org/docs/latest-v26.x/api/process.html#processkillpid-signal).
|
|
71
71
|
* @since v0.9.12
|
|
72
72
|
* @param [signal='SIGTERM'] Name of the kill signal to send to the worker process.
|
|
73
73
|
*/
|
|
@@ -245,8 +245,8 @@ declare module "node:cluster" {
|
|
|
245
245
|
silent?: boolean | undefined;
|
|
246
246
|
/**
|
|
247
247
|
* Configures the stdio of forked processes. Because the cluster module relies on IPC to function, this configuration must
|
|
248
|
-
* contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-
|
|
249
|
-
* [`stdio`](https://nodejs.org/docs/latest-
|
|
248
|
+
* contain an `'ipc'` entry. When this option is provided, it overrides `silent`. See [`child_prcess.spawn()`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#child_processspawncommand-args-options)'s
|
|
249
|
+
* [`stdio`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#optionsstdio).
|
|
250
250
|
*/
|
|
251
251
|
stdio?: any[] | undefined;
|
|
252
252
|
/**
|
|
@@ -264,7 +264,7 @@ declare module "node:cluster" {
|
|
|
264
264
|
inspectPort?: number | (() => number) | undefined;
|
|
265
265
|
/**
|
|
266
266
|
* Specify the kind of serialization used for sending messages between processes. Possible values are `'json'` and `'advanced'`.
|
|
267
|
-
* See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-
|
|
267
|
+
* See [Advanced serialization for `child_process`](https://nodejs.org/docs/latest-v26.x/api/child_process.html#advanced-serialization) for more details.
|
|
268
268
|
* @default false
|
|
269
269
|
*/
|
|
270
270
|
serialization?: "json" | "advanced" | undefined;
|
|
@@ -333,7 +333,7 @@ declare module "node:cluster" {
|
|
|
333
333
|
readonly isWorker: boolean;
|
|
334
334
|
/**
|
|
335
335
|
* The scheduling policy, either `cluster.SCHED_RR` for round-robin or `cluster.SCHED_NONE` to leave it to the operating system. This is a
|
|
336
|
-
* global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
336
|
+
* global setting and effectively frozen once either the first worker is spawned, or [`.setupPrimary()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clustersetupprimarysettings)
|
|
337
337
|
* is called, whichever comes first.
|
|
338
338
|
*
|
|
339
339
|
* `SCHED_RR` is the default on all operating systems except Windows. Windows will change to `SCHED_RR` once libuv is able to effectively distribute
|
|
@@ -344,24 +344,24 @@ declare module "node:cluster" {
|
|
|
344
344
|
*/
|
|
345
345
|
schedulingPolicy: number;
|
|
346
346
|
/**
|
|
347
|
-
* After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
348
|
-
* (or [`.fork()`](https://nodejs.org/docs/latest-
|
|
347
|
+
* After calling [`.setupPrimary()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clustersetupprimarysettings)
|
|
348
|
+
* (or [`.fork()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clusterforkenv)) this settings object will contain
|
|
349
349
|
* the settings, including the default values.
|
|
350
350
|
*
|
|
351
351
|
* This object is not intended to be changed or set manually.
|
|
352
352
|
* @since v0.7.1
|
|
353
353
|
*/
|
|
354
354
|
readonly settings: ClusterSettings;
|
|
355
|
-
/** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-
|
|
355
|
+
/** @deprecated since v16.0.0 - use [`.setupPrimary()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clustersetupprimarysettings) instead. */
|
|
356
356
|
setupMaster(settings?: ClusterSettings): void;
|
|
357
357
|
/**
|
|
358
358
|
* `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in `cluster.settings`.
|
|
359
359
|
*
|
|
360
|
-
* Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-
|
|
360
|
+
* Any settings changes only affect future calls to [`.fork()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clusterforkenv)
|
|
361
361
|
* and have no effect on workers that are already running.
|
|
362
362
|
*
|
|
363
363
|
* The only attribute of a worker that cannot be set via `.setupPrimary()` is the `env` passed to
|
|
364
|
-
* [`.fork()`](https://nodejs.org/docs/latest-
|
|
364
|
+
* [`.fork()`](https://nodejs.org/docs/latest-v26.x/api/cluster.html#clusterforkenv).
|
|
365
365
|
*
|
|
366
366
|
* The defaults above apply to the first call only; the defaults for later calls are the current values at the time of
|
|
367
367
|
* `cluster.setupPrimary()` is called.
|
|
@@ -19,7 +19,7 @@ declare module "node:console" {
|
|
|
19
19
|
colorMode?: boolean | "auto" | undefined;
|
|
20
20
|
/**
|
|
21
21
|
* Specifies options that are passed along to
|
|
22
|
-
* [`util.inspect()`](https://nodejs.org/docs/latest-
|
|
22
|
+
* [`util.inspect()`](https://nodejs.org/docs/latest-v26.x/api/util.html#utilinspectobject-options).
|
|
23
23
|
*/
|
|
24
24
|
inspectOptions?: InspectOptions | ReadonlyMap<NodeJS.WritableStream, InspectOptions> | undefined;
|
|
25
25
|
/**
|