@karmaniverous/get-dotenv 7.0.1 → 7.0.3
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/chunks/{AwsRestJsonProtocol-DeiE3wkO.mjs → AwsRestJsonProtocol-fgUvbh0C.mjs} +158 -81
- package/dist/chunks/{createCli-B9-MIwWj.mjs → createCli-B9De0dbB.mjs} +5 -5
- package/dist/chunks/{externalDataInterceptor-gi2RH4ez.mjs → externalDataInterceptor-m2kSL8CB.mjs} +2 -2
- package/dist/chunks/{getSSOTokenFromFile-BfAhZf_d.mjs → getSSOTokenFromFile-Vx7XHoYM.mjs} +4 -4
- package/dist/chunks/{index-CMSCF_uw.mjs → index-BdwUJ997.mjs} +494 -255
- package/dist/chunks/{index-mPj0Vhpw.mjs → index-BupFFAuS.mjs} +14 -16
- package/dist/chunks/{index-xRi3oKvY.mjs → index-C2z1IV4R.mjs} +11 -13
- package/dist/chunks/{index-CAtxK29A.mjs → index-CcxIt23B.mjs} +12 -9
- package/dist/chunks/{index-DfvhftMN.mjs → index-D1FUmkpH.mjs} +30 -29
- package/dist/chunks/{index-C21RHLO4.mjs → index-D8mqch7I.mjs} +34 -19
- package/dist/chunks/{index-D8S1lJ24.mjs → index-DavD95qI.mjs} +272 -182
- package/dist/chunks/{index-AssUn9IY.mjs → index-DbDfog26.mjs} +11158 -8060
- package/dist/chunks/index-DmR_hk_x.mjs +31 -0
- package/dist/chunks/{index-DY7wYcXW.mjs → index-R829pajs.mjs} +15 -18
- package/dist/chunks/{index-98yxYe1W.mjs → index-ScWmGA41.mjs} +282 -206
- package/dist/chunks/{index-B6r8O7PJ.mjs → index-UolIX-qt.mjs} +15 -18
- package/dist/chunks/{index-Ccay5Db0.mjs → index-WAaC3U5P.mjs} +17 -20
- package/dist/chunks/{loadSso-C-y9gQEz.mjs → loadSso-BZQzknAq.mjs} +243 -181
- package/dist/chunks/{loader-CE4HSRN4.mjs → loader-V1vbmtyw.mjs} +2 -0
- package/dist/chunks/{package-DiDNabNr.mjs → package-DbbYaehr.mjs} +1 -1
- package/dist/chunks/{parseKnownFiles-KczcjlE0.mjs → parseKnownFiles-CCiikesE.mjs} +1 -1
- package/dist/chunks/{readDotenvCascade-HLU7FsEQ.mjs → readDotenvCascade-Dgx4SC1p.mjs} +3 -7
- package/dist/chunks/{readMergedOptions-D6niy_Ep.mjs → readMergedOptions-BRLqvCpt.mjs} +37 -10
- package/dist/chunks/{resolveCliOptions-PWF1aEM9.mjs → resolveCliOptions-Bbv0tNSF.mjs} +1 -1
- package/dist/chunks/{sdk-stream-mixin-blFikF4G.mjs → sdk-stream-mixin-pKJE9QhL.mjs} +145 -5
- package/dist/chunks/{spawnEnv-5kdIVv0x.mjs → spawnEnv-CKgnHGpr.mjs} +5 -5
- package/dist/chunks/{types-Bp3u5-IH.mjs → types-BfKw9R-k.mjs} +1 -1
- package/dist/cli.d.ts +4 -0
- package/dist/cli.mjs +13 -15
- package/dist/cliHost.d.ts +4 -0
- package/dist/cliHost.mjs +6 -6
- package/dist/config.d.ts +2 -0
- package/dist/config.mjs +1 -1
- package/dist/env-overlay.d.ts +2 -0
- package/dist/env-overlay.mjs +2 -2
- package/dist/getdotenv.cli.mjs +13 -15
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +17 -19
- package/dist/plugins-aws.d.ts +2 -0
- package/dist/plugins-aws.mjs +4 -4
- package/dist/plugins-batch.d.ts +2 -0
- package/dist/plugins-batch.mjs +4 -4
- package/dist/plugins-cmd.d.ts +2 -0
- package/dist/plugins-cmd.mjs +6 -6
- package/dist/plugins-init.d.ts +2 -0
- package/dist/plugins-init.mjs +5 -5
- package/dist/plugins.d.ts +2 -0
- package/dist/plugins.mjs +12 -14
- package/package.json +1 -1
- package/dist/chunks/index-DtdHVcXz.mjs +0 -27
package/dist/plugins-aws.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ type DotenvProvenance = Record<string, DotenvProvenanceEntry[]>;
|
|
|
144
144
|
*/
|
|
145
145
|
declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
146
146
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
147
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
147
148
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
148
149
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
149
150
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -195,6 +196,7 @@ declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
|
195
196
|
*/
|
|
196
197
|
declare const getDotenvOptionsSchemaResolved: z.ZodObject<{
|
|
197
198
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
199
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
198
200
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
199
201
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
200
202
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/plugins-aws.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as readMergedOptions,
|
|
1
|
+
import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-BRLqvCpt.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import { isObject } from 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -10,12 +10,12 @@ import 'url';
|
|
|
10
10
|
import '@commander-js/extra-typings';
|
|
11
11
|
import 'nanoid';
|
|
12
12
|
import 'dotenv';
|
|
13
|
-
import './chunks/loader-
|
|
13
|
+
import './chunks/loader-V1vbmtyw.mjs';
|
|
14
14
|
import 'package-directory';
|
|
15
15
|
import 'yaml';
|
|
16
16
|
import { z } from 'zod';
|
|
17
|
-
import {
|
|
18
|
-
import './chunks/readDotenvCascade-
|
|
17
|
+
import { c as runCommand, d as runCommandResult, s as shouldCapture, a as resolveShell, b as buildSpawnEnv } from './chunks/spawnEnv-CKgnHGpr.mjs';
|
|
18
|
+
import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
|
|
19
19
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
20
20
|
|
|
21
21
|
/**
|
package/dist/plugins-batch.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ type DotenvProvenance = Record<string, DotenvProvenanceEntry[]>;
|
|
|
144
144
|
*/
|
|
145
145
|
declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
146
146
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
147
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
147
148
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
148
149
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
149
150
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -195,6 +196,7 @@ declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
|
195
196
|
*/
|
|
196
197
|
declare const getDotenvOptionsSchemaResolved: z.ZodObject<{
|
|
197
198
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
199
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
198
200
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
199
201
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
200
202
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/plugins-batch.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as readMergedOptions,
|
|
1
|
+
import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-BRLqvCpt.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -10,14 +10,14 @@ import 'url';
|
|
|
10
10
|
import { Command } from '@commander-js/extra-typings';
|
|
11
11
|
import 'nanoid';
|
|
12
12
|
import 'dotenv';
|
|
13
|
-
import './chunks/loader-
|
|
13
|
+
import './chunks/loader-V1vbmtyw.mjs';
|
|
14
14
|
import { packageDirectory } from 'package-directory';
|
|
15
15
|
import 'yaml';
|
|
16
16
|
import { z } from 'zod';
|
|
17
17
|
import { c as composeNestedEnv, m as maybePreserveNodeEvalArgv } from './chunks/invoke-DuRPU1oC.mjs';
|
|
18
|
-
import {
|
|
18
|
+
import { c as runCommand, b as buildSpawnEnv, a as resolveShell, r as resolveCommand } from './chunks/spawnEnv-CKgnHGpr.mjs';
|
|
19
19
|
import { globby } from 'globby';
|
|
20
|
-
import './chunks/readDotenvCascade-
|
|
20
|
+
import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
|
|
21
21
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
22
22
|
|
|
23
23
|
const globPaths = async ({ globs, logger, pkgCwd, rootPath, }) => {
|
package/dist/plugins-cmd.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ type DotenvProvenance = Record<string, DotenvProvenanceEntry[]>;
|
|
|
144
144
|
*/
|
|
145
145
|
declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
146
146
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
147
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
147
148
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
148
149
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
149
150
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -195,6 +196,7 @@ declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
|
195
196
|
*/
|
|
196
197
|
declare const getDotenvOptionsSchemaResolved: z.ZodObject<{
|
|
197
198
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
199
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
198
200
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
199
201
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
200
202
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/plugins-cmd.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'radash';
|
|
2
|
-
import './chunks/readMergedOptions-
|
|
2
|
+
import './chunks/readMergedOptions-BRLqvCpt.mjs';
|
|
3
3
|
import 'execa';
|
|
4
4
|
import 'node:buffer';
|
|
5
5
|
import 'fs-extra';
|
|
@@ -10,13 +10,13 @@ import 'url';
|
|
|
10
10
|
import '@commander-js/extra-typings';
|
|
11
11
|
import 'nanoid';
|
|
12
12
|
import 'dotenv';
|
|
13
|
-
import './chunks/loader-
|
|
13
|
+
import './chunks/loader-V1vbmtyw.mjs';
|
|
14
14
|
import 'package-directory';
|
|
15
15
|
import 'yaml';
|
|
16
16
|
import 'zod';
|
|
17
|
-
export { c as cmdPlugin } from './chunks/index-
|
|
18
|
-
import './chunks/readDotenvCascade-
|
|
17
|
+
export { c as cmdPlugin } from './chunks/index-CcxIt23B.mjs';
|
|
18
|
+
import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
|
|
19
19
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
20
|
-
import './chunks/spawnEnv-
|
|
20
|
+
import './chunks/spawnEnv-CKgnHGpr.mjs';
|
|
21
21
|
import './chunks/invoke-DuRPU1oC.mjs';
|
|
22
|
-
import './chunks/resolveCliOptions-
|
|
22
|
+
import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
|
package/dist/plugins-init.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ type DotenvProvenance = Record<string, DotenvProvenanceEntry[]>;
|
|
|
144
144
|
*/
|
|
145
145
|
declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
146
146
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
147
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
147
148
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
148
149
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
149
150
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -195,6 +196,7 @@ declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
|
195
196
|
*/
|
|
196
197
|
declare const getDotenvOptionsSchemaResolved: z.ZodObject<{
|
|
197
198
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
199
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
198
200
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
199
201
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
200
202
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/plugins-init.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as readMergedOptions,
|
|
1
|
+
import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-BRLqvCpt.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'radash';
|
|
4
4
|
import 'node:buffer';
|
|
@@ -10,14 +10,14 @@ import 'url';
|
|
|
10
10
|
import '@commander-js/extra-typings';
|
|
11
11
|
import 'nanoid';
|
|
12
12
|
import 'dotenv';
|
|
13
|
-
import './chunks/loader-
|
|
13
|
+
import './chunks/loader-V1vbmtyw.mjs';
|
|
14
14
|
import { packageDirectory } from 'package-directory';
|
|
15
15
|
import 'yaml';
|
|
16
16
|
import 'zod';
|
|
17
17
|
import { stdin, stdout } from 'node:process';
|
|
18
18
|
import { createInterface } from 'readline/promises';
|
|
19
19
|
import { fileURLToPath } from 'node:url';
|
|
20
|
-
import './chunks/readDotenvCascade-
|
|
20
|
+
import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
|
|
21
21
|
import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
|
|
22
22
|
|
|
23
23
|
/**
|
|
@@ -364,7 +364,7 @@ function attachInitDefaultAction(cli) {
|
|
|
364
364
|
* @internal
|
|
365
365
|
*/
|
|
366
366
|
function attachInitOptions(cli) {
|
|
367
|
-
return cli
|
|
367
|
+
return (cli
|
|
368
368
|
// Description is owned by the plugin index (src/plugins/init/index.ts).
|
|
369
369
|
.argument('[dest]', 'destination path (default: ./)', '.')
|
|
370
370
|
.option('--config-format <format>', 'config format: json|yaml|js|ts', 'json')
|
|
@@ -372,7 +372,7 @@ function attachInitOptions(cli) {
|
|
|
372
372
|
.option('--dynamic', 'include dynamic examples (JS/TS configs)')
|
|
373
373
|
.option('--cli-name <string>', 'CLI name for skeleton and tokens')
|
|
374
374
|
.option('--force', 'overwrite all existing files')
|
|
375
|
-
.option('--yes', 'skip all collisions (no overwrite)');
|
|
375
|
+
.option('--yes', 'skip all collisions (no overwrite)'));
|
|
376
376
|
}
|
|
377
377
|
|
|
378
378
|
/**
|
package/dist/plugins.d.ts
CHANGED
|
@@ -144,6 +144,7 @@ type DotenvProvenance = Record<string, DotenvProvenanceEntry[]>;
|
|
|
144
144
|
*/
|
|
145
145
|
declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
146
146
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
147
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
147
148
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
148
149
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
149
150
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
@@ -195,6 +196,7 @@ declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
|
|
|
195
196
|
*/
|
|
196
197
|
declare const getDotenvOptionsSchemaResolved: z.ZodObject<{
|
|
197
198
|
defaultEnv: z.ZodOptional<z.ZodString>;
|
|
199
|
+
defaultEnvKey: z.ZodOptional<z.ZodString>;
|
|
198
200
|
dotenvToken: z.ZodOptional<z.ZodString>;
|
|
199
201
|
dynamicPath: z.ZodOptional<z.ZodString>;
|
|
200
202
|
dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
package/dist/plugins.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export { awsPlugin, getAwsRegion } from './plugins-aws.mjs';
|
|
2
|
-
export {
|
|
2
|
+
export { R as awsWhoamiPlugin } from './chunks/index-DbDfog26.mjs';
|
|
3
3
|
export { batchPlugin } from './plugins-batch.mjs';
|
|
4
|
-
export { c as cmdPlugin } from './chunks/index-
|
|
4
|
+
export { c as cmdPlugin } from './chunks/index-CcxIt23B.mjs';
|
|
5
5
|
export { initPlugin } from './plugins-init.mjs';
|
|
6
|
-
import './chunks/readMergedOptions-
|
|
6
|
+
import './chunks/readMergedOptions-BRLqvCpt.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@commander-js/extra-typings';
|
|
9
|
-
import './chunks/readDotenvCascade-
|
|
9
|
+
import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
|
|
10
10
|
import 'fs-extra';
|
|
11
11
|
import 'radash';
|
|
12
12
|
import 'node:buffer';
|
|
@@ -17,22 +17,20 @@ import 'path';
|
|
|
17
17
|
import 'url';
|
|
18
18
|
import 'dotenv';
|
|
19
19
|
import 'nanoid';
|
|
20
|
-
import './chunks/loader-
|
|
20
|
+
import './chunks/loader-V1vbmtyw.mjs';
|
|
21
21
|
import 'package-directory';
|
|
22
22
|
import 'yaml';
|
|
23
23
|
import 'execa';
|
|
24
|
-
import './chunks/spawnEnv-
|
|
25
|
-
import '
|
|
26
|
-
import 'os';
|
|
24
|
+
import './chunks/spawnEnv-CKgnHGpr.mjs';
|
|
25
|
+
import 'node:os';
|
|
27
26
|
import 'node:fs/promises';
|
|
28
|
-
import '
|
|
29
|
-
import '
|
|
30
|
-
import 'stream';
|
|
31
|
-
import 'process';
|
|
27
|
+
import 'node:stream';
|
|
28
|
+
import 'node:crypto';
|
|
32
29
|
import 'node:fs';
|
|
30
|
+
import 'node:https';
|
|
31
|
+
import 'node:process';
|
|
33
32
|
import './chunks/invoke-DuRPU1oC.mjs';
|
|
34
33
|
import 'globby';
|
|
35
|
-
import './chunks/resolveCliOptions-
|
|
36
|
-
import 'node:process';
|
|
34
|
+
import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
|
|
37
35
|
import 'readline/promises';
|
|
38
36
|
import 'node:url';
|
package/package.json
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export { f as ENV_ACCOUNT_ID, e as ENV_CREDENTIAL_SCOPE, d as ENV_EXPIRATION, E as ENV_KEY, b as ENV_SECRET, c as ENV_SESSION, g as fromEnv } from './index-AssUn9IY.mjs';
|
|
2
|
-
import './readMergedOptions-D6niy_Ep.mjs';
|
|
3
|
-
import 'zod';
|
|
4
|
-
import '@commander-js/extra-typings';
|
|
5
|
-
import './readDotenvCascade-HLU7FsEQ.mjs';
|
|
6
|
-
import 'fs-extra';
|
|
7
|
-
import 'radash';
|
|
8
|
-
import 'node:buffer';
|
|
9
|
-
import 'node:path';
|
|
10
|
-
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
11
|
-
import 'crypto';
|
|
12
|
-
import 'path';
|
|
13
|
-
import 'url';
|
|
14
|
-
import 'dotenv';
|
|
15
|
-
import 'nanoid';
|
|
16
|
-
import './loader-CE4HSRN4.mjs';
|
|
17
|
-
import 'package-directory';
|
|
18
|
-
import 'yaml';
|
|
19
|
-
import 'execa';
|
|
20
|
-
import 'buffer';
|
|
21
|
-
import 'os';
|
|
22
|
-
import 'node:fs/promises';
|
|
23
|
-
import 'http';
|
|
24
|
-
import 'https';
|
|
25
|
-
import 'stream';
|
|
26
|
-
import 'process';
|
|
27
|
-
import 'node:fs';
|