@karmaniverous/get-dotenv 6.2.4 → 6.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/chunks/{AwsRestJsonProtocol-Bq1HE-Ln.mjs → AwsRestJsonProtocol-Dv5q8CFK.mjs} +2 -2
- package/dist/chunks/{createCli-BY6_cfZr.mjs → createCli-BSn6Be40.mjs} +6 -5
- package/dist/chunks/{externalDataInterceptor-CbsdEYa-.mjs → externalDataInterceptor-pqHO-Qmn.mjs} +2 -2
- package/dist/chunks/{getSSOTokenFromFile-hUSpR7Wf.mjs → getSSOTokenFromFile-otmZHSRV.mjs} +1 -1
- package/dist/chunks/{index-BpCF5UKx.mjs → index-B18W-ELX.mjs} +5 -4
- package/dist/chunks/{index-CeCufHlm.mjs → index-BNcKuiBy.mjs} +11 -10
- package/dist/chunks/{index-DyU5pKKi.mjs → index-Bi0RIILn.mjs} +5 -4
- package/dist/chunks/{index-Bc3h0a95.mjs → index-BqZ3PB6c.mjs} +6 -5
- package/dist/chunks/{index-Dp1Ip6Ra.mjs → index-C4Ac6feq.mjs} +10 -9
- package/dist/chunks/{index-cIunyiUQ.mjs → index-C6uLiKpC.mjs} +5 -4
- package/dist/chunks/{index-C_wqbTwI.mjs → index-CGg5wWCm.mjs} +6 -5
- package/dist/chunks/{index-c7zKtEuy.mjs → index-CXpZ0pei.mjs} +7 -6
- package/dist/chunks/{index-Cu7rdyqN.mjs → index-CYoFYXZv.mjs} +8 -7
- package/dist/chunks/{index-B5JKTBOL.mjs → index-DFNcs3pR.mjs} +7 -6
- package/dist/chunks/{index-BPYF6K_G.mjs → index-DLQEHTw4.mjs} +8 -7
- package/dist/chunks/{index-DWAtHEA-.mjs → index-DtRaL61T.mjs} +5 -4
- package/dist/chunks/{index-BEJFiHMX.mjs → index-eZMlmESW.mjs} +14 -14
- package/dist/chunks/{loadSso-w1eTVg0O.mjs → loadSso-CJ_XUhEj.mjs} +7 -6
- package/dist/chunks/{loader-DnhPeGfq.mjs → loader-CePOf74i.mjs} +1 -0
- package/dist/chunks/{overlayEnv-Bs2kVayG.mjs → overlayEnv-Bqh_kPGA.mjs} +2 -1
- package/dist/chunks/{parseKnownFiles-B9cDK21V.mjs → parseKnownFiles-B6x1cUmR.mjs} +1 -1
- package/dist/chunks/{readMergedOptions-Nt0TR7dX.mjs → readMergedOptions-DLBDzpXX.mjs} +5 -4
- package/dist/chunks/{resolveCliOptions-TFRzhB2c.mjs → resolveCliOptions-_qtsVxda.mjs} +2 -1
- package/dist/chunks/{sdk-stream-mixin-BZoJ5jy9.mjs → sdk-stream-mixin-DCdC70Up.mjs} +1 -1
- package/dist/chunks/{spawnEnv-CN8a7cNR.mjs → spawnEnv-CQwFu7ZJ.mjs} +2 -1
- package/dist/chunks/{types-DJ-BGABd.mjs → types-DdqcXCV1.mjs} +1 -1
- package/dist/cli.mjs +9 -9
- package/dist/cliHost.mjs +7 -6
- package/dist/config.mjs +2 -1
- package/dist/env-overlay.mjs +2 -1
- package/dist/getdotenv.cli.mjs +9 -9
- package/dist/index.d.ts +485 -2
- package/dist/index.mjs +703 -11
- package/dist/plugins-aws.mjs +5 -4
- package/dist/plugins-batch.mjs +5 -4
- package/dist/plugins-cmd.mjs +7 -6
- package/dist/plugins-init.mjs +4 -4
- package/dist/plugins.mjs +8 -8
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,6 +22,7 @@ See full guides:
|
|
|
22
22
|
|
|
23
23
|
- [Getting started](./guides/getting-started.md)
|
|
24
24
|
- [Config and overlays](./guides/config.md) (dynamic, validation, defaults):
|
|
25
|
+
- [Dotenv editor (format-preserving)](./guides/dotenv-editor.md)
|
|
25
26
|
- [Shell execution behavior, quoting, capture](./guides/shell.md)
|
|
26
27
|
- [Shipped plugins](./guides/shipped/index.md)
|
|
27
28
|
- [Authoring plugins](./guides/authoring/index.md) (host, lifecycle, exec, diagnostics)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { av as HttpProtocol, aw as NormalizedSchema, H as HttpRequest, ax as translateTraits, ay as extendedEncodeURIComponent, az as collectBody, aA as splitHeader, aB as SerdeContext, aC as FromStringShapeDeserializer, t as toUtf8, i as fromUtf8, aD as v4, aE as LazyJsonString, n as toBase64, aF as determineTimestampFormat, aG as dateToUtcString, aH as NumericValue, aI as SerdeContextConfig, aJ as deserializingStructIterator, m as fromBase64, aK as parseEpochTimestamp, aL as parseRfc7231DateTime, aM as parseRfc3339DateTimeWithOffset, aN as serializingStructIterator, aO as ProtocolLib, an as TypeRegistry } from './index-
|
|
2
|
-
import { s as sdkStreamMixin } from './sdk-stream-mixin-
|
|
1
|
+
import { av as HttpProtocol, aw as NormalizedSchema, H as HttpRequest, ax as translateTraits, ay as extendedEncodeURIComponent, az as collectBody, aA as splitHeader, aB as SerdeContext, aC as FromStringShapeDeserializer, t as toUtf8, i as fromUtf8, aD as v4, aE as LazyJsonString, n as toBase64, aF as determineTimestampFormat, aG as dateToUtcString, aH as NumericValue, aI as SerdeContextConfig, aJ as deserializingStructIterator, m as fromBase64, aK as parseEpochTimestamp, aL as parseRfc7231DateTime, aM as parseRfc3339DateTimeWithOffset, aN as serializingStructIterator, aO as ProtocolLib, an as TypeRegistry } from './index-BNcKuiBy.mjs';
|
|
2
|
+
import { s as sdkStreamMixin } from './sdk-stream-mixin-DCdC70Up.mjs';
|
|
3
3
|
|
|
4
4
|
function quoteHeader(part) {
|
|
5
5
|
if (part.includes(",") || part.includes('"')) {
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import 'zod';
|
|
2
2
|
import 'path';
|
|
3
|
-
import { r as resolveGetDotenvConfigSources } from './loader-
|
|
3
|
+
import { r as resolveGetDotenvConfigSources } from './loader-CePOf74i.mjs';
|
|
4
4
|
import 'fs-extra';
|
|
5
|
-
import {
|
|
5
|
+
import { a as defaultsDeep, g as getDotenvCliOptions2Options, b as baseRootOptionDefaults, G as GetDotenvCli, c as attachRootOptions } from './readMergedOptions-DLBDzpXX.mjs';
|
|
6
|
+
import 'node:path';
|
|
6
7
|
import 'crypto';
|
|
7
8
|
import 'url';
|
|
8
9
|
import 'nanoid';
|
|
9
10
|
import 'dotenv';
|
|
10
11
|
import 'execa';
|
|
11
12
|
import { t as toHelpConfig } from './helpConfig-CGejgwWW.mjs';
|
|
12
|
-
import { r as resolveCliOptions } from './resolveCliOptions-
|
|
13
|
+
import { r as resolveCliOptions } from './resolveCliOptions-_qtsVxda.mjs';
|
|
13
14
|
import { v as validateEnvAgainstSources } from './validate-CDl0rE6k.mjs';
|
|
14
15
|
import { awsPlugin } from '../plugins-aws.mjs';
|
|
15
|
-
import { a as awsWhoamiPlugin } from './index-
|
|
16
|
+
import { a as awsWhoamiPlugin } from './index-BNcKuiBy.mjs';
|
|
16
17
|
import { batchPlugin } from '../plugins-batch.mjs';
|
|
17
|
-
import { c as cmdPlugin } from './index-
|
|
18
|
+
import { c as cmdPlugin } from './index-BqZ3PB6c.mjs';
|
|
18
19
|
import { initPlugin } from '../plugins-init.mjs';
|
|
19
20
|
|
|
20
21
|
const dbg = (...args) => {
|
package/dist/chunks/{externalDataInterceptor-CbsdEYa-.mjs → externalDataInterceptor-pqHO-Qmn.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as tokenIntercept } from './getSSOTokenFromFile-
|
|
2
|
-
import { h as fileIntercept } from './index-
|
|
1
|
+
import { t as tokenIntercept } from './getSSOTokenFromFile-otmZHSRV.mjs';
|
|
2
|
+
import { h as fileIntercept } from './index-BNcKuiBy.mjs';
|
|
3
3
|
|
|
4
4
|
const externalDataInterceptor = {
|
|
5
5
|
getFileRecord() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { readFile } from 'fs/promises';
|
|
2
2
|
import { createHash } from 'crypto';
|
|
3
3
|
import { join } from 'path';
|
|
4
|
-
import { j as getHomeDir } from './index-
|
|
4
|
+
import { j as getHomeDir } from './index-BNcKuiBy.mjs';
|
|
5
5
|
|
|
6
6
|
const getSSOTokenFilepath = (id) => {
|
|
7
7
|
const hasher = createHash("sha1");
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import { t as toUtf8, i as fromUtf8 } from './index-
|
|
2
|
-
import './readMergedOptions-
|
|
1
|
+
import { t as toUtf8, i as fromUtf8 } from './index-BNcKuiBy.mjs';
|
|
2
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@commander-js/extra-typings';
|
|
5
|
-
import './overlayEnv-
|
|
5
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
6
6
|
import 'fs-extra';
|
|
7
|
+
import 'node:path';
|
|
7
8
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
8
9
|
import 'crypto';
|
|
9
10
|
import 'path';
|
|
10
11
|
import 'url';
|
|
11
12
|
import 'nanoid';
|
|
12
13
|
import 'dotenv';
|
|
13
|
-
import './loader-
|
|
14
|
+
import './loader-CePOf74i.mjs';
|
|
14
15
|
import 'package-directory';
|
|
15
16
|
import 'yaml';
|
|
16
17
|
import 'execa';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { d as definePlugin } from './readMergedOptions-
|
|
1
|
+
import { d as definePlugin } from './readMergedOptions-DLBDzpXX.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'fs-extra';
|
|
4
|
+
import 'node:path';
|
|
4
5
|
import crypto$1, { createHmac, createHash } from 'crypto';
|
|
5
6
|
import { sep, join } from 'path';
|
|
6
7
|
import 'url';
|
|
7
8
|
import '@commander-js/extra-typings';
|
|
8
9
|
import 'nanoid';
|
|
9
10
|
import 'dotenv';
|
|
10
|
-
import './loader-
|
|
11
|
+
import './loader-CePOf74i.mjs';
|
|
11
12
|
import 'package-directory';
|
|
12
13
|
import 'yaml';
|
|
13
14
|
import 'zod';
|
|
@@ -2181,7 +2182,7 @@ class HttpProtocol extends SerdeContext {
|
|
|
2181
2182
|
});
|
|
2182
2183
|
}
|
|
2183
2184
|
async loadEventStreamCapability() {
|
|
2184
|
-
const { EventStreamSerde } = await import('./index-
|
|
2185
|
+
const { EventStreamSerde } = await import('./index-B18W-ELX.mjs');
|
|
2185
2186
|
return new EventStreamSerde({
|
|
2186
2187
|
marshaller: this.getEventStreamMarshaller(),
|
|
2187
2188
|
serializer: this.serializer,
|
|
@@ -8482,10 +8483,10 @@ const fromEnv = (init) => async () => {
|
|
|
8482
8483
|
|
|
8483
8484
|
const ENV_IMDS_DISABLED$1 = "AWS_EC2_METADATA_DISABLED";
|
|
8484
8485
|
const remoteProvider = async (init) => {
|
|
8485
|
-
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-
|
|
8486
|
+
const { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata } = await import('./index-DtRaL61T.mjs');
|
|
8486
8487
|
if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) {
|
|
8487
8488
|
init.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");
|
|
8488
|
-
const { fromHttp } = await import('./index-
|
|
8489
|
+
const { fromHttp } = await import('./index-CGg5wWCm.mjs');
|
|
8489
8490
|
return chain(fromHttp(init), fromContainerMetadata(init));
|
|
8490
8491
|
}
|
|
8491
8492
|
if (process.env[ENV_IMDS_DISABLED$1] && process.env[ENV_IMDS_DISABLED$1] !== "false") {
|
|
@@ -8589,22 +8590,22 @@ const defaultProvider = (init = {}) => memoizeChain([
|
|
|
8589
8590
|
if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
|
|
8590
8591
|
throw new CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
|
|
8591
8592
|
}
|
|
8592
|
-
const { fromSSO } = await import('./index-
|
|
8593
|
+
const { fromSSO } = await import('./index-C4Ac6feq.mjs');
|
|
8593
8594
|
return fromSSO(init)(awsIdentityProperties);
|
|
8594
8595
|
},
|
|
8595
8596
|
async (awsIdentityProperties) => {
|
|
8596
8597
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
|
|
8597
|
-
const { fromIni } = await import('./index-
|
|
8598
|
+
const { fromIni } = await import('./index-eZMlmESW.mjs');
|
|
8598
8599
|
return fromIni(init)(awsIdentityProperties);
|
|
8599
8600
|
},
|
|
8600
8601
|
async (awsIdentityProperties) => {
|
|
8601
8602
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
|
|
8602
|
-
const { fromProcess } = await import('./index-
|
|
8603
|
+
const { fromProcess } = await import('./index-CYoFYXZv.mjs');
|
|
8603
8604
|
return fromProcess(init)(awsIdentityProperties);
|
|
8604
8605
|
},
|
|
8605
8606
|
async (awsIdentityProperties) => {
|
|
8606
8607
|
init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
|
|
8607
|
-
const { fromTokenFile } = await import('./index-
|
|
8608
|
+
const { fromTokenFile } = await import('./index-DLQEHTw4.mjs');
|
|
8608
8609
|
return fromTokenFile(init)(awsIdentityProperties);
|
|
8609
8610
|
},
|
|
8610
8611
|
async () => {
|
|
@@ -8777,7 +8778,7 @@ const inferPhysicalRegion = async () => {
|
|
|
8777
8778
|
}
|
|
8778
8779
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
8779
8780
|
try {
|
|
8780
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import('./index-
|
|
8781
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import('./index-DtRaL61T.mjs');
|
|
8781
8782
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
8782
8783
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
8783
8784
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
export { f as ENV_ACCOUNT_ID, e as ENV_CREDENTIAL_SCOPE, d as ENV_EXPIRATION, E as ENV_KEY, b as ENV_SECRET, c as ENV_SESSION, g as fromEnv } from './index-
|
|
2
|
-
import './readMergedOptions-
|
|
1
|
+
export { f as ENV_ACCOUNT_ID, e as ENV_CREDENTIAL_SCOPE, d as ENV_EXPIRATION, E as ENV_KEY, b as ENV_SECRET, c as ENV_SESSION, g as fromEnv } from './index-BNcKuiBy.mjs';
|
|
2
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
3
3
|
import 'zod';
|
|
4
4
|
import '@commander-js/extra-typings';
|
|
5
|
-
import './overlayEnv-
|
|
5
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
6
6
|
import 'fs-extra';
|
|
7
|
+
import 'node:path';
|
|
7
8
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
8
9
|
import 'crypto';
|
|
9
10
|
import 'path';
|
|
10
11
|
import 'url';
|
|
11
12
|
import 'nanoid';
|
|
12
13
|
import 'dotenv';
|
|
13
|
-
import './loader-
|
|
14
|
+
import './loader-CePOf74i.mjs';
|
|
14
15
|
import 'package-directory';
|
|
15
16
|
import 'yaml';
|
|
16
17
|
import 'execa';
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { l as redactTriple, m as maybeWarnEntropy, r as readMergedOptions,
|
|
1
|
+
import { l as redactTriple, m as maybeWarnEntropy, r as readMergedOptions, g as getDotenvCliOptions2Options, d as definePlugin } from './readMergedOptions-DLBDzpXX.mjs';
|
|
2
2
|
import 'execa';
|
|
3
3
|
import 'fs-extra';
|
|
4
|
+
import 'node:path';
|
|
4
5
|
import 'crypto';
|
|
5
6
|
import 'path';
|
|
6
7
|
import 'url';
|
|
7
8
|
import '@commander-js/extra-typings';
|
|
8
9
|
import 'nanoid';
|
|
9
10
|
import 'dotenv';
|
|
10
|
-
import './loader-
|
|
11
|
+
import './loader-CePOf74i.mjs';
|
|
11
12
|
import 'package-directory';
|
|
12
13
|
import 'yaml';
|
|
13
14
|
import { z } from 'zod';
|
|
14
|
-
import {
|
|
15
|
+
import { b as resolveCommand, c as resolveShell, t as tokenize, s as shouldCapture, r as runCommand, d as buildSpawnEnv } from './spawnEnv-CQwFu7ZJ.mjs';
|
|
15
16
|
import { m as maybePreserveNodeEvalArgv, c as composeNestedEnv, s as stripOne } from './invoke-DuRPU1oC.mjs';
|
|
16
|
-
import {
|
|
17
|
-
import { r as resolveCliOptions, b as baseGetDotenvCliOptions } from './resolveCliOptions-
|
|
17
|
+
import { c as dotenvExpandFromProcessEnv } from './overlayEnv-Bqh_kPGA.mjs';
|
|
18
|
+
import { r as resolveCliOptions, b as baseGetDotenvCliOptions } from './resolveCliOptions-_qtsVxda.mjs';
|
|
18
19
|
|
|
19
20
|
/**
|
|
20
21
|
* Trace child env composition with redaction and entropy warnings.
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { aq as ProviderError, ar as IniSectionType, as as CONFIG_PREFIX_SEPARATOR, v as readFile, at as getConfigFilepath, au as parseIni, k as getProfileName, C as CredentialsProviderError, s as setCredentialFeature } from './index-
|
|
1
|
+
import { aq as ProviderError, ar as IniSectionType, as as CONFIG_PREFIX_SEPARATOR, v as readFile, at as getConfigFilepath, au as parseIni, k as getProfileName, C as CredentialsProviderError, s as setCredentialFeature } from './index-BNcKuiBy.mjs';
|
|
2
2
|
import { promises } from 'fs';
|
|
3
|
-
import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-
|
|
4
|
-
import { p as parseKnownFiles } from './parseKnownFiles-
|
|
5
|
-
import './readMergedOptions-
|
|
3
|
+
import { g as getSSOTokenFilepath, a as getSSOTokenFromFile } from './getSSOTokenFromFile-otmZHSRV.mjs';
|
|
4
|
+
import { p as parseKnownFiles } from './parseKnownFiles-B6x1cUmR.mjs';
|
|
5
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@commander-js/extra-typings';
|
|
8
|
-
import './overlayEnv-
|
|
8
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
9
9
|
import 'fs-extra';
|
|
10
|
+
import 'node:path';
|
|
10
11
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
11
12
|
import 'crypto';
|
|
12
13
|
import 'path';
|
|
13
14
|
import 'url';
|
|
14
15
|
import 'nanoid';
|
|
15
16
|
import 'dotenv';
|
|
16
|
-
import './loader-
|
|
17
|
+
import './loader-CePOf74i.mjs';
|
|
17
18
|
import 'package-directory';
|
|
18
19
|
import 'yaml';
|
|
19
20
|
import 'execa';
|
|
@@ -56,7 +57,7 @@ const EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
|
56
57
|
const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
57
58
|
|
|
58
59
|
const getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
59
|
-
const { SSOOIDCClient } = await import('./index-
|
|
60
|
+
const { SSOOIDCClient } = await import('./index-CXpZ0pei.mjs');
|
|
60
61
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop];
|
|
61
62
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
62
63
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -67,7 +68,7 @@ const getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
|
67
68
|
};
|
|
68
69
|
|
|
69
70
|
const getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
70
|
-
const { CreateTokenCommand } = await import('./index-
|
|
71
|
+
const { CreateTokenCommand } = await import('./index-CXpZ0pei.mjs');
|
|
71
72
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
72
73
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
73
74
|
clientId: ssoToken.clientId,
|
|
@@ -220,7 +221,7 @@ const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ss
|
|
|
220
221
|
});
|
|
221
222
|
}
|
|
222
223
|
const { accessToken } = token;
|
|
223
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-
|
|
224
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import('./loadSso-CJ_XUhEj.mjs');
|
|
224
225
|
const sso = ssoClient ||
|
|
225
226
|
new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
226
227
|
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { O as loadConfig, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, aP as AwsQueryProtocol, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin, s as setCredentialFeature } from './index-
|
|
1
|
+
import { O as loadConfig, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, aP as AwsQueryProtocol, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin, s as setCredentialFeature } from './index-BNcKuiBy.mjs';
|
|
2
2
|
import { p as packageInfo } from './package-boo9EyYs.mjs';
|
|
3
|
-
import './readMergedOptions-
|
|
3
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import '@commander-js/extra-typings';
|
|
6
|
-
import './overlayEnv-
|
|
6
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
7
7
|
import 'fs-extra';
|
|
8
|
+
import 'node:path';
|
|
8
9
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
9
10
|
import 'crypto';
|
|
10
11
|
import 'path';
|
|
11
12
|
import 'url';
|
|
12
13
|
import 'nanoid';
|
|
13
14
|
import 'dotenv';
|
|
14
|
-
import './loader-
|
|
15
|
+
import './loader-CePOf74i.mjs';
|
|
15
16
|
import 'package-directory';
|
|
16
17
|
import 'yaml';
|
|
17
18
|
import 'execa';
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import fs from 'fs/promises';
|
|
2
|
-
import { C as CredentialsProviderError, H as HttpRequest, p as parseRfc3339DateTime, N as NodeHttpHandler, s as setCredentialFeature } from './index-
|
|
3
|
-
import { s as sdkStreamMixin } from './sdk-stream-mixin-
|
|
4
|
-
import './readMergedOptions-
|
|
2
|
+
import { C as CredentialsProviderError, H as HttpRequest, p as parseRfc3339DateTime, N as NodeHttpHandler, s as setCredentialFeature } from './index-BNcKuiBy.mjs';
|
|
3
|
+
import { s as sdkStreamMixin } from './sdk-stream-mixin-DCdC70Up.mjs';
|
|
4
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
|
-
import './overlayEnv-
|
|
7
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
8
8
|
import 'fs-extra';
|
|
9
|
+
import 'node:path';
|
|
9
10
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
10
11
|
import 'crypto';
|
|
11
12
|
import 'path';
|
|
12
13
|
import 'url';
|
|
13
14
|
import 'nanoid';
|
|
14
15
|
import 'dotenv';
|
|
15
|
-
import './loader-
|
|
16
|
+
import './loader-CePOf74i.mjs';
|
|
16
17
|
import 'package-directory';
|
|
17
18
|
import 'yaml';
|
|
18
19
|
import 'execa';
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-
|
|
1
|
+
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-BNcKuiBy.mjs';
|
|
2
2
|
import { p as packageInfo } from './package-boo9EyYs.mjs';
|
|
3
|
-
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-
|
|
4
|
-
import './readMergedOptions-
|
|
3
|
+
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-Dv5q8CFK.mjs';
|
|
4
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
|
-
import './overlayEnv-
|
|
7
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
8
8
|
import 'fs-extra';
|
|
9
|
+
import 'node:path';
|
|
9
10
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
10
11
|
import 'crypto';
|
|
11
12
|
import 'path';
|
|
12
13
|
import 'url';
|
|
13
14
|
import 'nanoid';
|
|
14
15
|
import 'dotenv';
|
|
15
|
-
import './loader-
|
|
16
|
+
import './loader-CePOf74i.mjs';
|
|
16
17
|
import 'package-directory';
|
|
17
18
|
import 'yaml';
|
|
18
19
|
import 'execa';
|
|
@@ -24,7 +25,7 @@ import 'https';
|
|
|
24
25
|
import 'stream';
|
|
25
26
|
import 'process';
|
|
26
27
|
import 'node:fs';
|
|
27
|
-
import './sdk-stream-mixin-
|
|
28
|
+
import './sdk-stream-mixin-DCdC70Up.mjs';
|
|
28
29
|
|
|
29
30
|
const defaultSSOOIDCHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
30
31
|
return {
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { exec } from 'child_process';
|
|
2
2
|
import { promisify } from 'util';
|
|
3
|
-
import { s as setCredentialFeature, C as CredentialsProviderError, k as getProfileName } from './index-
|
|
4
|
-
import { e as externalDataInterceptor } from './externalDataInterceptor-
|
|
5
|
-
import { p as parseKnownFiles } from './parseKnownFiles-
|
|
6
|
-
import './readMergedOptions-
|
|
3
|
+
import { s as setCredentialFeature, C as CredentialsProviderError, k as getProfileName } from './index-BNcKuiBy.mjs';
|
|
4
|
+
import { e as externalDataInterceptor } from './externalDataInterceptor-pqHO-Qmn.mjs';
|
|
5
|
+
import { p as parseKnownFiles } from './parseKnownFiles-B6x1cUmR.mjs';
|
|
6
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
7
7
|
import 'zod';
|
|
8
8
|
import '@commander-js/extra-typings';
|
|
9
|
-
import './overlayEnv-
|
|
9
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
10
10
|
import 'fs-extra';
|
|
11
|
+
import 'node:path';
|
|
11
12
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
12
13
|
import 'crypto';
|
|
13
14
|
import 'path';
|
|
14
15
|
import 'url';
|
|
15
16
|
import 'nanoid';
|
|
16
17
|
import 'dotenv';
|
|
17
|
-
import './loader-
|
|
18
|
+
import './loader-CePOf74i.mjs';
|
|
18
19
|
import 'package-directory';
|
|
19
20
|
import 'yaml';
|
|
20
21
|
import 'execa';
|
|
@@ -26,7 +27,7 @@ import 'https';
|
|
|
26
27
|
import 'stream';
|
|
27
28
|
import 'process';
|
|
28
29
|
import 'node:fs';
|
|
29
|
-
import './getSSOTokenFromFile-
|
|
30
|
+
import './getSSOTokenFromFile-otmZHSRV.mjs';
|
|
30
31
|
import 'fs/promises';
|
|
31
32
|
|
|
32
33
|
const getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-
|
|
1
|
+
import { w as resolveAwsSdkSigV4Config, x as normalizeProvider, y as getSmithyContext, z as EndpointCache, A as resolveEndpoint, B as awsEndpointFunctions, D as customEndpointFunctions, t as toUtf8, i as fromUtf8, F as parseUrl, G as NoOpLogger, I as AwsSdkSigV4Signer, J as NoAuthSigner, n as toBase64, m as fromBase64, K as emitWarningIfUnsupportedVersion, L as resolveDefaultsModeConfig, M as emitWarningIfUnsupportedVersion$1, O as loadConfig, r as streamCollector, P as Hash, N as NodeHttpHandler, Q as createDefaultUserAgentProvider, R as calculateBodyLength, S as NODE_APP_ID_CONFIG_OPTIONS, T as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, U as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, V as NODE_RETRY_MODE_CONFIG_OPTIONS, W as DEFAULT_RETRY_MODE, X as NODE_REGION_CONFIG_FILE_OPTIONS, Y as NODE_REGION_CONFIG_OPTIONS, Z as NODE_MAX_ATTEMPT_CONFIG_OPTIONS, _ as NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, $ as loadConfigsForDefaultMode, a0 as getAwsRegionExtensionConfiguration, a1 as getDefaultExtensionConfiguration, a2 as getHttpHandlerExtensionConfiguration, a3 as resolveAwsRegionExtensionConfiguration, a4 as resolveDefaultRuntimeConfig, a5 as resolveHttpHandlerRuntimeConfig, a6 as Client, a7 as resolveUserAgentConfig, a8 as resolveRetryConfig, a9 as resolveRegionConfig, aa as resolveEndpointConfig, ab as resolveHostHeaderConfig, ac as getSchemaSerdePlugin, ad as getUserAgentPlugin, ae as getRetryPlugin, af as getContentLengthPlugin, ag as getHostHeaderPlugin, ah as getLoggerPlugin, ai as getRecursionDetectionPlugin, aj as getHttpAuthSchemeEndpointRuleSetPlugin, ak as DefaultIdentityProviderConfig, al as getHttpSigningPlugin, am as ServiceException, an as TypeRegistry, ao as Command, ap as getEndpointPlugin } from './index-BNcKuiBy.mjs';
|
|
2
2
|
import { p as packageInfo } from './package-boo9EyYs.mjs';
|
|
3
|
-
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-
|
|
4
|
-
import './readMergedOptions-
|
|
3
|
+
import { A as AwsRestJsonProtocol } from './AwsRestJsonProtocol-Dv5q8CFK.mjs';
|
|
4
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import '@commander-js/extra-typings';
|
|
7
|
-
import './overlayEnv-
|
|
7
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
8
8
|
import 'fs-extra';
|
|
9
|
+
import 'node:path';
|
|
9
10
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
10
11
|
import 'crypto';
|
|
11
12
|
import 'path';
|
|
12
13
|
import 'url';
|
|
13
14
|
import 'nanoid';
|
|
14
15
|
import 'dotenv';
|
|
15
|
-
import './loader-
|
|
16
|
+
import './loader-CePOf74i.mjs';
|
|
16
17
|
import 'package-directory';
|
|
17
18
|
import 'yaml';
|
|
18
19
|
import 'execa';
|
|
@@ -24,7 +25,7 @@ import 'https';
|
|
|
24
25
|
import 'stream';
|
|
25
26
|
import 'process';
|
|
26
27
|
import 'node:fs';
|
|
27
|
-
import './sdk-stream-mixin-
|
|
28
|
+
import './sdk-stream-mixin-DCdC70Up.mjs';
|
|
28
29
|
|
|
29
30
|
const defaultSigninHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
30
31
|
return {
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { readFileSync } from 'fs';
|
|
2
|
-
import { e as externalDataInterceptor } from './externalDataInterceptor-
|
|
3
|
-
import { C as CredentialsProviderError, s as setCredentialFeature } from './index-
|
|
4
|
-
import './getSSOTokenFromFile-
|
|
2
|
+
import { e as externalDataInterceptor } from './externalDataInterceptor-pqHO-Qmn.mjs';
|
|
3
|
+
import { C as CredentialsProviderError, s as setCredentialFeature } from './index-BNcKuiBy.mjs';
|
|
4
|
+
import './getSSOTokenFromFile-otmZHSRV.mjs';
|
|
5
5
|
import 'fs/promises';
|
|
6
6
|
import 'crypto';
|
|
7
7
|
import 'path';
|
|
8
|
-
import './readMergedOptions-
|
|
8
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
9
9
|
import 'zod';
|
|
10
10
|
import '@commander-js/extra-typings';
|
|
11
|
-
import './overlayEnv-
|
|
11
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
12
12
|
import 'fs-extra';
|
|
13
|
+
import 'node:path';
|
|
13
14
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
14
15
|
import 'url';
|
|
15
16
|
import 'nanoid';
|
|
16
17
|
import 'dotenv';
|
|
17
|
-
import './loader-
|
|
18
|
+
import './loader-CePOf74i.mjs';
|
|
18
19
|
import 'package-directory';
|
|
19
20
|
import 'yaml';
|
|
20
21
|
import 'execa';
|
|
@@ -32,7 +33,7 @@ const fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
32
33
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
33
34
|
let { roleAssumerWithWebIdentity } = init;
|
|
34
35
|
if (!roleAssumerWithWebIdentity) {
|
|
35
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-
|
|
36
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import('./index-C6uLiKpC.mjs');
|
|
36
37
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
37
38
|
...init.clientConfig,
|
|
38
39
|
credentialProviderLogger: init.logger,
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { parse } from 'url';
|
|
2
2
|
import { Buffer } from 'buffer';
|
|
3
3
|
import { request } from 'http';
|
|
4
|
-
import { aq as ProviderError, C as CredentialsProviderError, F as parseUrl, O as loadConfig } from './index-
|
|
5
|
-
import './readMergedOptions-
|
|
4
|
+
import { aq as ProviderError, C as CredentialsProviderError, F as parseUrl, O as loadConfig } from './index-BNcKuiBy.mjs';
|
|
5
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import '@commander-js/extra-typings';
|
|
8
|
-
import './overlayEnv-
|
|
8
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
9
9
|
import 'fs-extra';
|
|
10
|
+
import 'node:path';
|
|
10
11
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
11
12
|
import 'crypto';
|
|
12
13
|
import 'path';
|
|
13
14
|
import 'nanoid';
|
|
14
15
|
import 'dotenv';
|
|
15
|
-
import './loader-
|
|
16
|
+
import './loader-CePOf74i.mjs';
|
|
16
17
|
import 'package-directory';
|
|
17
18
|
import 'yaml';
|
|
18
19
|
import 'execa';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { C as CredentialsProviderError, s as setCredentialFeature, u as chain, k as getProfileName, v as readFile, H as HttpRequest } from './index-
|
|
1
|
+
import { C as CredentialsProviderError, s as setCredentialFeature, u as chain, k as getProfileName, v as readFile, H as HttpRequest } from './index-BNcKuiBy.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-
|
|
7
|
-
import './readMergedOptions-
|
|
6
|
+
import { p as parseKnownFiles } from './parseKnownFiles-B6x1cUmR.mjs';
|
|
7
|
+
import './readMergedOptions-DLBDzpXX.mjs';
|
|
8
8
|
import 'zod';
|
|
9
9
|
import '@commander-js/extra-typings';
|
|
10
|
-
import './overlayEnv-
|
|
10
|
+
import './overlayEnv-Bqh_kPGA.mjs';
|
|
11
11
|
import 'fs-extra';
|
|
12
12
|
import './loadModuleDefault-Dj8B3Stt.mjs';
|
|
13
13
|
import 'crypto';
|
|
@@ -15,7 +15,7 @@ import 'path';
|
|
|
15
15
|
import 'url';
|
|
16
16
|
import 'nanoid';
|
|
17
17
|
import 'dotenv';
|
|
18
|
-
import './loader-
|
|
18
|
+
import './loader-CePOf74i.mjs';
|
|
19
19
|
import 'package-directory';
|
|
20
20
|
import 'yaml';
|
|
21
21
|
import 'execa';
|
|
@@ -30,19 +30,19 @@ import 'process';
|
|
|
30
30
|
const resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
31
31
|
const sourceProvidersMap = {
|
|
32
32
|
EcsContainer: async (options) => {
|
|
33
|
-
const { fromHttp } = await import('./index-
|
|
34
|
-
const { fromContainerMetadata } = await import('./index-
|
|
33
|
+
const { fromHttp } = await import('./index-CGg5wWCm.mjs');
|
|
34
|
+
const { fromContainerMetadata } = await import('./index-DtRaL61T.mjs');
|
|
35
35
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
36
36
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
37
37
|
},
|
|
38
38
|
Ec2InstanceMetadata: async (options) => {
|
|
39
39
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
40
|
-
const { fromInstanceMetadata } = await import('./index-
|
|
40
|
+
const { fromInstanceMetadata } = await import('./index-DtRaL61T.mjs');
|
|
41
41
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
42
42
|
},
|
|
43
43
|
Environment: async (options) => {
|
|
44
44
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
45
|
-
const { fromEnv } = await import('./index-
|
|
45
|
+
const { fromEnv } = await import('./index-Bi0RIILn.mjs');
|
|
46
46
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
47
47
|
},
|
|
48
48
|
};
|
|
@@ -84,7 +84,7 @@ const resolveAssumeRoleCredentials = async (profileName, profiles, options, visi
|
|
|
84
84
|
const profileData = profiles[profileName];
|
|
85
85
|
const { source_profile, region } = profileData;
|
|
86
86
|
if (!options.roleAssumer) {
|
|
87
|
-
const { getDefaultRoleAssumer } = await import('./index-
|
|
87
|
+
const { getDefaultRoleAssumer } = await import('./index-C6uLiKpC.mjs');
|
|
88
88
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
89
89
|
...options.clientConfig,
|
|
90
90
|
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-
|
|
172
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import('./index-DFNcs3pR.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) => {
|
|
|
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-
|
|
421
|
+
const resolveProcessCredentials = async (options, profile) => import('./index-CYoFYXZv.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 = {}) => {
|
|
427
|
-
const { fromSSO } = await import('./index-
|
|
427
|
+
const { fromSSO } = await import('./index-C4Ac6feq.mjs');
|
|
428
428
|
return fromSSO({
|
|
429
429
|
profile,
|
|
430
430
|
logger: options.logger,
|
|
@@ -469,7 +469,7 @@ const isWebIdentityProfile = (arg) => Boolean(arg) &&
|
|
|
469
469
|
typeof arg.web_identity_token_file === "string" &&
|
|
470
470
|
typeof arg.role_arn === "string" &&
|
|
471
471
|
["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
472
|
-
const resolveWebIdentityCredentials = async (profile, options) => import('./index-
|
|
472
|
+
const resolveWebIdentityCredentials = async (profile, options) => import('./index-DLQEHTw4.mjs').then(({ fromTokenFile }) => fromTokenFile({
|
|
473
473
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
474
474
|
roleArn: profile.role_arn,
|
|
475
475
|
roleSessionName: profile.role_session_name,
|