@larkup/cli 0.3.21 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{analytics-store-UU5MX3JA.js → analytics-store-6SZQ7JBE.js} +1 -1
- package/dist/{chunk-RV756WXU.js → chunk-52FEKTCQ.js} +1079 -1033
- package/dist/{chunk-2PEO3NCV.js → chunk-5VCEWBIF.js} +4 -4
- package/dist/{chunk-5YXDD2GC.js → chunk-7MWCEBXG.js} +139 -139
- package/dist/{chunk-4SOSQVIA.js → chunk-D4V74FXY.js} +4 -4
- package/dist/{chunk-2QOWBHZK.js → chunk-IYRX2FOU.js} +10 -10
- package/dist/{chunk-FDCIUBLI.js → chunk-MA7PMBAQ.js} +18 -18
- package/dist/{chunk-EFPXIMED.js → chunk-MSJ5HF3C.js} +3 -3
- package/dist/{chunk-G5BURVQB.js → chunk-MXXWLVUQ.js} +3 -3
- package/dist/{chunk-JAIHHTKN.js → chunk-OMUGJ6MM.js} +62 -61
- package/dist/{chunk-HTNZPVID.js → chunk-RAMGCJ3D.js} +38 -35
- package/dist/{chunk-OXX5AQPP.js → chunk-TBMEIDA5.js} +39 -2
- package/dist/{chunk-PTQR3VCA.js → chunk-TPHCE6EK.js} +44 -45
- package/dist/{chunk-D3H2VEHZ.js → chunk-VFPIXPQD.js} +9 -9
- package/dist/{chunk-6B7OTI2Y.js → chunk-VV5N6AER.js} +2 -2
- package/dist/{chunk-RUMUOFC7.js → chunk-WXYQJAMD.js} +2 -2
- package/dist/{chunk-WSDGBXA3.js → chunk-WZJD24FL.js} +71 -71
- package/dist/{dist-es-DXUGAPLS.js → dist-es-3EVRA57P.js} +8 -8
- package/dist/{dist-es-OOS7VNC3.js → dist-es-6NUJXRYS.js} +10 -10
- package/dist/{dist-es-2OQPXBWH.js → dist-es-A6GXGSOI.js} +8 -8
- package/dist/{dist-es-ZM2PC6Y7.js → dist-es-BNVRZPYQ.js} +22 -22
- package/dist/{dist-es-MNMQ7EY7.js → dist-es-FBYK33UR.js} +2 -2
- package/dist/{dist-es-27PHRDP5.js → dist-es-JD3OKSCB.js} +11 -9
- package/dist/{dist-es-I2CSW44W.js → dist-es-O2QZUQ4K.js} +219 -219
- package/dist/{dist-es-YACWQ6TD.js → dist-es-XSLSUFFE.js} +18 -18
- package/dist/{dist-es-P55SOOJS.js → dist-es-YYRJPI37.js} +5 -5
- package/dist/{dist-es-TVPOX7SI.js → dist-es-ZZIU2OSM.js} +9 -9
- package/dist/{event-streams-7VYAXCGO.js → event-streams-5YVZPWZL.js} +3 -3
- package/dist/index.js +22 -27
- package/dist/{loadSso-MPKJCJHV.js → loadSso-HQ4CEKJL.js} +25 -23
- package/dist/{signin-WY5DIZ6I.js → signin-EGXTPMOE.js} +28 -26
- package/dist/{sso-oidc-6P6INS3W.js → sso-oidc-XLG4JOZS.js} +27 -25
- package/dist/{sts-2EDS5GKI.js → sts-643ZZLFZ.js} +30 -28
- package/dist/{tool-loader-LURY25XY.js → tool-loader-BOX7F5OA.js} +2 -2
- package/dist/{tool-registry-I7553RRN.js → tool-registry-X2BVIZJS.js} +1 -1
- package/package.json +14 -14
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NodeHttpHandler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TPHCE6EK.js";
|
|
4
4
|
import {
|
|
5
5
|
setCredentialFeature
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-52FEKTCQ.js";
|
|
7
|
+
import "./chunk-OMUGJ6MM.js";
|
|
8
8
|
import {
|
|
9
9
|
CredentialsProviderError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WZJD24FL.js";
|
|
11
11
|
import {
|
|
12
12
|
HttpRequest,
|
|
13
13
|
parseRfc3339DateTime,
|
|
14
14
|
sdkStreamMixin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7MWCEBXG.js";
|
|
16
16
|
import "./chunk-QGM4M3NI.js";
|
|
17
17
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.86/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19
19
|
import fs from "fs/promises";
|
|
20
20
|
|
|
21
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
21
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.86/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
22
22
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
23
23
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
24
24
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -52,7 +52,7 @@ var checkUrl = (url, logger) => {
|
|
|
52
52
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
53
53
|
};
|
|
54
54
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
55
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.86/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
56
56
|
function createGetRequest(url) {
|
|
57
57
|
return new HttpRequest({
|
|
58
58
|
protocol: url.protocol,
|
|
@@ -95,7 +95,7 @@ async function getCredentials(response, logger) {
|
|
|
95
95
|
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
98
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.86/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
99
99
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
100
100
|
return async () => {
|
|
101
101
|
for (let i = 0; i < maxRetries; ++i) {
|
|
@@ -109,7 +109,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
109
109
|
};
|
|
110
110
|
};
|
|
111
111
|
|
|
112
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
112
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.86/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
113
113
|
var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
114
114
|
var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
115
115
|
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-52FEKTCQ.js";
|
|
4
|
+
import "./chunk-OMUGJ6MM.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-WZJD24FL.js";
|
|
9
|
+
import "./chunk-7MWCEBXG.js";
|
|
10
10
|
import "./chunk-QGM4M3NI.js";
|
|
11
11
|
|
|
12
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
12
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.90/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
13
13
|
import { readFileSync } from "fs";
|
|
14
14
|
|
|
15
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.90/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
16
16
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
17
17
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
18
18
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
19
19
|
let { roleAssumerWithWebIdentity } = init;
|
|
20
20
|
if (!roleAssumerWithWebIdentity) {
|
|
21
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-
|
|
21
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-643ZZLFZ.js");
|
|
22
22
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
23
23
|
...init.clientConfig,
|
|
24
24
|
credentialProviderLogger: init.logger,
|
|
@@ -39,7 +39,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
42
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.90/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
43
43
|
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
44
44
|
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
45
45
|
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-52FEKTCQ.js";
|
|
4
|
+
import "./chunk-OMUGJ6MM.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
chain,
|
|
8
8
|
getProfileName,
|
|
9
9
|
parseKnownFiles
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-WZJD24FL.js";
|
|
11
|
+
import "./chunk-7MWCEBXG.js";
|
|
12
12
|
import "./chunk-QGM4M3NI.js";
|
|
13
13
|
|
|
14
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
14
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
15
15
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
16
16
|
const sourceProvidersMap = {
|
|
17
17
|
EcsContainer: async (options) => {
|
|
18
|
-
const { fromHttp } = await import("./dist-es-
|
|
19
|
-
const { fromContainerMetadata } = await import("./dist-es-
|
|
18
|
+
const { fromHttp } = await import("./dist-es-6NUJXRYS.js");
|
|
19
|
+
const { fromContainerMetadata } = await import("./dist-es-FBYK33UR.js");
|
|
20
20
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
21
21
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
22
22
|
},
|
|
23
23
|
Ec2InstanceMetadata: async (options) => {
|
|
24
24
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
25
|
-
const { fromInstanceMetadata } = await import("./dist-es-
|
|
25
|
+
const { fromInstanceMetadata } = await import("./dist-es-FBYK33UR.js");
|
|
26
26
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
27
27
|
},
|
|
28
28
|
Environment: async (options) => {
|
|
29
29
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
30
|
-
const { fromEnv } = await import("./dist-es-
|
|
30
|
+
const { fromEnv } = await import("./dist-es-YYRJPI37.js");
|
|
31
31
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
32
32
|
}
|
|
33
33
|
};
|
|
@@ -39,7 +39,7 @@ var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
|
39
39
|
};
|
|
40
40
|
var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
41
41
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
42
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
43
43
|
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
44
44
|
return Boolean(arg) && typeof arg === "object" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && (isAssumeRoleWithSourceProfile(arg, { profile, logger }) || isCredentialSourceProfile(arg, { profile, logger }));
|
|
45
45
|
};
|
|
@@ -62,7 +62,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, caller
|
|
|
62
62
|
const profileData = profiles[profileName];
|
|
63
63
|
const { source_profile, region } = profileData;
|
|
64
64
|
if (!options.roleAssumer) {
|
|
65
|
-
const { getDefaultRoleAssumer } = await import("./sts-
|
|
65
|
+
const { getDefaultRoleAssumer } = await import("./sts-643ZZLFZ.js");
|
|
66
66
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
67
67
|
...options.clientConfig,
|
|
68
68
|
credentialProviderLogger: options.logger,
|
|
@@ -106,12 +106,12 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
106
106
|
return !section.role_arn && !!section.credential_source;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
109
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
110
110
|
var isLoginProfile = (data) => {
|
|
111
111
|
return Boolean(data && data.login_session);
|
|
112
112
|
};
|
|
113
113
|
var resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
114
|
-
const { fromLoginCredentials } = await import("./dist-es-
|
|
114
|
+
const { fromLoginCredentials } = await import("./dist-es-JD3OKSCB.js");
|
|
115
115
|
const credentials = await fromLoginCredentials({
|
|
116
116
|
...options,
|
|
117
117
|
profile: profileName
|
|
@@ -119,10 +119,10 @@ var resolveLoginCredentials = async (profileName, options, callerClientConfig) =
|
|
|
119
119
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
120
120
|
};
|
|
121
121
|
|
|
122
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
122
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
123
123
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
124
124
|
var resolveProcessCredentials = async (options, profile) => {
|
|
125
|
-
const { fromProcess } = await import("./dist-es-
|
|
125
|
+
const { fromProcess } = await import("./dist-es-3EVRA57P.js");
|
|
126
126
|
const credentials = await fromProcess({
|
|
127
127
|
...options,
|
|
128
128
|
profile
|
|
@@ -130,9 +130,9 @@ var resolveProcessCredentials = async (options, profile) => {
|
|
|
130
130
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
133
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
134
134
|
var resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
135
|
-
const { fromSSO } = await import("./dist-es-
|
|
135
|
+
const { fromSSO } = await import("./dist-es-XSLSUFFE.js");
|
|
136
136
|
return fromSSO({
|
|
137
137
|
profile,
|
|
138
138
|
logger: options.logger,
|
|
@@ -150,7 +150,7 @@ var resolveSsoCredentials = async (profile, profileData, options = {}, callerCli
|
|
|
150
150
|
};
|
|
151
151
|
var isSsoProfile = (arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string");
|
|
152
152
|
|
|
153
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
153
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
154
154
|
var isStaticCredsProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.aws_access_key_id === "string" && typeof arg.aws_secret_access_key === "string" && ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1 && ["undefined", "string"].indexOf(typeof arg.aws_account_id) > -1;
|
|
155
155
|
var resolveStaticCredentials = async (profile, options) => {
|
|
156
156
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
@@ -164,10 +164,10 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
164
164
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
165
165
|
};
|
|
166
166
|
|
|
167
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
167
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
168
168
|
var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
|
|
169
169
|
var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
170
|
-
const { fromTokenFile } = await import("./dist-es-
|
|
170
|
+
const { fromTokenFile } = await import("./dist-es-A6GXGSOI.js");
|
|
171
171
|
const credentials = await fromTokenFile({
|
|
172
172
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
173
173
|
roleArn: profile.role_arn,
|
|
@@ -181,7 +181,7 @@ var resolveWebIdentityCredentials = async (profile, options, callerClientConfig)
|
|
|
181
181
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
184
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
185
185
|
var resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
186
186
|
const data = profiles[profileName];
|
|
187
187
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -208,7 +208,7 @@ var resolveProfileData = async (profileName, profiles, options, callerClientConf
|
|
|
208
208
|
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
209
209
|
};
|
|
210
210
|
|
|
211
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
211
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.30/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
212
212
|
var fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
213
213
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
214
214
|
const profiles = await parseKnownFiles(init);
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
CredentialsProviderError,
|
|
3
3
|
ProviderError,
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-WZJD24FL.js";
|
|
6
6
|
import {
|
|
7
7
|
parseUrl
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7MWCEBXG.js";
|
|
9
9
|
import "./chunk-QGM4M3NI.js";
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-52FEKTCQ.js";
|
|
4
|
+
import "./chunk-OMUGJ6MM.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
getProfileName,
|
|
8
8
|
parseKnownFiles
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-WZJD24FL.js";
|
|
10
10
|
import {
|
|
11
11
|
HttpRequest
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-7MWCEBXG.js";
|
|
13
13
|
import "./chunk-QGM4M3NI.js";
|
|
14
14
|
|
|
15
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.92/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
16
16
|
import { createHash, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
17
17
|
import { promises as fs } from "fs";
|
|
18
18
|
import { homedir } from "os";
|
|
@@ -66,13 +66,14 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
66
66
|
if (freshExpiry - Date.now() > _LoginCredentialsFetcher.REFRESH_THRESHOLD) {
|
|
67
67
|
return this.toCredentials(freshToken.accessToken);
|
|
68
68
|
}
|
|
69
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-
|
|
69
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-EGXTPMOE.js");
|
|
70
70
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
71
71
|
const isH2 = (requestHandler2) => {
|
|
72
72
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
73
73
|
};
|
|
74
74
|
const requestHandler = isH2(this.callerClientConfig?.requestHandler) ? void 0 : this.callerClientConfig?.requestHandler;
|
|
75
|
-
const
|
|
75
|
+
const signInRegion = typeof freshToken.signInRegion === "string" && freshToken.signInRegion.length > 0 ? freshToken.signInRegion : void 0;
|
|
76
|
+
const region = signInRegion ?? this.profileData.region ?? await this.callerClientConfig?.region?.() ?? process.env.AWS_REGION;
|
|
76
77
|
const client = new SigninClient({
|
|
77
78
|
credentials: {
|
|
78
79
|
accessKeyId: "",
|
|
@@ -82,7 +83,8 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
82
83
|
requestHandler,
|
|
83
84
|
logger,
|
|
84
85
|
userAgentAppId,
|
|
85
|
-
...this.init?.clientConfig
|
|
86
|
+
...this.init?.clientConfig,
|
|
87
|
+
...signInRegion && { region: signInRegion }
|
|
86
88
|
});
|
|
87
89
|
this.createDPoPInterceptor(client.middlewareStack);
|
|
88
90
|
const commandInput = {
|
|
@@ -272,7 +274,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
272
274
|
}
|
|
273
275
|
};
|
|
274
276
|
|
|
275
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
277
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.92/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
276
278
|
var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
277
279
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
278
280
|
const profiles = await parseKnownFiles(init || {});
|