@larkup/cli 0.3.22 → 0.3.25
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/{bowser-KBMRPWZW.js → bowser-ASWGABFI.js} +164 -121
- package/dist/{chunk-M4T7TRRC.js → chunk-5BSYIRDU.js} +101 -99
- package/dist/{chunk-JKTTCUZ3.js → chunk-6DABOFED.js} +45 -43
- package/dist/chunk-7EA4HEQD.js +34 -0
- package/dist/{chunk-G4JLV4D2.js → chunk-7FM7FGTQ.js} +44 -45
- package/dist/{chunk-3HURSQNH.js → chunk-7TW2TQDP.js} +2 -2
- package/dist/{chunk-G542PEOG.js → chunk-CONEIN76.js} +12 -40
- package/dist/{chunk-SUBMQE2G.js → chunk-H7OL7A3G.js} +29 -29
- package/dist/{chunk-NMIRIGDS.js → chunk-HQBHXWFO.js} +25 -25
- package/dist/{chunk-TEVXZRMI.js → chunk-ILXTFN5F.js} +73 -71
- package/dist/{chunk-CQRTVM3R.js → chunk-J7WYSJV7.js} +41 -36
- package/dist/{chunk-YL567TPU.js → chunk-JI3YBGMX.js} +4 -4
- package/dist/{chunk-4Y7OLVDR.js → chunk-K4ZAP2B4.js} +4 -4
- package/dist/{chunk-VMIDDBSU.js → chunk-KS7UJLUP.js} +3 -3
- package/dist/{chunk-5UNSW2YQ.js → chunk-MJ2NZ7GC.js} +2 -2
- package/dist/{chunk-MEKWGOS5.js → chunk-R344ACAN.js} +3 -3
- package/dist/{chunk-TX2W2TDD.js → chunk-UQHNRXYH.js} +3 -3
- package/dist/{chunk-5YXDD2GC.js → chunk-YK4G67UU.js} +135 -163
- package/dist/{chunk-MTXSOKLF.js → chunk-ZXBQA42I.js} +1066 -1027
- package/dist/{chunk-5LXQQ3B5.js → chunk-ZYEAPZDK.js} +67 -64
- package/dist/{dist-es-EYJKNFZZ.js → dist-es-3UDUJKAW.js} +10 -9
- package/dist/{dist-es-I5PEXU6M.js → dist-es-3ZGN24NL.js} +6 -5
- package/dist/{dist-es-HOKTEA4H.js → dist-es-6VWQDGTA.js} +23 -22
- package/dist/{dist-es-IBDQOMV4.js → dist-es-DJYED3JX.js} +21 -20
- package/dist/{dist-es-KLJ57YTV.js → dist-es-HKJET4EN.js} +3 -2
- package/dist/{dist-es-GCJ2YN2W.js → dist-es-JZZWWWB2.js} +15 -12
- package/dist/{dist-es-RSHHKZQR.js → dist-es-RQTS5BDT.js} +287 -236
- package/dist/{dist-es-SM3XZOJI.js → dist-es-RUHE7T2I.js} +11 -10
- package/dist/{dist-es-64SQQSB2.js → dist-es-S4JBTIGW.js} +9 -8
- package/dist/{dist-es-WKOKSFRW.js → dist-es-TGIPXSQR.js} +9 -8
- package/dist/{event-streams-DO25HTN4.js → event-streams-5GHJY7DB.js} +3 -2
- package/dist/{event-streams-DE7Y6VJA.js → event-streams-7GD5LM2F.js} +19 -18
- package/dist/index.js +92 -60
- package/dist/{loadSso-RBMT5EPI.js → loadSso-QUU5KKBX.js} +27 -26
- package/dist/{signin-S7FYOH5Y.js → signin-KDNHL2KM.js} +30 -29
- package/dist/{sso-oidc-YVLODDDB.js → sso-oidc-BNG5ERAX.js} +29 -28
- package/dist/{sts-R6CUYWGQ.js → sts-K53JNAYZ.js} +32 -31
- package/dist/{tool-loader-ZRVSMB4T.js → tool-loader-3TBSU7FY.js} +2 -2
- package/dist/{tool-registry-FLO7V4FK.js → tool-registry-HJLG5I6X.js} +1 -1
- package/package.json +12 -12
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-ZXBQA42I.js";
|
|
4
|
+
import "./chunk-ZYEAPZDK.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-ILXTFN5F.js";
|
|
11
|
+
import "./chunk-YK4G67UU.js";
|
|
12
|
+
import "./chunk-7EA4HEQD.js";
|
|
12
13
|
import "./chunk-QGM4M3NI.js";
|
|
13
14
|
|
|
14
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
15
16
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
16
17
|
const sourceProvidersMap = {
|
|
17
18
|
EcsContainer: async (options) => {
|
|
18
|
-
const { fromHttp } = await import("./dist-es-
|
|
19
|
-
const { fromContainerMetadata } = await import("./dist-es-
|
|
19
|
+
const { fromHttp } = await import("./dist-es-RUHE7T2I.js");
|
|
20
|
+
const { fromContainerMetadata } = await import("./dist-es-HKJET4EN.js");
|
|
20
21
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
21
22
|
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
22
23
|
},
|
|
23
24
|
Ec2InstanceMetadata: async (options) => {
|
|
24
25
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
25
|
-
const { fromInstanceMetadata } = await import("./dist-es-
|
|
26
|
+
const { fromInstanceMetadata } = await import("./dist-es-HKJET4EN.js");
|
|
26
27
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
27
28
|
},
|
|
28
29
|
Environment: async (options) => {
|
|
29
30
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
30
|
-
const { fromEnv } = await import("./dist-es-
|
|
31
|
+
const { fromEnv } = await import("./dist-es-3ZGN24NL.js");
|
|
31
32
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
32
33
|
}
|
|
33
34
|
};
|
|
@@ -39,7 +40,7 @@ var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
|
39
40
|
};
|
|
40
41
|
var setNamedProvider = (creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
41
42
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
43
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
43
44
|
var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
|
|
44
45
|
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
46
|
};
|
|
@@ -62,7 +63,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, caller
|
|
|
62
63
|
const profileData = profiles[profileName];
|
|
63
64
|
const { source_profile, region } = profileData;
|
|
64
65
|
if (!options.roleAssumer) {
|
|
65
|
-
const { getDefaultRoleAssumer } = await import("./sts-
|
|
66
|
+
const { getDefaultRoleAssumer } = await import("./sts-K53JNAYZ.js");
|
|
66
67
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
67
68
|
...options.clientConfig,
|
|
68
69
|
credentialProviderLogger: options.logger,
|
|
@@ -106,12 +107,12 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
106
107
|
return !section.role_arn && !!section.credential_source;
|
|
107
108
|
};
|
|
108
109
|
|
|
109
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
110
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveLoginCredentials.js
|
|
110
111
|
var isLoginProfile = (data) => {
|
|
111
112
|
return Boolean(data && data.login_session);
|
|
112
113
|
};
|
|
113
114
|
var resolveLoginCredentials = async (profileName, options, callerClientConfig) => {
|
|
114
|
-
const { fromLoginCredentials } = await import("./dist-es-
|
|
115
|
+
const { fromLoginCredentials } = await import("./dist-es-JZZWWWB2.js");
|
|
115
116
|
const credentials = await fromLoginCredentials({
|
|
116
117
|
...options,
|
|
117
118
|
profile: profileName
|
|
@@ -119,10 +120,10 @@ var resolveLoginCredentials = async (profileName, options, callerClientConfig) =
|
|
|
119
120
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
|
|
120
121
|
};
|
|
121
122
|
|
|
122
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
123
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
123
124
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
124
125
|
var resolveProcessCredentials = async (options, profile) => {
|
|
125
|
-
const { fromProcess } = await import("./dist-es-
|
|
126
|
+
const { fromProcess } = await import("./dist-es-S4JBTIGW.js");
|
|
126
127
|
const credentials = await fromProcess({
|
|
127
128
|
...options,
|
|
128
129
|
profile
|
|
@@ -130,9 +131,9 @@ var resolveProcessCredentials = async (options, profile) => {
|
|
|
130
131
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_PROCESS", "v");
|
|
131
132
|
};
|
|
132
133
|
|
|
133
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
134
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
134
135
|
var resolveSsoCredentials = async (profile, profileData, options = {}, callerClientConfig) => {
|
|
135
|
-
const { fromSSO } = await import("./dist-es-
|
|
136
|
+
const { fromSSO } = await import("./dist-es-DJYED3JX.js");
|
|
136
137
|
return fromSSO({
|
|
137
138
|
profile,
|
|
138
139
|
logger: options.logger,
|
|
@@ -150,7 +151,7 @@ var resolveSsoCredentials = async (profile, profileData, options = {}, callerCli
|
|
|
150
151
|
};
|
|
151
152
|
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
153
|
|
|
153
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
154
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
|
|
154
155
|
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
156
|
var resolveStaticCredentials = async (profile, options) => {
|
|
156
157
|
options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
|
|
@@ -164,10 +165,10 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
164
165
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
|
|
165
166
|
};
|
|
166
167
|
|
|
167
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
168
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
168
169
|
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
170
|
var resolveWebIdentityCredentials = async (profile, options, callerClientConfig) => {
|
|
170
|
-
const { fromTokenFile } = await import("./dist-es-
|
|
171
|
+
const { fromTokenFile } = await import("./dist-es-TGIPXSQR.js");
|
|
171
172
|
const credentials = await fromTokenFile({
|
|
172
173
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
173
174
|
roleArn: profile.role_arn,
|
|
@@ -181,7 +182,7 @@ var resolveWebIdentityCredentials = async (profile, options, callerClientConfig)
|
|
|
181
182
|
return setCredentialFeature(credentials, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q");
|
|
182
183
|
};
|
|
183
184
|
|
|
184
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
185
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
185
186
|
var resolveProfileData = async (profileName, profiles, options, callerClientConfig, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
|
|
186
187
|
const data = profiles[profileName];
|
|
187
188
|
if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
|
|
@@ -208,7 +209,7 @@ var resolveProfileData = async (profileName, profiles, options, callerClientConf
|
|
|
208
209
|
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
209
210
|
};
|
|
210
211
|
|
|
211
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.
|
|
212
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-ini@3.973.31/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
212
213
|
var fromIni = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
213
214
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
|
214
215
|
const profiles = await parseKnownFiles(init);
|
|
@@ -5,32 +5,33 @@ import {
|
|
|
5
5
|
getSSOTokenFromFile as getSSOTokenFromFile2,
|
|
6
6
|
loadSsoSessionData as loadSsoSessionData2,
|
|
7
7
|
parseKnownFiles as parseKnownFiles2
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6DABOFED.js";
|
|
9
9
|
import {
|
|
10
10
|
setCredentialFeature
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-ZXBQA42I.js";
|
|
12
|
+
import "./chunk-ZYEAPZDK.js";
|
|
13
13
|
import {
|
|
14
14
|
CredentialsProviderError,
|
|
15
15
|
getProfileName,
|
|
16
16
|
getSSOTokenFromFile,
|
|
17
17
|
loadSsoSessionData,
|
|
18
18
|
parseKnownFiles
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-ILXTFN5F.js";
|
|
20
|
+
import "./chunk-YK4G67UU.js";
|
|
21
|
+
import "./chunk-CONEIN76.js";
|
|
22
|
+
import "./chunk-7EA4HEQD.js";
|
|
22
23
|
import "./chunk-QGM4M3NI.js";
|
|
23
24
|
|
|
24
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
25
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.29/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
25
26
|
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");
|
|
26
27
|
|
|
27
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
28
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
28
29
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1e3;
|
|
29
30
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
30
31
|
|
|
31
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
32
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
32
33
|
var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
33
|
-
const { SSOOIDCClient } = await import("./sso-oidc-
|
|
34
|
+
const { SSOOIDCClient } = await import("./sso-oidc-BNG5ERAX.js");
|
|
34
35
|
const coalesce = (prop) => init.clientConfig?.[prop] ?? init.parentClientConfig?.[prop] ?? callerClientConfig?.[prop];
|
|
35
36
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
36
37
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
@@ -40,9 +41,9 @@ var getSsoOidcClient = async (ssoRegion, init = {}, callerClientConfig) => {
|
|
|
40
41
|
return ssoOidcClient;
|
|
41
42
|
};
|
|
42
43
|
|
|
43
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
44
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
44
45
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConfig) => {
|
|
45
|
-
const { CreateTokenCommand } = await import("./sso-oidc-
|
|
46
|
+
const { CreateTokenCommand } = await import("./sso-oidc-BNG5ERAX.js");
|
|
46
47
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init, callerClientConfig);
|
|
47
48
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
48
49
|
clientId: ssoToken.clientId,
|
|
@@ -52,21 +53,21 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}, callerClientConf
|
|
|
52
53
|
}));
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
56
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
56
57
|
var validateTokenExpiry = (token) => {
|
|
57
58
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
58
59
|
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
59
60
|
}
|
|
60
61
|
};
|
|
61
62
|
|
|
62
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
63
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
63
64
|
var validateTokenKey = (key, value, forRefresh = false) => {
|
|
64
65
|
if (typeof value === "undefined") {
|
|
65
66
|
throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
66
67
|
}
|
|
67
68
|
};
|
|
68
69
|
|
|
69
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
70
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js
|
|
70
71
|
import { promises as fsPromises } from "fs";
|
|
71
72
|
var { writeFile } = fsPromises;
|
|
72
73
|
var writeSSOTokenToFile = (id, ssoToken) => {
|
|
@@ -75,7 +76,7 @@ var writeSSOTokenToFile = (id, ssoToken) => {
|
|
|
75
76
|
return writeFile(tokenFilepath, tokenString);
|
|
76
77
|
};
|
|
77
78
|
|
|
78
|
-
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.
|
|
79
|
+
// ../../node_modules/.pnpm/@aws-sdk+token-providers@3.1175.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
79
80
|
var lastRefreshAttemptTimes = /* @__PURE__ */ new Map();
|
|
80
81
|
var inFlightRefreshes = /* @__PURE__ */ new Map();
|
|
81
82
|
var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
@@ -168,7 +169,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
168
169
|
}
|
|
169
170
|
};
|
|
170
171
|
|
|
171
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
172
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.29/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
172
173
|
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
173
174
|
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
174
175
|
let token;
|
|
@@ -211,7 +212,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
211
212
|
});
|
|
212
213
|
}
|
|
213
214
|
const { accessToken } = token;
|
|
214
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-
|
|
215
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-QUU5KKBX.js");
|
|
215
216
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
216
217
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
217
218
|
region: clientConfig?.region ?? ssoRegion,
|
|
@@ -253,7 +254,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
253
254
|
return credentials;
|
|
254
255
|
};
|
|
255
256
|
|
|
256
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
257
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.29/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
257
258
|
var validateSsoProfile = (profile, logger) => {
|
|
258
259
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
259
260
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -263,7 +264,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
263
264
|
return profile;
|
|
264
265
|
};
|
|
265
266
|
|
|
266
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
267
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.29/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
267
268
|
var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
268
269
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
269
270
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
CredentialsProviderError,
|
|
3
3
|
ProviderError,
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ILXTFN5F.js";
|
|
6
6
|
import {
|
|
7
7
|
parseUrl
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YK4G67UU.js";
|
|
9
|
+
import "./chunk-7EA4HEQD.js";
|
|
9
10
|
import "./chunk-QGM4M3NI.js";
|
|
10
11
|
|
|
11
12
|
// ../../node_modules/.pnpm/@smithy+credential-provider-imds@4.5.2/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-R344ACAN.js";
|
|
2
2
|
import {
|
|
3
3
|
CredentialsProviderError,
|
|
4
4
|
getProfileName,
|
|
5
5
|
parseKnownFiles
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6DABOFED.js";
|
|
7
7
|
import {
|
|
8
8
|
setCredentialFeature
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-ZXBQA42I.js";
|
|
10
|
+
import "./chunk-ZYEAPZDK.js";
|
|
11
|
+
import "./chunk-ILXTFN5F.js";
|
|
12
|
+
import "./chunk-YK4G67UU.js";
|
|
13
13
|
import {
|
|
14
14
|
HttpRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CONEIN76.js";
|
|
16
|
+
import "./chunk-7EA4HEQD.js";
|
|
16
17
|
import "./chunk-QGM4M3NI.js";
|
|
17
18
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
19
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.93/node_modules/@aws-sdk/credential-provider-login/dist-es/LoginCredentialsFetcher.js
|
|
19
20
|
import { createHash, createPrivateKey, createPublicKey, sign } from "crypto";
|
|
20
21
|
import { promises as fs } from "fs";
|
|
21
22
|
import { homedir } from "os";
|
|
@@ -69,13 +70,14 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
69
70
|
if (freshExpiry - Date.now() > _LoginCredentialsFetcher.REFRESH_THRESHOLD) {
|
|
70
71
|
return this.toCredentials(freshToken.accessToken);
|
|
71
72
|
}
|
|
72
|
-
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-
|
|
73
|
+
const { SigninClient, CreateOAuth2TokenCommand } = await import("./signin-KDNHL2KM.js");
|
|
73
74
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
74
75
|
const isH2 = (requestHandler2) => {
|
|
75
76
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
76
77
|
};
|
|
77
78
|
const requestHandler = isH2(this.callerClientConfig?.requestHandler) ? void 0 : this.callerClientConfig?.requestHandler;
|
|
78
|
-
const
|
|
79
|
+
const signInRegion = typeof freshToken.signInRegion === "string" && freshToken.signInRegion.length > 0 ? freshToken.signInRegion : void 0;
|
|
80
|
+
const region = signInRegion ?? this.profileData.region ?? await this.callerClientConfig?.region?.() ?? process.env.AWS_REGION;
|
|
79
81
|
const client = new SigninClient({
|
|
80
82
|
credentials: {
|
|
81
83
|
accessKeyId: "",
|
|
@@ -85,7 +87,8 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
85
87
|
requestHandler,
|
|
86
88
|
logger,
|
|
87
89
|
userAgentAppId,
|
|
88
|
-
...this.init?.clientConfig
|
|
90
|
+
...this.init?.clientConfig,
|
|
91
|
+
...signInRegion && { region: signInRegion }
|
|
89
92
|
});
|
|
90
93
|
this.createDPoPInterceptor(client.middlewareStack);
|
|
91
94
|
const commandInput = {
|
|
@@ -275,7 +278,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
275
278
|
}
|
|
276
279
|
};
|
|
277
280
|
|
|
278
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
281
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.93/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
279
282
|
var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
280
283
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
281
284
|
const profiles = await parseKnownFiles(init || {});
|