@karmaniverous/get-dotenv 7.0.2 → 7.0.4

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 (46) hide show
  1. package/README.md +2 -0
  2. package/dist/chunks/{AwsRestJsonProtocol-Bh3OvjNM.mjs → AwsRestJsonProtocol-4m7HHwvS.mjs} +2 -2
  3. package/dist/chunks/{createCli-wmAcTdWR.mjs → createCli-CVvh-dBp.mjs} +18 -5
  4. package/dist/chunks/{externalDataInterceptor-BBvsYwZE.mjs → externalDataInterceptor-DyDNbv-D.mjs} +2 -2
  5. package/dist/chunks/{getSSOTokenFromFile-BSeYpbLi.mjs → getSSOTokenFromFile-CkYcEieD.mjs} +1 -1
  6. package/dist/chunks/{index-BZrYAvLs.mjs → index-B35hOhgq.mjs} +5 -5
  7. package/dist/chunks/{index-C-9h7h7x.mjs → index-B3fM_U6F.mjs} +8 -8
  8. package/dist/chunks/{index-DLciMnJ6.mjs → index-B_yJRqty.mjs} +5 -5
  9. package/dist/chunks/{index-CGG9e0xu.mjs → index-BuxEK_Z4.mjs} +9 -9
  10. package/dist/chunks/{index-aUz_8rS_.mjs → index-C58EanKv.mjs} +3 -3
  11. package/dist/chunks/{index-GcL_Hrrr.mjs → index-CjWZ4uNg.mjs} +6 -6
  12. package/dist/chunks/{index-CnnI9zSQ.mjs → index-CsI5JuIM.mjs} +4 -4
  13. package/dist/chunks/{index-DmynYewb.mjs → index-D-a5vkZL.mjs} +6 -6
  14. package/dist/chunks/{index-CQoEnkSc.mjs → index-D6iVe1wh.mjs} +3 -3
  15. package/dist/chunks/{index-BhMXFr37.mjs → index-Dd6S1nZ-.mjs} +3 -3
  16. package/dist/chunks/{index-DyRIwYWf.mjs → index-Dl8qC51H.mjs} +3 -3
  17. package/dist/chunks/{index-cIL2r09o.mjs → index-FT37CtcF.mjs} +4 -4
  18. package/dist/chunks/{index-tlD9zcww.mjs → index-QkVZTs6l.mjs} +13 -13
  19. package/dist/chunks/{loadSso-9hx2nl0k.mjs → loadSso-DF7GLUZf.mjs} +5 -5
  20. package/dist/chunks/{loader-CE4HSRN4.mjs → loader-V1vbmtyw.mjs} +2 -0
  21. package/dist/chunks/{parseKnownFiles-CewXrtbo.mjs → parseKnownFiles-BZNrX_JE.mjs} +1 -1
  22. package/dist/chunks/{readMergedOptions-atT1xkoe.mjs → readMergedOptions-CraAnYdB.mjs} +33 -7
  23. package/dist/chunks/{resolveCliOptions-BLSqCGm7.mjs → resolveCliOptions-BMBkWDYJ.mjs} +1 -1
  24. package/dist/chunks/{sdk-stream-mixin-CMdQ7nO8.mjs → sdk-stream-mixin-BL49AxZx.mjs} +1 -1
  25. package/dist/chunks/{types-BdKCfPRW.mjs → types-BthqmnDr.mjs} +1 -1
  26. package/dist/cli.d.ts +8 -0
  27. package/dist/cli.mjs +6 -6
  28. package/dist/cliHost.d.ts +8 -0
  29. package/dist/cliHost.mjs +4 -4
  30. package/dist/config.d.ts +2 -0
  31. package/dist/config.mjs +1 -1
  32. package/dist/env-overlay.d.ts +2 -0
  33. package/dist/getdotenv.cli.mjs +6 -6
  34. package/dist/index.d.ts +10 -0
  35. package/dist/index.mjs +9 -9
  36. package/dist/plugins-aws.d.ts +6 -0
  37. package/dist/plugins-aws.mjs +2 -2
  38. package/dist/plugins-batch.d.ts +6 -0
  39. package/dist/plugins-batch.mjs +2 -2
  40. package/dist/plugins-cmd.d.ts +6 -0
  41. package/dist/plugins-cmd.mjs +4 -4
  42. package/dist/plugins-init.d.ts +6 -0
  43. package/dist/plugins-init.mjs +2 -2
  44. package/dist/plugins.d.ts +6 -0
  45. package/dist/plugins.mjs +5 -5
  46. package/package.json +1 -1
package/README.md CHANGED
@@ -88,6 +88,8 @@ Author config in JSON/YAML/JS/TS at your project root. The loader is always on i
88
88
  - Dynamic (JS/TS only): `dynamic`
89
89
  - Validation (JS/TS schema or required keys): `schema`, `requiredKeys`
90
90
 
91
+ Set the target environment dynamically: `defaultEnvKey` names a variable in your global dotenv files (default: `DEFAULT_ENV`) that overrides the static `defaultEnv` when `-e` is not provided.
92
+
91
93
  Overlays apply by kind/env/privacy/source with clear precedence. Details and examples in the [Config guide](./guides/config.md).
92
94
 
93
95
  ## Dynamic variables (JS/TS)
@@ -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-BuxEK_Z4.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-BL49AxZx.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-CraAnYdB.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-BMBkWDYJ.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-BuxEK_Z4.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-Dd6S1nZ-.mjs';
22
22
  import { initPlugin } from '../plugins-init.mjs';
23
23
 
24
24
  const dbg = (...args) => {
@@ -54,6 +54,17 @@ function computeRootDefaults(defaults, sources) {
54
54
  * @param defaults - Optional root defaults overlay.
55
55
  */
56
56
  function installRootHooks(program, defaults) {
57
+ // Propagate resolved env into the options bag so plugins always see
58
+ // the effective environment as bag.env — no defaulting logic needed downstream.
59
+ const propagateResolvedEnv = (merged) => {
60
+ if (program.hasCtx()) {
61
+ const resolvedCtx = program.getCtx();
62
+ if (resolvedCtx.env) {
63
+ merged.env = resolvedCtx.env;
64
+ program._setOptionsBag(merged);
65
+ }
66
+ }
67
+ };
57
68
  // Hook: preSubcommand — always runs for subcommand flows.
58
69
  program.hook('preSubcommand', async (thisCommand) => {
59
70
  const sources = await resolveGetDotenvConfigSources(import.meta.url);
@@ -73,6 +84,7 @@ function installRootHooks(program, defaults) {
73
84
  // Resolve context for this run via programmatic converter.
74
85
  const serviceOptions = getDotenvCliOptions2Options(merged);
75
86
  await program.resolveAndLoad(serviceOptions);
87
+ propagateResolvedEnv(merged);
76
88
  // Refresh dynamic help text using the resolved config slices.
77
89
  try {
78
90
  const ctx = program.getCtx();
@@ -119,6 +131,7 @@ function installRootHooks(program, defaults) {
119
131
  if (!program.hasCtx()) {
120
132
  const serviceOptions = getDotenvCliOptions2Options(merged);
121
133
  await program.resolveAndLoad(serviceOptions);
134
+ propagateResolvedEnv(merged);
122
135
  try {
123
136
  const ctx = program.getCtx();
124
137
  const helpCfg = toHelpConfig(merged, ctx.pluginConfigs);
@@ -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-CkYcEieD.mjs';
2
+ import { a4 as fileIntercept } from './index-BuxEK_Z4.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-BuxEK_Z4.mjs';
5
5
 
6
6
  const getSSOTokenFilepath = (id) => {
7
7
  const hasher = createHash("sha1");
@@ -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-BuxEK_Z4.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-4m7HHwvS.mjs';
5
+ import './readMergedOptions-CraAnYdB.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-BL49AxZx.mjs';
30
30
 
31
31
  const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
32
32
  return {
@@ -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-BuxEK_Z4.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-CkYcEieD.mjs';
4
+ import { p as parseKnownFiles } from './parseKnownFiles-BZNrX_JE.mjs';
5
+ import './readMergedOptions-CraAnYdB.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-B35hOhgq.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-B35hOhgq.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-DF7GLUZf.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-BuxEK_Z4.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-4m7HHwvS.mjs';
5
+ import './readMergedOptions-CraAnYdB.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-BL49AxZx.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-CraAnYdB.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-Dl8qC51H.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-C58EanKv.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-CsI5JuIM.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-B3fM_U6F.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-QkVZTs6l.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-CjWZ4uNg.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-D-a5vkZL.mjs');
6563
6563
  return fromTokenFile(init)(awsIdentityProperties);
6564
6564
  },
6565
6565
  async () => {
@@ -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-BuxEK_Z4.mjs';
4
+ import './readMergedOptions-CraAnYdB.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-BuxEK_Z4.mjs';
4
+ import { e as externalDataInterceptor } from './externalDataInterceptor-DyDNbv-D.mjs';
5
+ import { p as parseKnownFiles } from './parseKnownFiles-BZNrX_JE.mjs';
6
+ import './readMergedOptions-CraAnYdB.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-CkYcEieD.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-BuxEK_Z4.mjs';
3
+ import { s as sdkStreamMixin } from './sdk-stream-mixin-BL49AxZx.mjs';
4
+ import './readMergedOptions-CraAnYdB.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,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-BuxEK_Z4.mjs';
3
+ import { e as externalDataInterceptor } from './externalDataInterceptor-DyDNbv-D.mjs';
4
+ import './readMergedOptions-CraAnYdB.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-CkYcEieD.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-D6iVe1wh.mjs');
36
36
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
37
37
  ...init.clientConfig,
38
38
  credentialProviderLogger: init.logger,
@@ -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-BuxEK_Z4.mjs';
2
2
  import { p as packageInfo } from './package-DbbYaehr.mjs';
3
3
  import 'node:crypto';
4
- import './readMergedOptions-atT1xkoe.mjs';
4
+ import './readMergedOptions-CraAnYdB.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-CraAnYdB.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-BMBkWDYJ.mjs';
21
21
 
22
22
  /** src/diagnostics/entropy.ts
23
23
  * Entropy diagnostics (presentation-only).
@@ -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-BuxEK_Z4.mjs';
3
+ import './readMergedOptions-CraAnYdB.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,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-BuxEK_Z4.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-BuxEK_Z4.mjs';
3
+ import './readMergedOptions-CraAnYdB.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,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-BuxEK_Z4.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-BZNrX_JE.mjs';
7
+ import './readMergedOptions-CraAnYdB.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-CsI5JuIM.mjs');
33
+ const { fromContainerMetadata } = await import('./index-C58EanKv.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-C58EanKv.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-FT37CtcF.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-D6iVe1wh.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-B_yJRqty.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-CjWZ4uNg.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-B3fM_U6F.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-D-a5vkZL.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-BuxEK_Z4.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-4m7HHwvS.mjs';
5
+ import './readMergedOptions-CraAnYdB.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-BL49AxZx.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. */