@karmaniverous/get-dotenv 5.2.5 → 5.2.6
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/cliHost.cjs +823 -810
- package/dist/cliHost.d.cts +83 -81
- package/dist/cliHost.d.mts +83 -81
- package/dist/cliHost.d.ts +83 -81
- package/dist/cliHost.mjs +824 -811
- package/dist/getdotenv.cli.mjs +646 -630
- package/dist/index.cjs +693 -677
- package/dist/index.d.cts +18 -39
- package/dist/index.d.mts +18 -39
- package/dist/index.d.ts +18 -39
- package/dist/index.mjs +694 -678
- package/dist/plugins-aws.d.cts +8 -78
- package/dist/plugins-aws.d.mts +8 -78
- package/dist/plugins-aws.d.ts +8 -78
- package/dist/plugins-batch.d.cts +8 -78
- package/dist/plugins-batch.d.mts +8 -78
- package/dist/plugins-batch.d.ts +8 -78
- package/dist/plugins-cmd.cjs +159 -1551
- package/dist/plugins-cmd.d.cts +8 -78
- package/dist/plugins-cmd.d.mts +8 -78
- package/dist/plugins-cmd.d.ts +8 -78
- package/dist/plugins-cmd.mjs +160 -1551
- package/dist/plugins-demo.d.cts +8 -78
- package/dist/plugins-demo.d.mts +8 -78
- package/dist/plugins-demo.d.ts +8 -78
- package/dist/plugins-init.d.cts +8 -78
- package/dist/plugins-init.d.mts +8 -78
- package/dist/plugins-init.d.ts +8 -78
- package/dist/plugins.cjs +156 -1547
- package/dist/plugins.d.cts +8 -78
- package/dist/plugins.d.mts +8 -78
- package/dist/plugins.d.ts +8 -78
- package/dist/plugins.mjs +158 -1548
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
|
|
3
|
+
/** src/cliCore/spawnEnv.ts
|
|
4
|
+
* Build a sanitized environment bag for child processes.
|
|
5
|
+
*
|
|
6
|
+
* Requirements addressed:
|
|
7
|
+
* - Provide a single helper (buildSpawnEnv) to normalize/dedupe child env.
|
|
8
|
+
* - Drop undefined values (exactOptional semantics).
|
|
9
|
+
* - On Windows, dedupe keys case-insensitively and prefer the last value,
|
|
10
|
+
* preserving the latest key's casing. Ensure HOME fallback from USERPROFILE.
|
|
11
|
+
* Normalize TMP/TEMP consistency when either is present.
|
|
12
|
+
* - On POSIX, keep keys as-is; when a temp dir key is present (TMPDIR/TMP/TEMP),
|
|
13
|
+
* ensure TMPDIR exists for downstream consumers that expect it.
|
|
14
|
+
*
|
|
15
|
+
* Adapter responsibility: pure mapping; no business logic.
|
|
16
|
+
*/
|
|
17
|
+
type SpawnEnv = Readonly<Partial<Record<string, string>>>;
|
|
18
|
+
/** Build a sanitized env for child processes from base + overlay. */
|
|
19
|
+
declare const buildSpawnEnv: (base?: NodeJS.ProcessEnv, overlay?: Record<string, string | undefined>) => SpawnEnv;
|
|
20
|
+
|
|
3
21
|
/**
|
|
4
22
|
* Minimal root options shape shared by CLI and generator layers.
|
|
5
23
|
* Keep keys optional to respect exactOptionalPropertyTypes semantics.
|
|
@@ -49,45 +67,6 @@ type ScriptsTable<TShell extends string | boolean = string | boolean> = Record<s
|
|
|
49
67
|
shell?: TShell;
|
|
50
68
|
}>;
|
|
51
69
|
|
|
52
|
-
/**
|
|
53
|
-
* Adapter-layer augmentation: add chainable helpers to GetDotenvCli without
|
|
54
|
-
* coupling the core host to cliCore. Importing this module has side effects:
|
|
55
|
-
* it extends the prototype and merges types for consumers.
|
|
56
|
-
*/
|
|
57
|
-
declare module '../cliHost/GetDotenvCli' {
|
|
58
|
-
interface GetDotenvCli {
|
|
59
|
-
/**
|
|
60
|
-
* Attach legacy root flags to this CLI instance. Defaults come from
|
|
61
|
-
* baseRootOptionDefaults when none are provided. */
|
|
62
|
-
attachRootOptions(defaults?: Partial<RootOptionsShape>, opts?: {
|
|
63
|
-
includeCommandOption?: boolean;
|
|
64
|
-
}): this;
|
|
65
|
-
/**
|
|
66
|
-
* Install a preSubcommand hook that merges CLI flags (including parent
|
|
67
|
-
* round-trip) and resolves the dotenv context before executing actions.
|
|
68
|
-
* Defaults come from baseRootOptionDefaults when none are provided.
|
|
69
|
-
*/ passOptions(defaults?: Partial<RootOptionsShape>): this;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** src/cliCore/spawnEnv.ts
|
|
74
|
-
* Build a sanitized environment bag for child processes.
|
|
75
|
-
*
|
|
76
|
-
* Requirements addressed:
|
|
77
|
-
* - Provide a single helper (buildSpawnEnv) to normalize/dedupe child env.
|
|
78
|
-
* - Drop undefined values (exactOptional semantics).
|
|
79
|
-
* - On Windows, dedupe keys case-insensitively and prefer the last value,
|
|
80
|
-
* preserving the latest key's casing. Ensure HOME fallback from USERPROFILE.
|
|
81
|
-
* Normalize TMP/TEMP consistency when either is present.
|
|
82
|
-
* - On POSIX, keep keys as-is; when a temp dir key is present (TMPDIR/TMP/TEMP),
|
|
83
|
-
* ensure TMPDIR exists for downstream consumers that expect it.
|
|
84
|
-
*
|
|
85
|
-
* Adapter responsibility: pure mapping; no business logic.
|
|
86
|
-
*/
|
|
87
|
-
type SpawnEnv = Readonly<Partial<Record<string, string>>>;
|
|
88
|
-
/** Build a sanitized env for child processes from base + overlay. */
|
|
89
|
-
declare const buildSpawnEnv: (base?: NodeJS.ProcessEnv, overlay?: Record<string, string | undefined>) => SpawnEnv;
|
|
90
|
-
|
|
91
70
|
type RootOptionsShapeCompat = Omit<RootOptionsShape, 'vars' | 'paths'> & {
|
|
92
71
|
vars?: string | Record<string, string | undefined>;
|
|
93
72
|
paths?: string | string[];
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
|
|
3
|
+
/** src/cliCore/spawnEnv.ts
|
|
4
|
+
* Build a sanitized environment bag for child processes.
|
|
5
|
+
*
|
|
6
|
+
* Requirements addressed:
|
|
7
|
+
* - Provide a single helper (buildSpawnEnv) to normalize/dedupe child env.
|
|
8
|
+
* - Drop undefined values (exactOptional semantics).
|
|
9
|
+
* - On Windows, dedupe keys case-insensitively and prefer the last value,
|
|
10
|
+
* preserving the latest key's casing. Ensure HOME fallback from USERPROFILE.
|
|
11
|
+
* Normalize TMP/TEMP consistency when either is present.
|
|
12
|
+
* - On POSIX, keep keys as-is; when a temp dir key is present (TMPDIR/TMP/TEMP),
|
|
13
|
+
* ensure TMPDIR exists for downstream consumers that expect it.
|
|
14
|
+
*
|
|
15
|
+
* Adapter responsibility: pure mapping; no business logic.
|
|
16
|
+
*/
|
|
17
|
+
type SpawnEnv = Readonly<Partial<Record<string, string>>>;
|
|
18
|
+
/** Build a sanitized env for child processes from base + overlay. */
|
|
19
|
+
declare const buildSpawnEnv: (base?: NodeJS.ProcessEnv, overlay?: Record<string, string | undefined>) => SpawnEnv;
|
|
20
|
+
|
|
3
21
|
/**
|
|
4
22
|
* Minimal root options shape shared by CLI and generator layers.
|
|
5
23
|
* Keep keys optional to respect exactOptionalPropertyTypes semantics.
|
|
@@ -49,45 +67,6 @@ type ScriptsTable<TShell extends string | boolean = string | boolean> = Record<s
|
|
|
49
67
|
shell?: TShell;
|
|
50
68
|
}>;
|
|
51
69
|
|
|
52
|
-
/**
|
|
53
|
-
* Adapter-layer augmentation: add chainable helpers to GetDotenvCli without
|
|
54
|
-
* coupling the core host to cliCore. Importing this module has side effects:
|
|
55
|
-
* it extends the prototype and merges types for consumers.
|
|
56
|
-
*/
|
|
57
|
-
declare module '../cliHost/GetDotenvCli' {
|
|
58
|
-
interface GetDotenvCli {
|
|
59
|
-
/**
|
|
60
|
-
* Attach legacy root flags to this CLI instance. Defaults come from
|
|
61
|
-
* baseRootOptionDefaults when none are provided. */
|
|
62
|
-
attachRootOptions(defaults?: Partial<RootOptionsShape>, opts?: {
|
|
63
|
-
includeCommandOption?: boolean;
|
|
64
|
-
}): this;
|
|
65
|
-
/**
|
|
66
|
-
* Install a preSubcommand hook that merges CLI flags (including parent
|
|
67
|
-
* round-trip) and resolves the dotenv context before executing actions.
|
|
68
|
-
* Defaults come from baseRootOptionDefaults when none are provided.
|
|
69
|
-
*/ passOptions(defaults?: Partial<RootOptionsShape>): this;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** src/cliCore/spawnEnv.ts
|
|
74
|
-
* Build a sanitized environment bag for child processes.
|
|
75
|
-
*
|
|
76
|
-
* Requirements addressed:
|
|
77
|
-
* - Provide a single helper (buildSpawnEnv) to normalize/dedupe child env.
|
|
78
|
-
* - Drop undefined values (exactOptional semantics).
|
|
79
|
-
* - On Windows, dedupe keys case-insensitively and prefer the last value,
|
|
80
|
-
* preserving the latest key's casing. Ensure HOME fallback from USERPROFILE.
|
|
81
|
-
* Normalize TMP/TEMP consistency when either is present.
|
|
82
|
-
* - On POSIX, keep keys as-is; when a temp dir key is present (TMPDIR/TMP/TEMP),
|
|
83
|
-
* ensure TMPDIR exists for downstream consumers that expect it.
|
|
84
|
-
*
|
|
85
|
-
* Adapter responsibility: pure mapping; no business logic.
|
|
86
|
-
*/
|
|
87
|
-
type SpawnEnv = Readonly<Partial<Record<string, string>>>;
|
|
88
|
-
/** Build a sanitized env for child processes from base + overlay. */
|
|
89
|
-
declare const buildSpawnEnv: (base?: NodeJS.ProcessEnv, overlay?: Record<string, string | undefined>) => SpawnEnv;
|
|
90
|
-
|
|
91
70
|
type RootOptionsShapeCompat = Omit<RootOptionsShape, 'vars' | 'paths'> & {
|
|
92
71
|
vars?: string | Record<string, string | undefined>;
|
|
93
72
|
paths?: string | string[];
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import { Command } from 'commander';
|
|
2
2
|
|
|
3
|
+
/** src/cliCore/spawnEnv.ts
|
|
4
|
+
* Build a sanitized environment bag for child processes.
|
|
5
|
+
*
|
|
6
|
+
* Requirements addressed:
|
|
7
|
+
* - Provide a single helper (buildSpawnEnv) to normalize/dedupe child env.
|
|
8
|
+
* - Drop undefined values (exactOptional semantics).
|
|
9
|
+
* - On Windows, dedupe keys case-insensitively and prefer the last value,
|
|
10
|
+
* preserving the latest key's casing. Ensure HOME fallback from USERPROFILE.
|
|
11
|
+
* Normalize TMP/TEMP consistency when either is present.
|
|
12
|
+
* - On POSIX, keep keys as-is; when a temp dir key is present (TMPDIR/TMP/TEMP),
|
|
13
|
+
* ensure TMPDIR exists for downstream consumers that expect it.
|
|
14
|
+
*
|
|
15
|
+
* Adapter responsibility: pure mapping; no business logic.
|
|
16
|
+
*/
|
|
17
|
+
type SpawnEnv = Readonly<Partial<Record<string, string>>>;
|
|
18
|
+
/** Build a sanitized env for child processes from base + overlay. */
|
|
19
|
+
declare const buildSpawnEnv: (base?: NodeJS.ProcessEnv, overlay?: Record<string, string | undefined>) => SpawnEnv;
|
|
20
|
+
|
|
3
21
|
/**
|
|
4
22
|
* Minimal root options shape shared by CLI and generator layers.
|
|
5
23
|
* Keep keys optional to respect exactOptionalPropertyTypes semantics.
|
|
@@ -49,45 +67,6 @@ type ScriptsTable<TShell extends string | boolean = string | boolean> = Record<s
|
|
|
49
67
|
shell?: TShell;
|
|
50
68
|
}>;
|
|
51
69
|
|
|
52
|
-
/**
|
|
53
|
-
* Adapter-layer augmentation: add chainable helpers to GetDotenvCli without
|
|
54
|
-
* coupling the core host to cliCore. Importing this module has side effects:
|
|
55
|
-
* it extends the prototype and merges types for consumers.
|
|
56
|
-
*/
|
|
57
|
-
declare module '../cliHost/GetDotenvCli' {
|
|
58
|
-
interface GetDotenvCli {
|
|
59
|
-
/**
|
|
60
|
-
* Attach legacy root flags to this CLI instance. Defaults come from
|
|
61
|
-
* baseRootOptionDefaults when none are provided. */
|
|
62
|
-
attachRootOptions(defaults?: Partial<RootOptionsShape>, opts?: {
|
|
63
|
-
includeCommandOption?: boolean;
|
|
64
|
-
}): this;
|
|
65
|
-
/**
|
|
66
|
-
* Install a preSubcommand hook that merges CLI flags (including parent
|
|
67
|
-
* round-trip) and resolves the dotenv context before executing actions.
|
|
68
|
-
* Defaults come from baseRootOptionDefaults when none are provided.
|
|
69
|
-
*/ passOptions(defaults?: Partial<RootOptionsShape>): this;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/** src/cliCore/spawnEnv.ts
|
|
74
|
-
* Build a sanitized environment bag for child processes.
|
|
75
|
-
*
|
|
76
|
-
* Requirements addressed:
|
|
77
|
-
* - Provide a single helper (buildSpawnEnv) to normalize/dedupe child env.
|
|
78
|
-
* - Drop undefined values (exactOptional semantics).
|
|
79
|
-
* - On Windows, dedupe keys case-insensitively and prefer the last value,
|
|
80
|
-
* preserving the latest key's casing. Ensure HOME fallback from USERPROFILE.
|
|
81
|
-
* Normalize TMP/TEMP consistency when either is present.
|
|
82
|
-
* - On POSIX, keep keys as-is; when a temp dir key is present (TMPDIR/TMP/TEMP),
|
|
83
|
-
* ensure TMPDIR exists for downstream consumers that expect it.
|
|
84
|
-
*
|
|
85
|
-
* Adapter responsibility: pure mapping; no business logic.
|
|
86
|
-
*/
|
|
87
|
-
type SpawnEnv = Readonly<Partial<Record<string, string>>>;
|
|
88
|
-
/** Build a sanitized env for child processes from base + overlay. */
|
|
89
|
-
declare const buildSpawnEnv: (base?: NodeJS.ProcessEnv, overlay?: Record<string, string | undefined>) => SpawnEnv;
|
|
90
|
-
|
|
91
70
|
type RootOptionsShapeCompat = Omit<RootOptionsShape, 'vars' | 'paths'> & {
|
|
92
71
|
vars?: string | Record<string, string | undefined>;
|
|
93
72
|
paths?: string | string[];
|