@karmaniverous/get-dotenv 7.0.2 → 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.
Files changed (45) hide show
  1. package/dist/chunks/{AwsRestJsonProtocol-Bh3OvjNM.mjs → AwsRestJsonProtocol-fgUvbh0C.mjs} +2 -2
  2. package/dist/chunks/{createCli-wmAcTdWR.mjs → createCli-B9De0dbB.mjs} +5 -5
  3. package/dist/chunks/{externalDataInterceptor-BBvsYwZE.mjs → externalDataInterceptor-m2kSL8CB.mjs} +2 -2
  4. package/dist/chunks/{getSSOTokenFromFile-BSeYpbLi.mjs → getSSOTokenFromFile-Vx7XHoYM.mjs} +1 -1
  5. package/dist/chunks/{index-CQoEnkSc.mjs → index-BdwUJ997.mjs} +3 -3
  6. package/dist/chunks/{index-GcL_Hrrr.mjs → index-BupFFAuS.mjs} +6 -6
  7. package/dist/chunks/{index-CnnI9zSQ.mjs → index-C2z1IV4R.mjs} +4 -4
  8. package/dist/chunks/{index-BhMXFr37.mjs → index-CcxIt23B.mjs} +3 -3
  9. package/dist/chunks/{index-aUz_8rS_.mjs → index-D1FUmkpH.mjs} +3 -3
  10. package/dist/chunks/{index-DyRIwYWf.mjs → index-D8mqch7I.mjs} +3 -3
  11. package/dist/chunks/{index-DLciMnJ6.mjs → index-DavD95qI.mjs} +5 -5
  12. package/dist/chunks/{index-CGG9e0xu.mjs → index-DbDfog26.mjs} +9 -9
  13. package/dist/chunks/{index-cIL2r09o.mjs → index-DmR_hk_x.mjs} +4 -4
  14. package/dist/chunks/{index-C-9h7h7x.mjs → index-R829pajs.mjs} +8 -8
  15. package/dist/chunks/{index-BZrYAvLs.mjs → index-ScWmGA41.mjs} +5 -5
  16. package/dist/chunks/{index-DmynYewb.mjs → index-UolIX-qt.mjs} +6 -6
  17. package/dist/chunks/{index-tlD9zcww.mjs → index-WAaC3U5P.mjs} +13 -13
  18. package/dist/chunks/{loadSso-9hx2nl0k.mjs → loadSso-BZQzknAq.mjs} +5 -5
  19. package/dist/chunks/{loader-CE4HSRN4.mjs → loader-V1vbmtyw.mjs} +2 -0
  20. package/dist/chunks/{parseKnownFiles-CewXrtbo.mjs → parseKnownFiles-CCiikesE.mjs} +1 -1
  21. package/dist/chunks/{readMergedOptions-atT1xkoe.mjs → readMergedOptions-BRLqvCpt.mjs} +32 -7
  22. package/dist/chunks/{resolveCliOptions-BLSqCGm7.mjs → resolveCliOptions-Bbv0tNSF.mjs} +1 -1
  23. package/dist/chunks/{sdk-stream-mixin-CMdQ7nO8.mjs → sdk-stream-mixin-pKJE9QhL.mjs} +1 -1
  24. package/dist/chunks/{types-BdKCfPRW.mjs → types-BfKw9R-k.mjs} +1 -1
  25. package/dist/cli.d.ts +4 -0
  26. package/dist/cli.mjs +6 -6
  27. package/dist/cliHost.d.ts +4 -0
  28. package/dist/cliHost.mjs +4 -4
  29. package/dist/config.d.ts +2 -0
  30. package/dist/config.mjs +1 -1
  31. package/dist/env-overlay.d.ts +2 -0
  32. package/dist/getdotenv.cli.mjs +6 -6
  33. package/dist/index.d.ts +6 -0
  34. package/dist/index.mjs +9 -9
  35. package/dist/plugins-aws.d.ts +2 -0
  36. package/dist/plugins-aws.mjs +2 -2
  37. package/dist/plugins-batch.d.ts +2 -0
  38. package/dist/plugins-batch.mjs +2 -2
  39. package/dist/plugins-cmd.d.ts +2 -0
  40. package/dist/plugins-cmd.mjs +4 -4
  41. package/dist/plugins-init.d.ts +2 -0
  42. package/dist/plugins-init.mjs +2 -2
  43. package/dist/plugins.d.ts +2 -0
  44. package/dist/plugins.mjs +5 -5
  45. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { m as HttpProtocol, z as NormalizedSchema, n as HttpRequest, aU as translateTraits, a3 as extendedEncodeURIComponent, X as collectBody, aP as splitHeader, S as SerdeContext, F as FromStringShapeDeserializer, aT as toUtf8, a8 as fromUtf8, a9 as generateIdempotencyToken, L as LazyJsonString, aR as toBase64, a0 as determineTimestampFormat, _ as dateToUtcString, G as NumericValue, K as SerdeContextConfig, U as UnionSerde, a6 as fromBase64, av as parseEpochTimestamp, az as parseRfc7231DateTime, ay as parseRfc3339DateTimeWithOffset, P as ProtocolLib } from './index-CGG9e0xu.mjs';
1
+ import { m as HttpProtocol, z as NormalizedSchema, n as HttpRequest, aU as translateTraits, a3 as extendedEncodeURIComponent, X as collectBody, aP as splitHeader, S as SerdeContext, F as FromStringShapeDeserializer, aT as toUtf8, a8 as fromUtf8, a9 as generateIdempotencyToken, L as LazyJsonString, aR as toBase64, a0 as determineTimestampFormat, _ as dateToUtcString, G as NumericValue, K as SerdeContextConfig, U as UnionSerde, a6 as fromBase64, av as parseEpochTimestamp, az as parseRfc7231DateTime, ay as parseRfc3339DateTimeWithOffset, P as ProtocolLib } from './index-DbDfog26.mjs';
2
2
  import 'node:crypto';
3
- import { s as sdkStreamMixin } from './sdk-stream-mixin-CMdQ7nO8.mjs';
3
+ import { s as sdkStreamMixin } from './sdk-stream-mixin-pKJE9QhL.mjs';
4
4
 
5
5
  function quoteHeader(part) {
6
6
  if (part.includes(",") || part.includes('"')) {
@@ -1,24 +1,24 @@
1
1
  import 'zod';
2
2
  import 'path';
3
- import { r as resolveGetDotenvConfigSources } from './loader-CE4HSRN4.mjs';
3
+ import { r as resolveGetDotenvConfigSources } from './loader-V1vbmtyw.mjs';
4
4
  import 'nanoid';
5
5
  import 'fs-extra';
6
6
  import 'node:path';
7
7
  import 'radash';
8
8
  import 'node:buffer';
9
- import { d as defaultsDeep, h as getDotenvCliOptions2Options, c as baseRootOptionDefaults, G as GetDotenvCli, b as attachRootOptions } from './readMergedOptions-atT1xkoe.mjs';
9
+ import { d as defaultsDeep, h as getDotenvCliOptions2Options, c as baseRootOptionDefaults, G as GetDotenvCli, b as attachRootOptions } from './readMergedOptions-BRLqvCpt.mjs';
10
10
  import 'crypto';
11
11
  import 'url';
12
12
  import '@commander-js/extra-typings';
13
13
  import 'dotenv';
14
14
  import 'execa';
15
15
  import { t as toHelpConfig } from './helpConfig-CGejgwWW.mjs';
16
- import { r as resolveCliOptions } from './resolveCliOptions-BLSqCGm7.mjs';
16
+ import { r as resolveCliOptions } from './resolveCliOptions-Bbv0tNSF.mjs';
17
17
  import { v as validateEnvAgainstSources } from './validate-CDl0rE6k.mjs';
18
18
  import { awsPlugin } from '../plugins-aws.mjs';
19
- import { R as awsWhoamiPlugin } from './index-CGG9e0xu.mjs';
19
+ import { R as awsWhoamiPlugin } from './index-DbDfog26.mjs';
20
20
  import { batchPlugin } from '../plugins-batch.mjs';
21
- import { c as cmdPlugin } from './index-BhMXFr37.mjs';
21
+ import { c as cmdPlugin } from './index-CcxIt23B.mjs';
22
22
  import { initPlugin } from '../plugins-init.mjs';
23
23
 
24
24
  const dbg = (...args) => {
@@ -1,5 +1,5 @@
1
- import { t as tokenIntercept } from './getSSOTokenFromFile-BSeYpbLi.mjs';
2
- import { a4 as fileIntercept } from './index-CGG9e0xu.mjs';
1
+ import { t as tokenIntercept } from './getSSOTokenFromFile-Vx7XHoYM.mjs';
2
+ import { a4 as fileIntercept } from './index-DbDfog26.mjs';
3
3
 
4
4
  const externalDataInterceptor = {
5
5
  getFileRecord() {
@@ -1,7 +1,7 @@
1
1
  import { readFile } from 'node:fs/promises';
2
2
  import { createHash } from 'node:crypto';
3
3
  import { join } from 'node:path';
4
- import { af as getHomeDir } from './index-CGG9e0xu.mjs';
4
+ import { af as getHomeDir } from './index-DbDfog26.mjs';
5
5
 
6
6
  const getSSOTokenFilepath = (id) => {
7
7
  const hasher = createHash("sha1");
@@ -1,7 +1,7 @@
1
- import { ar as loadConfig, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, aE as resolveAwsSdkSigV4Config, aD as resolveAwsSdkSigV4AConfig, au as normalizeProvider, ap as getSmithyContext, aK as resolveParams, O as SignatureV4MultiRegion, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, A as AwsQueryProtocol, x as NoOpLogger, b as AwsSdkSigV4Signer, a as AwsSdkSigV4ASigner, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, t as NODE_SIGV4A_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin, aO as setCredentialFeature } from './index-CGG9e0xu.mjs';
1
+ import { ar as loadConfig, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, aE as resolveAwsSdkSigV4Config, aD as resolveAwsSdkSigV4AConfig, au as normalizeProvider, ap as getSmithyContext, aK as resolveParams, O as SignatureV4MultiRegion, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, A as AwsQueryProtocol, x as NoOpLogger, b as AwsSdkSigV4Signer, a as AwsSdkSigV4ASigner, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, t as NODE_SIGV4A_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin, aO as setCredentialFeature } from './index-DbDfog26.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import './readMergedOptions-atT1xkoe.mjs';
4
+ import './readMergedOptions-BRLqvCpt.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -15,7 +15,7 @@ import 'path';
15
15
  import 'url';
16
16
  import 'dotenv';
17
17
  import 'nanoid';
18
- import './loader-CE4HSRN4.mjs';
18
+ import './loader-V1vbmtyw.mjs';
19
19
  import 'package-directory';
20
20
  import 'yaml';
21
21
  import 'execa';
@@ -1,9 +1,9 @@
1
1
  import { exec } from 'node:child_process';
2
2
  import { promisify } from 'node:util';
3
- import { aO as setCredentialFeature, e as CredentialsProviderError, al as getProfileName } from './index-CGG9e0xu.mjs';
4
- import { e as externalDataInterceptor } from './externalDataInterceptor-BBvsYwZE.mjs';
5
- import { p as parseKnownFiles } from './parseKnownFiles-CewXrtbo.mjs';
6
- import './readMergedOptions-atT1xkoe.mjs';
3
+ import { aO as setCredentialFeature, e as CredentialsProviderError, al as getProfileName } from './index-DbDfog26.mjs';
4
+ import { e as externalDataInterceptor } from './externalDataInterceptor-m2kSL8CB.mjs';
5
+ import { p as parseKnownFiles } from './parseKnownFiles-CCiikesE.mjs';
6
+ import './readMergedOptions-BRLqvCpt.mjs';
7
7
  import 'zod';
8
8
  import '@commander-js/extra-typings';
9
9
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -17,7 +17,7 @@ import 'path';
17
17
  import 'url';
18
18
  import 'dotenv';
19
19
  import 'nanoid';
20
- import './loader-CE4HSRN4.mjs';
20
+ import './loader-V1vbmtyw.mjs';
21
21
  import 'package-directory';
22
22
  import 'yaml';
23
23
  import 'execa';
@@ -28,7 +28,7 @@ import 'node:crypto';
28
28
  import 'node:fs';
29
29
  import 'node:https';
30
30
  import 'node:process';
31
- import './getSSOTokenFromFile-BSeYpbLi.mjs';
31
+ import './getSSOTokenFromFile-Vx7XHoYM.mjs';
32
32
 
33
33
  const getValidatedProcessCredentials = (profileName, data, profiles) => {
34
34
  if (data.Version !== 1) {
@@ -1,7 +1,7 @@
1
1
  import fs from 'node:fs/promises';
2
- import { e as CredentialsProviderError, n as HttpRequest, ax as parseRfc3339DateTime, y as NodeHttpHandler, aO as setCredentialFeature } from './index-CGG9e0xu.mjs';
3
- import { s as sdkStreamMixin } from './sdk-stream-mixin-CMdQ7nO8.mjs';
4
- import './readMergedOptions-atT1xkoe.mjs';
2
+ import { e as CredentialsProviderError, n as HttpRequest, ax as parseRfc3339DateTime, y as NodeHttpHandler, aO as setCredentialFeature } from './index-DbDfog26.mjs';
3
+ import { s as sdkStreamMixin } from './sdk-stream-mixin-pKJE9QhL.mjs';
4
+ import './readMergedOptions-BRLqvCpt.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -15,7 +15,7 @@ import 'path';
15
15
  import 'url';
16
16
  import 'dotenv';
17
17
  import 'nanoid';
18
- import './loader-CE4HSRN4.mjs';
18
+ import './loader-V1vbmtyw.mjs';
19
19
  import 'package-directory';
20
20
  import 'yaml';
21
21
  import 'execa';
@@ -1,5 +1,5 @@
1
1
  import { camel } from 'radash';
2
- import { r as readMergedOptions, d as defaultsDeep, h as getDotenvCliOptions2Options, g as definePlugin } from './readMergedOptions-atT1xkoe.mjs';
2
+ import { r as readMergedOptions, d as defaultsDeep, h as getDotenvCliOptions2Options, g as definePlugin } from './readMergedOptions-BRLqvCpt.mjs';
3
3
  import 'execa';
4
4
  import 'node:buffer';
5
5
  import 'fs-extra';
@@ -10,14 +10,14 @@ import 'url';
10
10
  import '@commander-js/extra-typings';
11
11
  import 'nanoid';
12
12
  import 'dotenv';
13
- import { r as resolveGetDotenvConfigSources } from './loader-CE4HSRN4.mjs';
13
+ import { r as resolveGetDotenvConfigSources } from './loader-V1vbmtyw.mjs';
14
14
  import 'package-directory';
15
15
  import 'yaml';
16
16
  import { z } from 'zod';
17
17
  import { r as resolveCommand, a as resolveShell, t as tokenize, s as shouldCapture, c as runCommand, b as buildSpawnEnv } from './spawnEnv-CKgnHGpr.mjs';
18
18
  import { m as maybePreserveNodeEvalArgv, c as composeNestedEnv, s as stripOne } from './invoke-DuRPU1oC.mjs';
19
19
  import { f as dotenvExpandFromProcessEnv } from './readDotenvCascade-Dgx4SC1p.mjs';
20
- import { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './resolveCliOptions-BLSqCGm7.mjs';
20
+ import { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './resolveCliOptions-Bbv0tNSF.mjs';
21
21
 
22
22
  /** src/diagnostics/entropy.ts
23
23
  * Entropy diagnostics (presentation-only).
@@ -1,7 +1,7 @@
1
1
  import { parse } from 'node:url';
2
2
  import { request } from 'node:http';
3
- import { J as ProviderError, e as CredentialsProviderError, aA as parseUrl, ar as loadConfig } from './index-CGG9e0xu.mjs';
4
- import './readMergedOptions-atT1xkoe.mjs';
3
+ import { J as ProviderError, e as CredentialsProviderError, aA as parseUrl, ar as loadConfig } from './index-DbDfog26.mjs';
4
+ import './readMergedOptions-BRLqvCpt.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -15,7 +15,7 @@ import 'path';
15
15
  import 'url';
16
16
  import 'dotenv';
17
17
  import 'nanoid';
18
- import './loader-CE4HSRN4.mjs';
18
+ import './loader-V1vbmtyw.mjs';
19
19
  import 'package-directory';
20
20
  import 'yaml';
21
21
  import 'execa';
@@ -1,6 +1,6 @@
1
1
  import 'node:crypto';
2
- import { aT as toUtf8, a8 as fromUtf8 } from './index-CGG9e0xu.mjs';
3
- import './readMergedOptions-atT1xkoe.mjs';
2
+ import { aT as toUtf8, a8 as fromUtf8 } from './index-DbDfog26.mjs';
3
+ import './readMergedOptions-BRLqvCpt.mjs';
4
4
  import 'zod';
5
5
  import '@commander-js/extra-typings';
6
6
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -14,7 +14,7 @@ import 'path';
14
14
  import 'url';
15
15
  import 'dotenv';
16
16
  import 'nanoid';
17
- import './loader-CE4HSRN4.mjs';
17
+ import './loader-V1vbmtyw.mjs';
18
18
  import 'package-directory';
19
19
  import 'yaml';
20
20
  import 'execa';
@@ -1,8 +1,8 @@
1
- import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-CGG9e0xu.mjs';
1
+ import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-DbDfog26.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-Bh3OvjNM.mjs';
5
- import './readMergedOptions-atT1xkoe.mjs';
4
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-fgUvbh0C.mjs';
5
+ import './readMergedOptions-BRLqvCpt.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -16,7 +16,7 @@ import 'path';
16
16
  import 'url';
17
17
  import 'dotenv';
18
18
  import 'nanoid';
19
- import './loader-CE4HSRN4.mjs';
19
+ import './loader-V1vbmtyw.mjs';
20
20
  import 'package-directory';
21
21
  import 'yaml';
22
22
  import 'execa';
@@ -26,7 +26,7 @@ import 'node:stream';
26
26
  import 'node:fs';
27
27
  import 'node:https';
28
28
  import 'node:process';
29
- import './sdk-stream-mixin-CMdQ7nO8.mjs';
29
+ import './sdk-stream-mixin-pKJE9QhL.mjs';
30
30
 
31
31
  const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -1,4 +1,4 @@
1
- import { g as definePlugin } from './readMergedOptions-atT1xkoe.mjs';
1
+ import { g as definePlugin } from './readMergedOptions-BRLqvCpt.mjs';
2
2
  import 'execa';
3
3
  import 'radash';
4
4
  import 'node:buffer';
@@ -10,7 +10,7 @@ import 'url';
10
10
  import '@commander-js/extra-typings';
11
11
  import 'nanoid';
12
12
  import 'dotenv';
13
- import './loader-CE4HSRN4.mjs';
13
+ import './loader-V1vbmtyw.mjs';
14
14
  import 'package-directory';
15
15
  import 'yaml';
16
16
  import 'zod';
@@ -2572,7 +2572,7 @@ class HttpProtocol extends SerdeContext {
2572
2572
  });
2573
2573
  }
2574
2574
  async loadEventStreamCapability() {
2575
- const { EventStreamSerde } = await import('./index-DyRIwYWf.mjs');
2575
+ const { EventStreamSerde } = await import('./index-D8mqch7I.mjs');
2576
2576
  return new EventStreamSerde({
2577
2577
  marshaller: this.getEventStreamMarshaller(),
2578
2578
  serializer: this.serializer,
@@ -6431,10 +6431,10 @@ const fromEnv = (init) => async () => {
6431
6431
 
6432
6432
  const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED";
6433
6433
  const remoteProvider = async (init) => {
6434
- const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-aUz_8rS_.mjs');
6434
+ const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-D1FUmkpH.mjs');
6435
6435
  if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
6436
6436
  init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
6437
- const { fromHttp } = await import('./index-CnnI9zSQ.mjs');
6437
+ const { fromHttp } = await import('./index-C2z1IV4R.mjs');
6438
6438
  return chain(fromHttp(init), fromContainerMetadata(init));
6439
6439
  }
6440
6440
  if (process.env[ENV_IMDS_DISABLED] && process.env[ENV_IMDS_DISABLED] !== "false") {
@@ -6544,22 +6544,22 @@ const defaultProvider = (init = {}) => memoizeChain([
6544
6544
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
6545
6545
  throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
6546
6546
  }
6547
- const { fromSSO } = await import('./index-C-9h7h7x.mjs');
6547
+ const { fromSSO } = await import('./index-R829pajs.mjs');
6548
6548
  return fromSSO(init)(awsIdentityProperties);
6549
6549
  },
6550
6550
  async (awsIdentityProperties) => {
6551
6551
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
6552
- const { fromIni } = await import('./index-tlD9zcww.mjs');
6552
+ const { fromIni } = await import('./index-WAaC3U5P.mjs');
6553
6553
  return fromIni(init)(awsIdentityProperties);
6554
6554
  },
6555
6555
  async (awsIdentityProperties) => {
6556
6556
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
6557
- const { fromProcess } = await import('./index-GcL_Hrrr.mjs');
6557
+ const { fromProcess } = await import('./index-BupFFAuS.mjs');
6558
6558
  return fromProcess(init)(awsIdentityProperties);
6559
6559
  },
6560
6560
  async (awsIdentityProperties) => {
6561
6561
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
6562
- const { fromTokenFile } = await import('./index-DmynYewb.mjs');
6562
+ const { fromTokenFile } = await import('./index-UolIX-qt.mjs');
6563
6563
  return fromTokenFile(init)(awsIdentityProperties);
6564
6564
  },
6565
6565
  async () => {
@@ -1,6 +1,6 @@
1
- import { a7 as fromEnv } from './index-CGG9e0xu.mjs';
2
- export { E as ENV_ACCOUNT_ID, g as ENV_CREDENTIAL_SCOPE, h as ENV_EXPIRATION, i as ENV_KEY, j as ENV_SECRET, k as ENV_SESSION } from './index-CGG9e0xu.mjs';
3
- import './readMergedOptions-atT1xkoe.mjs';
1
+ import { a7 as fromEnv } from './index-DbDfog26.mjs';
2
+ export { E as ENV_ACCOUNT_ID, g as ENV_CREDENTIAL_SCOPE, h as ENV_EXPIRATION, i as ENV_KEY, j as ENV_SECRET, k as ENV_SESSION } from './index-DbDfog26.mjs';
3
+ import './readMergedOptions-BRLqvCpt.mjs';
4
4
  import 'zod';
5
5
  import '@commander-js/extra-typings';
6
6
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -14,7 +14,7 @@ import 'path';
14
14
  import 'url';
15
15
  import 'dotenv';
16
16
  import 'nanoid';
17
- import './loader-CE4HSRN4.mjs';
17
+ import './loader-V1vbmtyw.mjs';
18
18
  import 'package-directory';
19
19
  import 'yaml';
20
20
  import 'execa';
@@ -1,8 +1,8 @@
1
- import { J as ProviderError, I as IniSectionType, C as CONFIG_PREFIX_SEPARATOR, aB as readFile, ab as getConfigFilepath, aw as parseIni, al as getProfileName, e as CredentialsProviderError, aO as setCredentialFeature } from './index-CGG9e0xu.mjs';
1
+ import { J as ProviderError, I as IniSectionType, C as CONFIG_PREFIX_SEPARATOR, aB as readFile, ab as getConfigFilepath, aw as parseIni, al as getProfileName, e as CredentialsProviderError, aO as setCredentialFeature } from './index-DbDfog26.mjs';
2
2
  import { promises } from 'node:fs';
3
- import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-BSeYpbLi.mjs';
4
- import { p as parseKnownFiles } from './parseKnownFiles-CewXrtbo.mjs';
5
- import './readMergedOptions-atT1xkoe.mjs';
3
+ import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-Vx7XHoYM.mjs';
4
+ import { p as parseKnownFiles } from './parseKnownFiles-CCiikesE.mjs';
5
+ import './readMergedOptions-BRLqvCpt.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -16,7 +16,7 @@ import 'path';
16
16
  import 'url';
17
17
  import 'dotenv';
18
18
  import 'nanoid';
19
- import './loader-CE4HSRN4.mjs';
19
+ import './loader-V1vbmtyw.mjs';
20
20
  import 'package-directory';
21
21
  import 'yaml';
22
22
  import 'execa';
@@ -56,7 +56,7 @@ const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
56
56
  const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
57
57
 
58
58
  const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
59
- const { SSOOIDCClient } = await import('./index-BZrYAvLs.mjs');
59
+ const { SSOOIDCClient } = await import('./index-ScWmGA41.mjs');
60
60
  const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
61
61
  const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
62
62
  region: ssoRegion ?? init.clientConfig?.region,
@@ -67,7 +67,7 @@ const getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
67
67
  };
68
68
 
69
69
  const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
70
- const { CreateTokenCommand } = await import('./index-BZrYAvLs.mjs');
70
+ const { CreateTokenCommand } = await import('./index-ScWmGA41.mjs');
71
71
  const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
72
72
  return ssoOidcClient.send(new CreateTokenCommand({
73
73
  clientId: ssoToken.clientId,
@@ -213,7 +213,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
213
213
  });
214
214
  }
215
215
  const { accessToken } = token;
216
- const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-9hx2nl0k.mjs');
216
+ const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-BZQzknAq.mjs');
217
217
  const sso = ssoClient ||
218
218
  new SSOClient(Object.assign({}, clientConfig ?? {}, {
219
219
  logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
@@ -1,8 +1,8 @@
1
- import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-CGG9e0xu.mjs';
1
+ import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-DbDfog26.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-Bh3OvjNM.mjs';
5
- import './readMergedOptions-atT1xkoe.mjs';
4
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-fgUvbh0C.mjs';
5
+ import './readMergedOptions-BRLqvCpt.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -16,7 +16,7 @@ import 'path';
16
16
  import 'url';
17
17
  import 'dotenv';
18
18
  import 'nanoid';
19
- import './loader-CE4HSRN4.mjs';
19
+ import './loader-V1vbmtyw.mjs';
20
20
  import 'package-directory';
21
21
  import 'yaml';
22
22
  import 'execa';
@@ -26,7 +26,7 @@ import 'node:stream';
26
26
  import 'node:fs';
27
27
  import 'node:https';
28
28
  import 'node:process';
29
- import './sdk-stream-mixin-CMdQ7nO8.mjs';
29
+ import './sdk-stream-mixin-pKJE9QhL.mjs';
30
30
 
31
31
  const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -1,7 +1,7 @@
1
1
  import { readFileSync } from 'node:fs';
2
- import { e as CredentialsProviderError, aO as setCredentialFeature } from './index-CGG9e0xu.mjs';
3
- import { e as externalDataInterceptor } from './externalDataInterceptor-BBvsYwZE.mjs';
4
- import './readMergedOptions-atT1xkoe.mjs';
2
+ import { e as CredentialsProviderError, aO as setCredentialFeature } from './index-DbDfog26.mjs';
3
+ import { e as externalDataInterceptor } from './externalDataInterceptor-m2kSL8CB.mjs';
4
+ import './readMergedOptions-BRLqvCpt.mjs';
5
5
  import 'zod';
6
6
  import '@commander-js/extra-typings';
7
7
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -15,7 +15,7 @@ import 'path';
15
15
  import 'url';
16
16
  import 'dotenv';
17
17
  import 'nanoid';
18
- import './loader-CE4HSRN4.mjs';
18
+ import './loader-V1vbmtyw.mjs';
19
19
  import 'package-directory';
20
20
  import 'yaml';
21
21
  import 'execa';
@@ -25,14 +25,14 @@ import 'node:stream';
25
25
  import 'node:crypto';
26
26
  import 'node:https';
27
27
  import 'node:process';
28
- import './getSSOTokenFromFile-BSeYpbLi.mjs';
28
+ import './getSSOTokenFromFile-Vx7XHoYM.mjs';
29
29
 
30
30
  const fromWebToken = (init) => async (awsIdentityProperties) => {
31
31
  init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
32
32
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
33
33
  let { roleAssumerWithWebIdentity } = init;
34
34
  if (!roleAssumerWithWebIdentity) {
35
- const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-CQoEnkSc.mjs');
35
+ const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-BdwUJ997.mjs');
36
36
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
37
37
  ...init.clientConfig,
38
38
  credentialProviderLogger: init.logger,
@@ -1,10 +1,10 @@
1
- import { e as CredentialsProviderError, W as chain, aO as setCredentialFeature, al as getProfileName, aB as readFile, n as HttpRequest } from './index-CGG9e0xu.mjs';
1
+ import { e as CredentialsProviderError, W as chain, aO as setCredentialFeature, al as getProfileName, aB as readFile, n as HttpRequest } from './index-DbDfog26.mjs';
2
2
  import { createHash, createPrivateKey, createPublicKey, sign } from 'node:crypto';
3
3
  import { promises } from 'node:fs';
4
4
  import { homedir } from 'node:os';
5
5
  import { dirname, join } from 'node:path';
6
- import { p as parseKnownFiles } from './parseKnownFiles-CewXrtbo.mjs';
7
- import './readMergedOptions-atT1xkoe.mjs';
6
+ import { p as parseKnownFiles } from './parseKnownFiles-CCiikesE.mjs';
7
+ import './readMergedOptions-BRLqvCpt.mjs';
8
8
  import 'zod';
9
9
  import '@commander-js/extra-typings';
10
10
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -17,7 +17,7 @@ import 'path';
17
17
  import 'url';
18
18
  import 'dotenv';
19
19
  import 'nanoid';
20
- import './loader-CE4HSRN4.mjs';
20
+ import './loader-V1vbmtyw.mjs';
21
21
  import 'package-directory';
22
22
  import 'yaml';
23
23
  import 'execa';
@@ -29,19 +29,19 @@ import 'node:process';
29
29
  const resolveCredentialSource = (credentialSource, profileName, logger) => {
30
30
  const sourceProvidersMap = {
31
31
  EcsContainer: async (options) => {
32
- const { fromHttp } = await import('./index-CnnI9zSQ.mjs');
33
- const { fromContainerMetadata } = await import('./index-aUz_8rS_.mjs');
32
+ const { fromHttp } = await import('./index-C2z1IV4R.mjs');
33
+ const { fromContainerMetadata } = await import('./index-D1FUmkpH.mjs');
34
34
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
35
35
  return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
36
36
  },
37
37
  Ec2InstanceMetadata: async (options) => {
38
38
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
39
- const { fromInstanceMetadata } = await import('./index-aUz_8rS_.mjs');
39
+ const { fromInstanceMetadata } = await import('./index-D1FUmkpH.mjs');
40
40
  return async () => fromInstanceMetadata(options)().then(setNamedProvider);
41
41
  },
42
42
  Environment: async (options) => {
43
43
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
44
- const { fromEnv } = await import('./index-cIL2r09o.mjs');
44
+ const { fromEnv } = await import('./index-DmR_hk_x.mjs');
45
45
  return async () => fromEnv(options)().then(setNamedProvider);
46
46
  },
47
47
  };
@@ -83,7 +83,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, call
83
83
  const profileData = profiles[profileName];
84
84
  const { source_profile, region } = profileData;
85
85
  if (!options.roleAssumer) {
86
- const { getDefaultRoleAssumer } = await import('./index-CQoEnkSc.mjs');
86
+ const { getDefaultRoleAssumer } = await import('./index-BdwUJ997.mjs');
87
87
  options.roleAssumer = getDefaultRoleAssumer({
88
88
  ...options.clientConfig,
89
89
  credentialProviderLogger: options.logger,
@@ -169,7 +169,7 @@ class LoginCredentialsFetcher {
169
169
  return this.profileData.login_session;
170
170
  }
171
171
  async refresh(token) {
172
- const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-DLciMnJ6.mjs');
172
+ const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-DavD95qI.mjs');
173
173
  const { logger, userAgentAppId } = this.callerClientConfig ?? {};
174
174
  const isH2 = (requestHandler) => {
175
175
  return requestHandler?.metadata?.handlerProtocol === "h2";
@@ -418,13 +418,13 @@ const resolveLoginCredentials = async (profileName, options, callerClientConfig)
418
418
  };
419
419
 
420
420
  const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
421
- const resolveProcessCredentials = async (options, profile) => import('./index-GcL_Hrrr.mjs').then(({ fromProcess }) => fromProcess({
421
+ const resolveProcessCredentials = async (options, profile) => import('./index-BupFFAuS.mjs').then(({ fromProcess }) => fromProcess({
422
422
  ...options,
423
423
  profile,
424
424
  })().then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
425
425
 
426
426
  const resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
427
- const { fromSSO } = await import('./index-C-9h7h7x.mjs');
427
+ const { fromSSO } = await import('./index-R829pajs.mjs');
428
428
  return fromSSO({
429
429
  profile,
430
430
  logger: options.logger,
@@ -471,7 +471,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
471
471
  typeof arg.web_identity_token_file === "string" &&
472
472
  typeof arg.role_arn === "string" &&
473
473
  ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
474
- const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => import('./index-DmynYewb.mjs').then(({ fromTokenFile }) => fromTokenFile({
474
+ const resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => import('./index-UolIX-qt.mjs').then(({ fromTokenFile }) => fromTokenFile({
475
475
  webIdentityTokenFile: profile.web_identity_token_file,
476
476
  roleArn: profile.role_arn,
477
477
  roleSessionName: profile.role_session_name,
@@ -1,8 +1,8 @@
1
- import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-CGG9e0xu.mjs';
1
+ import { aE as resolveAwsSdkSigV4Config, au as normalizeProvider, ap as getSmithyContext, B as BinaryDecisionDiagram, l as EndpointCache, $ as decideEndpoint, Q as awsEndpointFunctions, Z as customEndpointFunctions, M as ServiceException, T as TypeRegistry, aT as toUtf8, a8 as fromUtf8, aA as parseUrl, x as NoOpLogger, b as AwsSdkSigV4Signer, w as NoAuthSigner, aR as toBase64, a6 as fromBase64, a1 as emitWarningIfUnsupportedVersion, aG as resolveDefaultsModeConfig, a2 as emitWarningIfUnsupportedVersion$1, aQ as streamCollector, V as calculateBodyLength, ar as loadConfig, N as NODE_APP_ID_CONFIG_OPTIONS, v as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, u as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, H as Hash, s as NODE_RETRY_MODE_CONFIG_OPTIONS, D as DEFAULT_RETRY_MODE, y as NodeHttpHandler, q as NODE_REGION_CONFIG_FILE_OPTIONS, r as NODE_REGION_CONFIG_OPTIONS, p as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, Y as createDefaultUserAgentProvider, o as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, as as loadConfigsForDefaultMode, aa as getAwsRegionExtensionConfiguration, ad as getDefaultExtensionConfiguration, ai as getHttpHandlerExtensionConfiguration, aC as resolveAwsRegionExtensionConfiguration, aF as resolveDefaultRuntimeConfig, aJ as resolveHttpHandlerRuntimeConfig, c as Client, aN as resolveUserAgentConfig, aM as resolveRetryConfig, aL as resolveRegionConfig, aH as resolveEndpointConfig, ao as getSchemaSerdePlugin, aq as getUserAgentPlugin, an as getRetryPlugin, ac as getContentLengthPlugin, ag as getHostHeaderPlugin, ak as getLoggerPlugin, am as getRecursionDetectionPlugin, ah as getHttpAuthSchemeEndpointRuleSetPlugin, f as DefaultIdentityProviderConfig, aj as getHttpSigningPlugin, aI as resolveHostHeaderConfig, d as Command, ae as getEndpointPlugin } from './index-DbDfog26.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-Bh3OvjNM.mjs';
5
- import './readMergedOptions-atT1xkoe.mjs';
4
+ import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-fgUvbh0C.mjs';
5
+ import './readMergedOptions-BRLqvCpt.mjs';
6
6
  import 'zod';
7
7
  import '@commander-js/extra-typings';
8
8
  import './readDotenvCascade-Dgx4SC1p.mjs';
@@ -16,7 +16,7 @@ import 'path';
16
16
  import 'url';
17
17
  import 'dotenv';
18
18
  import 'nanoid';
19
- import './loader-CE4HSRN4.mjs';
19
+ import './loader-V1vbmtyw.mjs';
20
20
  import 'package-directory';
21
21
  import 'yaml';
22
22
  import 'execa';
@@ -26,7 +26,7 @@ import 'node:stream';
26
26
  import 'node:fs';
27
27
  import 'node:https';
28
28
  import 'node:process';
29
- import './sdk-stream-mixin-CMdQ7nO8.mjs';
29
+ import './sdk-stream-mixin-pKJE9QhL.mjs';
30
30
 
31
31
  const defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -41,6 +41,8 @@ const processEnvSchema = z.record(z.string(), z.string().optional());
41
41
  const getDotenvOptionsSchemaRaw = z.object({
42
42
  /** Default environment name when `env` is not provided. */
43
43
  defaultEnv: z.string().optional(),
44
+ /** Env var name in global dotenv files that specifies the default environment. */
45
+ defaultEnvKey: z.string().optional(),
44
46
  /** Base dotenv filename token (default `.env`). */
45
47
  dotenvToken: z.string().optional(),
46
48
  /** Path to a dynamic variables module (JS/TS) to load and apply. */
@@ -1,4 +1,4 @@
1
- import { at as loadSharedConfigFiles } from './index-CGG9e0xu.mjs';
1
+ import { at as loadSharedConfigFiles } from './index-DbDfog26.mjs';
2
2
 
3
3
  const mergeConfigFiles = (...files) => {
4
4
  const merged = {};
@@ -10,7 +10,7 @@ import 'node:buffer';
10
10
  import 'crypto';
11
11
  import { fileURLToPath } from 'url';
12
12
  import 'dotenv';
13
- import { g as getDotenvOptionsSchemaResolved, r as resolveGetDotenvConfigSources } from './loader-CE4HSRN4.mjs';
13
+ import { g as getDotenvOptionsSchemaResolved, r as resolveGetDotenvConfigSources } from './loader-V1vbmtyw.mjs';
14
14
  import { packageDirectory } from 'package-directory';
15
15
 
16
16
  /**
@@ -143,6 +143,7 @@ const baseScripts = {
143
143
  * @public
144
144
  */
145
145
  const baseRootOptionDefaults = {
146
+ defaultEnvKey: 'DEFAULT_ENV',
146
147
  dotenvToken: '.env',
147
148
  loadProcess: true,
148
149
  logger: console,
@@ -355,8 +356,29 @@ const computeContext = async (customOptions, plugins, hostMetaUrl) => {
355
356
  const validated = getDotenvOptionsSchemaResolved.parse(optionsResolved);
356
357
  // Discover config sources.
357
358
  const sources = await resolveGetDotenvConfigSources(hostMetaUrl);
359
+ // Pre-pass: read global-only files to resolve defaultEnvKey (skip when env is explicit).
360
+ let fileDefaultEnv;
361
+ if (!validated.env) {
362
+ const defaultEnvKey = validated.defaultEnvKey ?? 'DEFAULT_ENV';
363
+ const prePass = await readDotenvCascadeWithProvenance({
364
+ paths: Array.isArray(validated.paths) ? validated.paths : [],
365
+ ...(typeof validated.dotenvToken === 'string'
366
+ ? { dotenvToken: validated.dotenvToken }
367
+ : {}),
368
+ ...(typeof validated.privateToken === 'string'
369
+ ? { privateToken: validated.privateToken }
370
+ : {}),
371
+ excludeEnv: true,
372
+ });
373
+ fileDefaultEnv = prePass.dotenv[defaultEnvKey];
374
+ }
375
+ // Resolution: env > fileDefaultEnv > defaultEnv
376
+ const envName = validated.env
377
+ ?? (typeof fileDefaultEnv === 'string' && fileDefaultEnv.length > 0
378
+ ? fileDefaultEnv
379
+ : undefined)
380
+ ?? validated.defaultEnv;
358
381
  // Base dotenv from files (with file provenance; no dynamics; no programmatic vars; no side effects).
359
- const envName = validated.env ?? validated.defaultEnv;
360
382
  const fileRes = await readDotenvCascadeWithProvenance({
361
383
  paths: Array.isArray(validated.paths) ? validated.paths : [],
362
384
  ...(typeof validated.dotenvToken === 'string'
@@ -365,10 +387,7 @@ const computeContext = async (customOptions, plugins, hostMetaUrl) => {
365
387
  ...(typeof validated.privateToken === 'string'
366
388
  ? { privateToken: validated.privateToken }
367
389
  : {}),
368
- ...(typeof validated.env === 'string' ? { env: validated.env } : {}),
369
- ...(typeof validated.defaultEnv === 'string'
370
- ? { defaultEnv: validated.defaultEnv }
371
- : {}),
390
+ ...(typeof envName === 'string' ? { env: envName } : {}),
372
391
  ...(validated.excludeEnv === true ? { excludeEnv: true } : {}),
373
392
  ...(validated.excludeGlobal === true ? { excludeGlobal: true } : {}),
374
393
  ...(validated.excludePrivate === true ? { excludePrivate: true } : {}),
@@ -549,7 +568,7 @@ function definePlugin(spec) {
549
568
  */
550
569
  const attachRootOptions = (program, defaults) => {
551
570
  const GROUP = 'base';
552
- const { defaultEnv, dotenvToken, dynamicPath, env, outputPath, paths, pathsDelimiter, pathsDelimiterPattern, privateToken, varsAssignor, varsAssignorPattern, varsDelimiter, varsDelimiterPattern, } = defaults ?? {};
571
+ const { defaultEnv, defaultEnvKey, dotenvToken, dynamicPath, env, outputPath, paths, pathsDelimiter, pathsDelimiterPattern, privateToken, varsAssignor, varsAssignorPattern, varsDelimiter, varsDelimiterPattern, } = defaults ?? {};
553
572
  const va = typeof defaults?.varsAssignor === 'string' ? defaults.varsAssignor : '=';
554
573
  const vd = typeof defaults?.varsDelimiter === 'string' ? defaults.varsDelimiter : ' ';
555
574
  // Helper: append (default) tags for ON/OFF toggles
@@ -731,6 +750,12 @@ const attachRootOptions = (program, defaults) => {
731
750
  o1.default(defaultEnv);
732
751
  program.addOption(o1);
733
752
  program.setOptionGroup(o1, GROUP);
753
+ const o1b = new Option('--default-env-key <string>', 'env var name in global dotenv files that specifies the default environment (dotenv-expanded)');
754
+ o1b.argParser(dotenvExpandFromProcessEnv);
755
+ if (defaultEnvKey !== undefined)
756
+ o1b.default(defaultEnvKey);
757
+ program.addOption(o1b);
758
+ program.setOptionGroup(o1b, GROUP);
734
759
  const o2 = new Option('--dotenv-token <string>', 'dotenv-expanded token indicating a dotenv file');
735
760
  o2.argParser(dotenvExpandFromProcessEnv);
736
761
  if (dotenvToken !== undefined)
@@ -1,4 +1,4 @@
1
- import { c as baseRootOptionDefaults, d as defaultsDeep } from './readMergedOptions-atT1xkoe.mjs';
1
+ import { c as baseRootOptionDefaults, d as defaultsDeep } from './readMergedOptions-BRLqvCpt.mjs';
2
2
  import 'radash';
3
3
  import 'node:buffer';
4
4
  import 'fs-extra';
@@ -1,5 +1,5 @@
1
1
  import { Writable, Readable } from 'node:stream';
2
- import { aS as toHex, a5 as fromArrayBuffer } from './index-CGG9e0xu.mjs';
2
+ import { aS as toHex, a5 as fromArrayBuffer } from './index-DbDfog26.mjs';
3
3
 
4
4
  const isReadableStream = (stream) => typeof ReadableStream === "function" &&
5
5
  (stream?.constructor?.name === ReadableStream.name || stream instanceof ReadableStream);
@@ -1,4 +1,4 @@
1
- import { g as definePlugin } from './readMergedOptions-atT1xkoe.mjs';
1
+ import { g as definePlugin } from './readMergedOptions-BRLqvCpt.mjs';
2
2
 
3
3
  /**
4
4
  * Create a namespace-only parent plugin (a group command) for composing plugins
package/dist/cli.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>>;
@@ -271,6 +273,8 @@ interface RootOptionsShape {
271
273
  redactPatterns?: string[];
272
274
  /** Default target environment when not specified. */
273
275
  defaultEnv?: string;
276
+ /** Env var name in global dotenv files that specifies the default environment. */
277
+ defaultEnvKey?: string;
274
278
  /** Token indicating a dotenv file (default: ".env"). */
275
279
  dotenvToken?: string;
276
280
  /** Path to dynamic variables module (default: undefined). */
package/dist/cli.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { c as createCli } from './chunks/createCli-wmAcTdWR.mjs';
1
+ export { c as createCli } from './chunks/createCli-B9De0dbB.mjs';
2
2
  import 'zod';
3
3
  import 'path';
4
- import './chunks/loader-CE4HSRN4.mjs';
4
+ import './chunks/loader-V1vbmtyw.mjs';
5
5
  import 'fs-extra';
6
6
  import 'package-directory';
7
7
  import 'url';
@@ -13,16 +13,16 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
13
13
  import 'crypto';
14
14
  import '@commander-js/extra-typings';
15
15
  import 'nanoid';
16
- import './chunks/readMergedOptions-atT1xkoe.mjs';
16
+ import './chunks/readMergedOptions-BRLqvCpt.mjs';
17
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-BLSqCGm7.mjs';
21
+ import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
22
22
  import './chunks/validate-CDl0rE6k.mjs';
23
23
  import './plugins-aws.mjs';
24
24
  import './chunks/spawnEnv-CKgnHGpr.mjs';
25
- import './chunks/index-CGG9e0xu.mjs';
25
+ import './chunks/index-DbDfog26.mjs';
26
26
  import 'node:os';
27
27
  import 'node:fs/promises';
28
28
  import 'node:stream';
@@ -33,7 +33,7 @@ import 'node:process';
33
33
  import './plugins-batch.mjs';
34
34
  import './chunks/invoke-DuRPU1oC.mjs';
35
35
  import 'globby';
36
- import './chunks/index-BhMXFr37.mjs';
36
+ import './chunks/index-CcxIt23B.mjs';
37
37
  import './plugins-init.mjs';
38
38
  import 'readline/promises';
39
39
  import 'node:url';
package/dist/cliHost.d.ts CHANGED
@@ -145,6 +145,7 @@ type DotenvProvenance = Record<string, DotenvProvenanceEntry[]>;
145
145
  */
146
146
  declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
147
147
  defaultEnv: z.ZodOptional<z.ZodString>;
148
+ defaultEnvKey: z.ZodOptional<z.ZodString>;
148
149
  dotenvToken: z.ZodOptional<z.ZodString>;
149
150
  dynamicPath: z.ZodOptional<z.ZodString>;
150
151
  dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -196,6 +197,7 @@ declare const getDotenvCliOptionsSchemaResolved: z.ZodObject<{
196
197
  */
197
198
  declare const getDotenvOptionsSchemaResolved: z.ZodObject<{
198
199
  defaultEnv: z.ZodOptional<z.ZodString>;
200
+ defaultEnvKey: z.ZodOptional<z.ZodString>;
199
201
  dotenvToken: z.ZodOptional<z.ZodString>;
200
202
  dynamicPath: z.ZodOptional<z.ZodString>;
201
203
  dynamic: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
@@ -272,6 +274,8 @@ interface RootOptionsShape {
272
274
  redactPatterns?: string[];
273
275
  /** Default target environment when not specified. */
274
276
  defaultEnv?: string;
277
+ /** Env var name in global dotenv files that specifies the default environment. */
278
+ defaultEnvKey?: string;
275
279
  /** Token indicating a dotenv file (default: ".env"). */
276
280
  dotenvToken?: string;
277
281
  /** Path to dynamic variables module (default: undefined). */
package/dist/cliHost.mjs CHANGED
@@ -1,7 +1,7 @@
1
- export { G as GetDotenvCli, g as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-atT1xkoe.mjs';
1
+ export { G as GetDotenvCli, g as definePlugin, r as readMergedOptions } from './chunks/readMergedOptions-BRLqvCpt.mjs';
2
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';
3
+ export { b as baseGetDotenvCliOptions, r as resolveCliOptions } from './chunks/resolveCliOptions-Bbv0tNSF.mjs';
4
+ export { d as defineScripts, g as groupPlugins } from './chunks/types-BfKw9R-k.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';
@@ -17,7 +17,7 @@ import 'path';
17
17
  import 'url';
18
18
  import 'dotenv';
19
19
  import 'nanoid';
20
- import './chunks/loader-CE4HSRN4.mjs';
20
+ import './chunks/loader-V1vbmtyw.mjs';
21
21
  import 'package-directory';
22
22
  import 'yaml';
23
23
  import 'execa';
package/dist/config.d.ts CHANGED
@@ -56,6 +56,8 @@ interface RootOptionsShape {
56
56
  redactPatterns?: string[];
57
57
  /** Default target environment when not specified. */
58
58
  defaultEnv?: string;
59
+ /** Env var name in global dotenv files that specifies the default environment. */
60
+ defaultEnvKey?: string;
59
61
  /** Token indicating a dotenv file (default: ".env"). */
60
62
  dotenvToken?: string;
61
63
  /** Path to dynamic variables module (default: undefined). */
package/dist/config.mjs CHANGED
@@ -1,4 +1,4 @@
1
- export { d as discoverConfigFiles, l as loadConfigFile, r as resolveGetDotenvConfigSources, t as toFileUrl } from './chunks/loader-CE4HSRN4.mjs';
1
+ export { d as discoverConfigFiles, l as loadConfigFile, r as resolveGetDotenvConfigSources, t as toFileUrl } from './chunks/loader-V1vbmtyw.mjs';
2
2
  export { v as validateEnvAgainstSources } from './chunks/validate-CDl0rE6k.mjs';
3
3
  import 'fs-extra';
4
4
  import 'package-directory';
@@ -56,6 +56,8 @@ interface RootOptionsShape {
56
56
  redactPatterns?: string[];
57
57
  /** Default target environment when not specified. */
58
58
  defaultEnv?: string;
59
+ /** Env var name in global dotenv files that specifies the default environment. */
60
+ defaultEnvKey?: string;
59
61
  /** Token indicating a dotenv file (default: ".env"). */
60
62
  dotenvToken?: string;
61
63
  /** Path to dynamic variables module (default: undefined). */
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- import { c as createCli } from './chunks/createCli-wmAcTdWR.mjs';
2
+ import { c as createCli } from './chunks/createCli-B9De0dbB.mjs';
3
3
  import 'zod';
4
4
  import 'path';
5
- import './chunks/loader-CE4HSRN4.mjs';
5
+ import './chunks/loader-V1vbmtyw.mjs';
6
6
  import 'fs-extra';
7
7
  import 'package-directory';
8
8
  import 'url';
@@ -14,16 +14,16 @@ import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
14
14
  import 'crypto';
15
15
  import '@commander-js/extra-typings';
16
16
  import 'nanoid';
17
- import './chunks/readMergedOptions-atT1xkoe.mjs';
17
+ import './chunks/readMergedOptions-BRLqvCpt.mjs';
18
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-BLSqCGm7.mjs';
22
+ import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
23
23
  import './chunks/validate-CDl0rE6k.mjs';
24
24
  import './plugins-aws.mjs';
25
25
  import './chunks/spawnEnv-CKgnHGpr.mjs';
26
- import './chunks/index-CGG9e0xu.mjs';
26
+ import './chunks/index-DbDfog26.mjs';
27
27
  import 'node:os';
28
28
  import 'node:fs/promises';
29
29
  import 'node:stream';
@@ -34,7 +34,7 @@ import 'node:process';
34
34
  import './plugins-batch.mjs';
35
35
  import './chunks/invoke-DuRPU1oC.mjs';
36
36
  import 'globby';
37
- import './chunks/index-BhMXFr37.mjs';
37
+ import './chunks/index-CcxIt23B.mjs';
38
38
  import './plugins-init.mjs';
39
39
  import 'readline/promises';
40
40
  import 'node:url';
package/dist/index.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>>;
@@ -271,6 +273,8 @@ interface RootOptionsShape {
271
273
  redactPatterns?: string[];
272
274
  /** Default target environment when not specified. */
273
275
  defaultEnv?: string;
276
+ /** Env var name in global dotenv files that specifies the default environment. */
277
+ defaultEnvKey?: string;
274
278
  /** Token indicating a dotenv file (default: ".env"). */
275
279
  dotenvToken?: string;
276
280
  /** Path to dynamic variables module (default: undefined). */
@@ -1109,6 +1113,8 @@ interface BaseRootOptionDefaults {
1109
1113
  entropyMinLength: number;
1110
1114
  /** Regex patterns (as strings) to suppress entropy warnings by key. */
1111
1115
  entropyWhitelist: string[];
1116
+ /** Env var name in global dotenv files that specifies the default environment. */
1117
+ defaultEnvKey: string;
1112
1118
  /** Default dotenv search paths (stringly, CLI-compatible). */
1113
1119
  paths: string;
1114
1120
  /** Paths delimiter used for the `--paths` string. */
package/dist/index.mjs CHANGED
@@ -1,8 +1,8 @@
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';
1
+ export { c as createCli } from './chunks/createCli-B9De0dbB.mjs';
2
+ import { j as resolveGetDotenvOptions, w as writeDotenvFile } from './chunks/readMergedOptions-BRLqvCpt.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-BRLqvCpt.mjs';
4
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';
5
+ export { d as defineScripts, g as groupPlugins } from './chunks/types-BfKw9R-k.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,8 +10,8 @@ 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 { a as redactObject, m as maybeWarnEntropy } from './chunks/index-BhMXFr37.mjs';
14
- export { r as redactDisplay, t as traceChildEnv } from './chunks/index-BhMXFr37.mjs';
13
+ import { a as redactObject, m as maybeWarnEntropy } from './chunks/index-CcxIt23B.mjs';
14
+ export { r as redactDisplay, t as traceChildEnv } from './chunks/index-CcxIt23B.mjs';
15
15
  import { r as readDotenv, e as dotenvExpandAll, a as applyDynamicMap, l as loadAndApplyDynamic } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
16
16
  export { d as dotenvExpand, f as dotenvExpandFromProcessEnv } from './chunks/readDotenvCascade-Dgx4SC1p.mjs';
17
17
  import fs from 'fs-extra';
@@ -19,15 +19,15 @@ import path from 'node:path';
19
19
  import 'crypto';
20
20
  import 'url';
21
21
  import 'dotenv';
22
- import './chunks/loader-CE4HSRN4.mjs';
22
+ import './chunks/loader-V1vbmtyw.mjs';
23
23
  import 'package-directory';
24
24
  import 'yaml';
25
25
  import 'execa';
26
26
  import './chunks/helpConfig-CGejgwWW.mjs';
27
- import './chunks/resolveCliOptions-BLSqCGm7.mjs';
27
+ import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
28
28
  import './chunks/validate-CDl0rE6k.mjs';
29
29
  import './plugins-aws.mjs';
30
- import './chunks/index-CGG9e0xu.mjs';
30
+ import './chunks/index-DbDfog26.mjs';
31
31
  import 'node:os';
32
32
  import 'node:fs/promises';
33
33
  import 'node:stream';
@@ -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>>;
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-atT1xkoe.mjs';
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,7 +10,7 @@ import 'url';
10
10
  import '@commander-js/extra-typings';
11
11
  import 'nanoid';
12
12
  import 'dotenv';
13
- import './chunks/loader-CE4HSRN4.mjs';
13
+ import './chunks/loader-V1vbmtyw.mjs';
14
14
  import 'package-directory';
15
15
  import 'yaml';
16
16
  import { z } from 'zod';
@@ -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>>;
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-atT1xkoe.mjs';
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,7 +10,7 @@ import 'url';
10
10
  import { Command } from '@commander-js/extra-typings';
11
11
  import 'nanoid';
12
12
  import 'dotenv';
13
- import './chunks/loader-CE4HSRN4.mjs';
13
+ import './chunks/loader-V1vbmtyw.mjs';
14
14
  import { packageDirectory } from 'package-directory';
15
15
  import 'yaml';
16
16
  import { z } from 'zod';
@@ -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>>;
@@ -1,5 +1,5 @@
1
1
  import 'radash';
2
- import './chunks/readMergedOptions-atT1xkoe.mjs';
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-CE4HSRN4.mjs';
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-BhMXFr37.mjs';
17
+ export { c as cmdPlugin } from './chunks/index-CcxIt23B.mjs';
18
18
  import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
19
19
  import './chunks/loadModuleDefault-Dj8B3Stt.mjs';
20
20
  import './chunks/spawnEnv-CKgnHGpr.mjs';
21
21
  import './chunks/invoke-DuRPU1oC.mjs';
22
- import './chunks/resolveCliOptions-BLSqCGm7.mjs';
22
+ import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
@@ -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>>;
@@ -1,4 +1,4 @@
1
- import { r as readMergedOptions, g as definePlugin } from './chunks/readMergedOptions-atT1xkoe.mjs';
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,7 +10,7 @@ import 'url';
10
10
  import '@commander-js/extra-typings';
11
11
  import 'nanoid';
12
12
  import 'dotenv';
13
- import './chunks/loader-CE4HSRN4.mjs';
13
+ import './chunks/loader-V1vbmtyw.mjs';
14
14
  import { packageDirectory } from 'package-directory';
15
15
  import 'yaml';
16
16
  import 'zod';
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,9 +1,9 @@
1
1
  export { awsPlugin, getAwsRegion } from './plugins-aws.mjs';
2
- export { R as awsWhoamiPlugin } from './chunks/index-CGG9e0xu.mjs';
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-BhMXFr37.mjs';
4
+ export { c as cmdPlugin } from './chunks/index-CcxIt23B.mjs';
5
5
  export { initPlugin } from './plugins-init.mjs';
6
- import './chunks/readMergedOptions-atT1xkoe.mjs';
6
+ import './chunks/readMergedOptions-BRLqvCpt.mjs';
7
7
  import 'zod';
8
8
  import '@commander-js/extra-typings';
9
9
  import './chunks/readDotenvCascade-Dgx4SC1p.mjs';
@@ -17,7 +17,7 @@ import 'path';
17
17
  import 'url';
18
18
  import 'dotenv';
19
19
  import 'nanoid';
20
- import './chunks/loader-CE4HSRN4.mjs';
20
+ import './chunks/loader-V1vbmtyw.mjs';
21
21
  import 'package-directory';
22
22
  import 'yaml';
23
23
  import 'execa';
@@ -31,6 +31,6 @@ import 'node:https';
31
31
  import 'node:process';
32
32
  import './chunks/invoke-DuRPU1oC.mjs';
33
33
  import 'globby';
34
- import './chunks/resolveCliOptions-BLSqCGm7.mjs';
34
+ import './chunks/resolveCliOptions-Bbv0tNSF.mjs';
35
35
  import 'readline/promises';
36
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.2"
224
+ "version": "7.0.3"
225
225
  }