@karmaniverous/get-dotenv 7.0.1 → 7.0.2

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 (38) hide show
  1. package/dist/chunks/{AwsRestJsonProtocol-DeiE3wkO.mjs → AwsRestJsonProtocol-Bh3OvjNM.mjs} +158 -81
  2. package/dist/chunks/{createCli-B9-MIwWj.mjs → createCli-wmAcTdWR.mjs} +4 -4
  3. package/dist/chunks/{externalDataInterceptor-gi2RH4ez.mjs → externalDataInterceptor-BBvsYwZE.mjs} +2 -2
  4. package/dist/chunks/{getSSOTokenFromFile-BfAhZf_d.mjs → getSSOTokenFromFile-BSeYpbLi.mjs} +4 -4
  5. package/dist/chunks/{index-98yxYe1W.mjs → index-BZrYAvLs.mjs} +281 -205
  6. package/dist/chunks/{index-CAtxK29A.mjs → index-BhMXFr37.mjs} +12 -9
  7. package/dist/chunks/{index-DY7wYcXW.mjs → index-C-9h7h7x.mjs} +14 -17
  8. package/dist/chunks/{index-AssUn9IY.mjs → index-CGG9e0xu.mjs} +11157 -8059
  9. package/dist/chunks/{index-CMSCF_uw.mjs → index-CQoEnkSc.mjs} +493 -254
  10. package/dist/chunks/{index-xRi3oKvY.mjs → index-CnnI9zSQ.mjs} +10 -12
  11. package/dist/chunks/{index-D8S1lJ24.mjs → index-DLciMnJ6.mjs} +271 -181
  12. package/dist/chunks/{index-B6r8O7PJ.mjs → index-DmynYewb.mjs} +14 -17
  13. package/dist/chunks/{index-C21RHLO4.mjs → index-DyRIwYWf.mjs} +33 -18
  14. package/dist/chunks/{index-mPj0Vhpw.mjs → index-GcL_Hrrr.mjs} +13 -15
  15. package/dist/chunks/{index-DfvhftMN.mjs → index-aUz_8rS_.mjs} +29 -28
  16. package/dist/chunks/index-cIL2r09o.mjs +31 -0
  17. package/dist/chunks/{index-Ccay5Db0.mjs → index-tlD9zcww.mjs} +16 -19
  18. package/dist/chunks/{loadSso-C-y9gQEz.mjs → loadSso-9hx2nl0k.mjs} +242 -180
  19. package/dist/chunks/{package-DiDNabNr.mjs → package-DbbYaehr.mjs} +1 -1
  20. package/dist/chunks/{parseKnownFiles-KczcjlE0.mjs → parseKnownFiles-CewXrtbo.mjs} +1 -1
  21. package/dist/chunks/{readDotenvCascade-HLU7FsEQ.mjs → readDotenvCascade-Dgx4SC1p.mjs} +3 -7
  22. package/dist/chunks/{readMergedOptions-D6niy_Ep.mjs → readMergedOptions-atT1xkoe.mjs} +5 -3
  23. package/dist/chunks/{resolveCliOptions-PWF1aEM9.mjs → resolveCliOptions-BLSqCGm7.mjs} +1 -1
  24. package/dist/chunks/{sdk-stream-mixin-blFikF4G.mjs → sdk-stream-mixin-CMdQ7nO8.mjs} +145 -5
  25. package/dist/chunks/{spawnEnv-5kdIVv0x.mjs → spawnEnv-CKgnHGpr.mjs} +5 -5
  26. package/dist/chunks/{types-Bp3u5-IH.mjs → types-BdKCfPRW.mjs} +1 -1
  27. package/dist/cli.mjs +12 -14
  28. package/dist/cliHost.mjs +5 -5
  29. package/dist/env-overlay.mjs +2 -2
  30. package/dist/getdotenv.cli.mjs +12 -14
  31. package/dist/index.mjs +16 -18
  32. package/dist/plugins-aws.mjs +3 -3
  33. package/dist/plugins-batch.mjs +3 -3
  34. package/dist/plugins-cmd.mjs +5 -5
  35. package/dist/plugins-init.mjs +4 -4
  36. package/dist/plugins.mjs +11 -13
  37. package/package.json +1 -1
  38. package/dist/chunks/index-DtdHVcXz.mjs +0 -27
@@ -1,10 +1,102 @@
1
- import { m as fromBase64, n as toBase64, o as toHex, t as toUtf8, q as fromArrayBuffer, r as streamCollector$1 } from './index-AssUn9IY.mjs';
2
- import { Readable } from 'stream';
1
+ import { Writable, Readable } from 'node:stream';
2
+ import { aS as toHex, a5 as fromArrayBuffer } from './index-CGG9e0xu.mjs';
3
3
 
4
4
  const isReadableStream = (stream) => typeof ReadableStream === "function" &&
5
5
  (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
6
6
 
7
- const streamCollector = async (stream) => {
7
+ const fromUtf8 = (input) => new TextEncoder().encode(input);
8
+
9
+ const chars = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`;
10
+ const alphabetByEncoding = Object.entries(chars).reduce((acc, [i, c]) => {
11
+ acc[c] = Number(i);
12
+ return acc;
13
+ }, {});
14
+ const alphabetByValue = chars.split("");
15
+ const bitsPerLetter = 6;
16
+ const bitsPerByte = 8;
17
+ const maxLetterValue = 0b111111;
18
+
19
+ function toBase64(_input) {
20
+ let input;
21
+ if (typeof _input === "string") {
22
+ input = fromUtf8(_input);
23
+ }
24
+ else {
25
+ input = _input;
26
+ }
27
+ const isArrayLike = typeof input === "object" && typeof input.length === "number";
28
+ const isUint8Array = typeof input === "object" &&
29
+ typeof input.byteOffset === "number" &&
30
+ typeof input.byteLength === "number";
31
+ if (!isArrayLike && !isUint8Array) {
32
+ throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
33
+ }
34
+ let str = "";
35
+ for (let i = 0; i < input.length; i += 3) {
36
+ let bits = 0;
37
+ let bitLength = 0;
38
+ for (let j = i, limit = Math.min(i + 3, input.length); j < limit; j++) {
39
+ bits |= input[j] << ((limit - j - 1) * bitsPerByte);
40
+ bitLength += bitsPerByte;
41
+ }
42
+ const bitClusterCount = Math.ceil(bitLength / bitsPerLetter);
43
+ bits <<= bitClusterCount * bitsPerLetter - bitLength;
44
+ for (let k = 1; k <= bitClusterCount; k++) {
45
+ const offset = (bitClusterCount - k) * bitsPerLetter;
46
+ str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset];
47
+ }
48
+ str += "==".slice(0, 4 - bitClusterCount);
49
+ }
50
+ return str;
51
+ }
52
+
53
+ const toUtf8 = (input) => {
54
+ if (typeof input === "string") {
55
+ return input;
56
+ }
57
+ if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
58
+ throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
59
+ }
60
+ return new TextDecoder("utf-8").decode(input);
61
+ };
62
+
63
+ const fromBase64 = (input) => {
64
+ let totalByteLength = (input.length / 4) * 3;
65
+ if (input.slice(-2) === "==") {
66
+ totalByteLength -= 2;
67
+ }
68
+ else if (input.slice(-1) === "=") {
69
+ totalByteLength--;
70
+ }
71
+ const out = new ArrayBuffer(totalByteLength);
72
+ const dataView = new DataView(out);
73
+ for (let i = 0; i < input.length; i += 4) {
74
+ let bits = 0;
75
+ let bitLength = 0;
76
+ for (let j = i, limit = i + 3; j <= limit; j++) {
77
+ if (input[j] !== "=") {
78
+ if (!(input[j] in alphabetByEncoding)) {
79
+ throw new TypeError(`Invalid character ${input[j]} in base64 string.`);
80
+ }
81
+ bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter);
82
+ bitLength += bitsPerLetter;
83
+ }
84
+ else {
85
+ bits >>= bitsPerLetter;
86
+ }
87
+ }
88
+ const chunkOffset = (i / 4) * 3;
89
+ bits >>= bitLength % bitsPerByte;
90
+ const byteLength = Math.floor(bitLength / bitsPerByte);
91
+ for (let k = 0; k < byteLength; k++) {
92
+ const offset = (byteLength - k - 1) * bitsPerByte;
93
+ dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset);
94
+ }
95
+ }
96
+ return new Uint8Array(out);
97
+ };
98
+
99
+ const streamCollector$1 = async (stream) => {
8
100
  if ((typeof Blob === "function" && stream instanceof Blob) || stream.constructor?.name === "Blob") {
9
101
  if (Blob.prototype.arrayBuffer !== undefined) {
10
102
  return new Uint8Array(await stream.arrayBuffer());
@@ -69,7 +161,7 @@ const sdkStreamMixin$1 = (stream) => {
69
161
  throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED$1);
70
162
  }
71
163
  transformed = true;
72
- return await streamCollector(stream);
164
+ return await streamCollector$1(stream);
73
165
  };
74
166
  const blobToWebStream = (blob) => {
75
167
  if (typeof blob.stream !== "function") {
@@ -117,6 +209,54 @@ const sdkStreamMixin$1 = (stream) => {
117
209
  };
118
210
  const isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob;
119
211
 
212
+ class Collector extends Writable {
213
+ bufferedBytes = [];
214
+ _write(chunk, encoding, callback) {
215
+ this.bufferedBytes.push(chunk);
216
+ callback();
217
+ }
218
+ }
219
+ const isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream;
220
+ async function collectReadableStream(stream) {
221
+ const chunks = [];
222
+ const reader = stream.getReader();
223
+ let isDone = false;
224
+ let length = 0;
225
+ while (!isDone) {
226
+ const { done, value } = await reader.read();
227
+ if (value) {
228
+ chunks.push(value);
229
+ length += value.length;
230
+ }
231
+ isDone = done;
232
+ }
233
+ const collected = new Uint8Array(length);
234
+ let offset = 0;
235
+ for (const chunk of chunks) {
236
+ collected.set(chunk, offset);
237
+ offset += chunk.length;
238
+ }
239
+ return collected;
240
+ }
241
+ const streamCollector = (stream) => {
242
+ if (isReadableStreamInstance(stream)) {
243
+ return collectReadableStream(stream);
244
+ }
245
+ return new Promise((resolve, reject) => {
246
+ const collector = new Collector();
247
+ stream.pipe(collector);
248
+ stream.on("error", (err) => {
249
+ collector.end();
250
+ reject(err);
251
+ });
252
+ collector.on("error", reject);
253
+ collector.on("finish", function () {
254
+ const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
255
+ resolve(bytes);
256
+ });
257
+ });
258
+ };
259
+
120
260
  const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed.";
121
261
  const sdkStreamMixin = (stream) => {
122
262
  if (!(stream instanceof Readable)) {
@@ -134,7 +274,7 @@ const sdkStreamMixin = (stream) => {
134
274
  throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED);
135
275
  }
136
276
  transformed = true;
137
- return await streamCollector$1(stream);
277
+ return await streamCollector(stream);
138
278
  };
139
279
  return Object.assign(stream, {
140
280
  transformToByteArray,
@@ -143,12 +143,12 @@ async function _execNormalized(command, shell, opts = {}) {
143
143
  return { exitCode: 0, stdout: '', stderr: '' };
144
144
  dbg('exec (plain)', { file, args, stdio });
145
145
  try {
146
- const ok = pickResult((await execa(file, args, {
146
+ const ok = pickResult(await execa(file, args, {
147
147
  ...(opts.cwd !== undefined ? { cwd: opts.cwd } : {}),
148
148
  ...(envSan !== undefined ? { env: envSan } : {}),
149
149
  stdio,
150
150
  ...timeoutBits,
151
- })));
151
+ }));
152
152
  dbg('exit (plain)', { exitCode: ok.exitCode });
153
153
  return ok;
154
154
  }
@@ -166,13 +166,13 @@ async function _execNormalized(command, shell, opts = {}) {
166
166
  stdio,
167
167
  });
168
168
  try {
169
- const ok = pickResult((await execaCommand(commandStr, {
169
+ const ok = pickResult(await execaCommand(commandStr, {
170
170
  shell,
171
171
  ...(opts.cwd !== undefined ? { cwd: opts.cwd } : {}),
172
172
  ...(envSan !== undefined ? { env: envSan } : {}),
173
173
  stdio,
174
174
  ...timeoutBits,
175
- })));
175
+ }));
176
176
  dbg('exit (shell)', { exitCode: ok.exitCode });
177
177
  return ok;
178
178
  }
@@ -307,4 +307,4 @@ const buildSpawnEnv = (base, overlay) => {
307
307
  return out;
308
308
  };
309
309
 
310
- export { runCommandResult as a, resolveCommand as b, resolveShell as c, buildSpawnEnv as d, runCommand as r, shouldCapture as s, tokenize as t };
310
+ export { resolveShell as a, buildSpawnEnv as b, runCommand as c, runCommandResult as d, resolveCommand as r, shouldCapture as s, tokenize as t };
@@ -1,4 +1,4 @@
1
- import { d as definePlugin } from './readMergedOptions-D6niy_Ep.mjs';
1
+ import { g as definePlugin } from './readMergedOptions-atT1xkoe.mjs';
2
2
 
3
3
  /**
4
4
  * Create a namespace-only parent plugin (a group command) for composing plugins
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { c as createCli } from './chunks/createCli-B9-MIwWj.mjs';
1
+ export { c as createCli } from './chunks/createCli-wmAcTdWR.mjs';
2
2
  import 'zod';
3
3
  import 'path';
4
4
  import './chunks/loader-CE4HSRN4.mjs';
@@ -13,29 +13,27 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
13
13
  import 'crypto';
14
14
  import '@commander-js/extra-typings';
15
15
  import 'nanoid';
16
- import './chunks/readMergedOptions-D6niy_Ep.mjs';
17
- import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
16
+ import './chunks/readMergedOptions-atT1xkoe.mjs';
17
+ import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
18
18
  import 'dotenv';
19
19
  import 'execa';
20
20
  import './chunks/helpConfig-CGejgwWW.mjs';
21
- import './chunks/resolveCliOptions-PWF1aEM9.mjs';
21
+ import './chunks/resolveCliOptions-BLSqCGm7.mjs';
22
22
  import './chunks/validate-CDl0rE6k.mjs';
23
23
  import './plugins-aws.mjs';
24
- import './chunks/spawnEnv-5kdIVv0x.mjs';
25
- import './chunks/index-AssUn9IY.mjs';
26
- import 'buffer';
27
- import 'os';
24
+ import './chunks/spawnEnv-CKgnHGpr.mjs';
25
+ import './chunks/index-CGG9e0xu.mjs';
26
+ import 'node:os';
28
27
  import 'node:fs/promises';
29
- import 'http';
30
- import 'https';
31
- import 'stream';
32
- import 'process';
28
+ import 'node:stream';
29
+ import 'node:crypto';
33
30
  import 'node:fs';
31
+ import 'node:https';
32
+ import 'node:process';
34
33
  import './plugins-batch.mjs';
35
34
  import './chunks/invoke-DuRPU1oC.mjs';
36
35
  import 'globby';
37
- import './chunks/index-CAtxK29A.mjs';
36
+ import './chunks/index-BhMXFr37.mjs';
38
37
  import './plugins-init.mjs';
39
- import 'node:process';
40
38
  import 'readline/promises';
41
39
  import 'node:url';
package/dist/cliHost.mjs CHANGED
@@ -1,12 +1,12 @@
1
- export { G as GetDotenvCli, d as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-D6niy_Ep.mjs';
2
- export { d as buildSpawnEnv, b as resolveCommand, c as resolveShell, r as runCommand, a as runCommandResult, s as shouldCapture } from './chunks/spawnEnv-5kdIVv0x.mjs';
3
- export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-PWF1aEM9.mjs';
4
- export { d as defineScripts, g as groupPlugins } from './chunks/types-Bp3u5-IH.mjs';
1
+ export { G as GetDotenvCli, g as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-atT1xkoe.mjs';
2
+ export { b as buildSpawnEnv, r as resolveCommand, a as resolveShell, c as runCommand, d as runCommandResult, s as shouldCapture } from './chunks/spawnEnv-CKgnHGpr.mjs';
3
+ export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-BLSqCGm7.mjs';
4
+ export { d as defineScripts, g as groupPlugins } from './chunks/types-BdKCfPRW.mjs';
5
5
  export { t as toHelpConfig } from './chunks/helpConfig-CGejgwWW.mjs';
6
6
  export { c as composeNestedEnv, m as maybePreserveNodeEvalArgv, s as stripOne } from './chunks/invoke-DuRPU1oC.mjs';
7
7
  export { z } from 'zod';
8
8
  import '@commander-js/extra-typings';
9
- import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
9
+ import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
10
10
  import 'fs-extra';
11
11
  import 'radash';
12
12
  import 'node:buffer';
@@ -1,5 +1,5 @@
1
- import { d as dotenvExpandAll } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
2
- export { a as applyDynamicMap, b as applyDynamicMapWithProvenance, e as createDotenvProvenance, c as loadAndApplyDynamic, l as loadDynamicModuleDefault, o as overlayEnvWithProvenance, p as pushDotenvProvenance, r as readDotenvCascadeWithProvenance } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
1
+ import { e as dotenvExpandAll } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
2
+ export { a as applyDynamicMap, b as applyDynamicMapWithProvenance, c as createDotenvProvenance, l as loadAndApplyDynamic, g as loadDynamicModuleDefault, o as overlayEnvWithProvenance, p as pushDotenvProvenance, h as readDotenvCascadeWithProvenance } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
3
3
  import 'fs-extra';
4
4
  import 'node:path';
5
5
  import 'radash';
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { c as createCli } from './chunks/createCli-B9-MIwWj.mjs';
2
+ import { c as createCli } from './chunks/createCli-wmAcTdWR.mjs';
3
3
  import 'zod';
4
4
  import 'path';
5
5
  import './chunks/loader-CE4HSRN4.mjs';
@@ -14,30 +14,28 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
14
14
  import 'crypto';
15
15
  import '@commander-js/extra-typings';
16
16
  import 'nanoid';
17
- import './chunks/readMergedOptions-D6niy_Ep.mjs';
18
- import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
17
+ import './chunks/readMergedOptions-atT1xkoe.mjs';
18
+ import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
19
19
  import 'dotenv';
20
20
  import 'execa';
21
21
  import './chunks/helpConfig-CGejgwWW.mjs';
22
- import './chunks/resolveCliOptions-PWF1aEM9.mjs';
22
+ import './chunks/resolveCliOptions-BLSqCGm7.mjs';
23
23
  import './chunks/validate-CDl0rE6k.mjs';
24
24
  import './plugins-aws.mjs';
25
- import './chunks/spawnEnv-5kdIVv0x.mjs';
26
- import './chunks/index-AssUn9IY.mjs';
27
- import 'buffer';
28
- import 'os';
25
+ import './chunks/spawnEnv-CKgnHGpr.mjs';
26
+ import './chunks/index-CGG9e0xu.mjs';
27
+ import 'node:os';
29
28
  import 'node:fs/promises';
30
- import 'http';
31
- import 'https';
32
- import 'stream';
33
- import 'process';
29
+ import 'node:stream';
30
+ import 'node:crypto';
34
31
  import 'node:fs';
32
+ import 'node:https';
33
+ import 'node:process';
35
34
  import './plugins-batch.mjs';
36
35
  import './chunks/invoke-DuRPU1oC.mjs';
37
36
  import 'globby';
38
- import './chunks/index-CAtxK29A.mjs';
37
+ import './chunks/index-BhMXFr37.mjs';
39
38
  import './plugins-init.mjs';
40
- import 'node:process';
41
39
  import 'readline/promises';
42
40
  import 'node:url';
43
41
 
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
- export { c as createCli } from './chunks/createCli-B9-MIwWj.mjs';
2
- import { e as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-D6niy_Ep.mjs';
3
- export { G as GetDotenvCli, f as assertLogger, b as baseRootOptionDefaults, a as defaultsDeep, h as defineDynamic, i as defineGetDotenvConfig, d as definePlugin, g as getDotenvCliOptions2Options, j as interpolateDeep, r as readMergedOptions } from './chunks/readMergedOptions-D6niy_Ep.mjs';
4
- export { d as buildSpawnEnv, s as shouldCapture, t as tokenize } from './chunks/spawnEnv-5kdIVv0x.mjs';
5
- export { d as defineScripts, g as groupPlugins } from './chunks/types-Bp3u5-IH.mjs';
1
+ export { c as createCli } from './chunks/createCli-wmAcTdWR.mjs';
2
+ import { j as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-atT1xkoe.mjs';
3
+ export { G as GetDotenvCli, a as assertLogger, c as baseRootOptionDefaults, d as defaultsDeep, e as defineDynamic, f as defineGetDotenvConfig, g as definePlugin, h as getDotenvCliOptions2Options, i as interpolateDeep, r as readMergedOptions } from './chunks/readMergedOptions-atT1xkoe.mjs';
4
+ export { b as buildSpawnEnv, s as shouldCapture, t as tokenize } from './chunks/spawnEnv-CKgnHGpr.mjs';
5
+ export { d as defineScripts, g as groupPlugins } from './chunks/types-BdKCfPRW.mjs';
6
6
  import { omit, pick } from 'radash';
7
7
  import { Buffer } from 'node:buffer';
8
8
  export { l as loadModuleDefault } from './chunks/loadModuleDefault-Dj8B3Stt.mjs';
@@ -10,10 +10,10 @@ import { InvalidArgumentError } from '@commander-js/extra-typings';
10
10
  import 'zod';
11
11
  import { nanoid } from 'nanoid';
12
12
  import path$1 from 'path';
13
- import { r as redactObject, m as maybeWarnEntropy } from './chunks/index-CAtxK29A.mjs';
14
- export { a as redactDisplay, t as traceChildEnv } from './chunks/index-CAtxK29A.mjs';
15
- import { g as readDotenv, d as dotenvExpandAll, a as applyDynamicMap, c as loadAndApplyDynamic } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
16
- export { h as dotenvExpand, f as dotenvExpandFromProcessEnv } from './chunks/readDotenvCascade-HLU7FsEQ.mjs';
13
+ import { a as redactObject, m as maybeWarnEntropy } from './chunks/index-BhMXFr37.mjs';
14
+ export { r as redactDisplay, t as traceChildEnv } from './chunks/index-BhMXFr37.mjs';
15
+ import { r as readDotenv, e as dotenvExpandAll, a as applyDynamicMap, l as loadAndApplyDynamic } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
16
+ export { d as dotenvExpand, f as dotenvExpandFromProcessEnv } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
17
17
  import fs from 'fs-extra';
18
18
  import path from 'node:path';
19
19
  import 'crypto';
@@ -24,23 +24,21 @@ import 'package-directory';
24
24
  import 'yaml';
25
25
  import 'execa';
26
26
  import './chunks/helpConfig-CGejgwWW.mjs';
27
- import './chunks/resolveCliOptions-PWF1aEM9.mjs';
27
+ import './chunks/resolveCliOptions-BLSqCGm7.mjs';
28
28
  import './chunks/validate-CDl0rE6k.mjs';
29
29
  import './plugins-aws.mjs';
30
- import './chunks/index-AssUn9IY.mjs';
31
- import 'buffer';
32
- import 'os';
30
+ import './chunks/index-CGG9e0xu.mjs';
31
+ import 'node:os';
33
32
  import 'node:fs/promises';
34
- import 'http';
35
- import 'https';
36
- import 'stream';
37
- import 'process';
33
+ import 'node:stream';
34
+ import 'node:crypto';
38
35
  import 'node:fs';
36
+ import 'node:https';
37
+ import 'node:process';
39
38
  import './plugins-batch.mjs';
40
39
  import './chunks/invoke-DuRPU1oC.mjs';
41
40
  import 'globby';
42
41
  import './plugins-init.mjs';
43
- import 'node:process';
44
42
  import 'readline/promises';
45
43
  import 'node:url';
46
44
 
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-D6niy_Ep.mjs';
1
+ import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-atT1xkoe.mjs';
2
2
  import 'execa';
3
3
  import { isObject } from 'radash';
4
4
  import 'node:buffer';
@@ -14,8 +14,8 @@ import './chunks/loader-CE4HSRN4.mjs';
14
14
  import 'package-directory';
15
15
  import 'yaml';
16
16
  import { z } from 'zod';
17
- import { r as runCommand, a as runCommandResult, s as shouldCapture, c as resolveShell, d as buildSpawnEnv } from './chunks/spawnEnv-5kdIVv0x.mjs';
18
- import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
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
  /**
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-D6niy_Ep.mjs';
1
+ import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-atT1xkoe.mjs';
2
2
  import 'execa';
3
3
  import 'radash';
4
4
  import 'node:buffer';
@@ -15,9 +15,9 @@ 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 { r as runCommand, d as buildSpawnEnv, c as resolveShell, b as resolveCommand } from './chunks/spawnEnv-5kdIVv0x.mjs';
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-HLU7FsEQ.mjs';
20
+ import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
21
21
  import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
22
22
 
23
23
  const globPaths = async ({ globs, logger, pkgCwd, rootPath, }) => {
@@ -1,5 +1,5 @@
1
1
  import 'radash';
2
- import './chunks/readMergedOptions-D6niy_Ep.mjs';
2
+ import './chunks/readMergedOptions-atT1xkoe.mjs';
3
3
  import 'execa';
4
4
  import 'node:buffer';
5
5
  import 'fs-extra';
@@ -14,9 +14,9 @@ import './chunks/loader-CE4HSRN4.mjs';
14
14
  import 'package-directory';
15
15
  import 'yaml';
16
16
  import 'zod';
17
- export { c as cmdPlugin } from './chunks/index-CAtxK29A.mjs';
18
- import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
17
+ export { c as cmdPlugin } from './chunks/index-BhMXFr37.mjs';
18
+ import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
19
19
  import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
20
- import './chunks/spawnEnv-5kdIVv0x.mjs';
20
+ import './chunks/spawnEnv-CKgnHGpr.mjs';
21
21
  import './chunks/invoke-DuRPU1oC.mjs';
22
- import './chunks/resolveCliOptions-PWF1aEM9.mjs';
22
+ import './chunks/resolveCliOptions-BLSqCGm7.mjs';
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, d as definePlugin } from './chunks/readMergedOptions-D6niy_Ep.mjs';
1
+ import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-atT1xkoe.mjs';
2
2
  import 'execa';
3
3
  import 'radash';
4
4
  import 'node:buffer';
@@ -17,7 +17,7 @@ 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-HLU7FsEQ.mjs';
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.mjs CHANGED
@@ -1,12 +1,12 @@
1
1
  export { awsPlugin, getAwsRegion } from './plugins-aws.mjs';
2
- export { a as awsWhoamiPlugin } from './chunks/index-AssUn9IY.mjs';
2
+ export { R as awsWhoamiPlugin } from './chunks/index-CGG9e0xu.mjs';
3
3
  export { batchPlugin } from './plugins-batch.mjs';
4
- export { c as cmdPlugin } from './chunks/index-CAtxK29A.mjs';
4
+ export { c as cmdPlugin } from './chunks/index-BhMXFr37.mjs';
5
5
  export { initPlugin } from './plugins-init.mjs';
6
- import './chunks/readMergedOptions-D6niy_Ep.mjs';
6
+ import './chunks/readMergedOptions-atT1xkoe.mjs';
7
7
  import 'zod';
8
8
  import '@commander-js/extra-typings';
9
- import './chunks/readDotenvCascade-HLU7FsEQ.mjs';
9
+ import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
10
10
  import 'fs-extra';
11
11
  import 'radash';
12
12
  import 'node:buffer';
@@ -21,18 +21,16 @@ import './chunks/loader-CE4HSRN4.mjs';
21
21
  import 'package-directory';
22
22
  import 'yaml';
23
23
  import 'execa';
24
- import './chunks/spawnEnv-5kdIVv0x.mjs';
25
- import 'buffer';
26
- import 'os';
24
+ import './chunks/spawnEnv-CKgnHGpr.mjs';
25
+ import 'node:os';
27
26
  import 'node:fs/promises';
28
- import 'http';
29
- import 'https';
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-PWF1aEM9.mjs';
36
- import 'node:process';
34
+ import './chunks/resolveCliOptions-BLSqCGm7.mjs';
37
35
  import 'readline/promises';
38
36
  import 'node:url';
package/package.json CHANGED
@@ -221,5 +221,5 @@
221
221
  },
222
222
  "type": "module",
223
223
  "types": "dist/index.d.ts",
224
- "version": "7.0.1"
224
+ "version": "7.0.2"
225
225
  }
@@ -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';