@larkup/cli 0.3.11 → 0.3.14
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/api-T4HV5OFN.js +6936 -0
- package/dist/{chunk-QAJSSODU.js → chunk-CQ7NVYHT.js} +108 -68
- package/dist/{chunk-2IVYLF4F.js → chunk-CVBK47OT.js} +93 -69
- package/dist/{chunk-QKPH65NY.js → chunk-DE4VP425.js} +16 -16
- package/dist/{chunk-IPKRK5UI.js → chunk-FNZK42G6.js} +3 -3
- package/dist/{chunk-A2PXF6Y7.js → chunk-HBASLJRD.js} +25 -25
- package/dist/{chunk-7KURHXYU.js → chunk-HX45PZFR.js} +44 -44
- package/dist/{chunk-HQPSE5ZU.js → chunk-IJE2RPSN.js} +55 -55
- package/dist/{chunk-ZBGNJVTC.js → chunk-KA5D5NKN.js} +3 -3
- package/dist/{chunk-ERDDY5EQ.js → chunk-LCK6D6SK.js} +4 -4
- package/dist/{chunk-ZYHZIBTH.js → chunk-LREGQMME.js} +44 -36
- package/dist/{chunk-3GL3SZFJ.js → chunk-M5367BNN.js} +12 -40
- package/dist/{chunk-X46UIKQW.js → chunk-OFWLJSVC.js} +5 -5
- package/dist/{chunk-J2AR7L2Q.js → chunk-RJ2NIMTP.js} +2 -2
- package/dist/{chunk-RN25NOBI.js → chunk-V5MXHOEA.js} +3 -3
- package/dist/{chunk-TJPYJ5TS.js → chunk-WH6SGG26.js} +13 -13
- package/dist/chunk-WXRKGSWM.js +34 -0
- package/dist/{chunk-5RGEHTEF.js → chunk-XEB2OVD6.js} +45 -43
- package/dist/{chunk-5BX2UVG2.js → chunk-XFLXM5WU.js} +137 -95
- package/dist/{chunk-MACWQEJS.js → chunk-Z3C6M6AJ.js} +99 -107
- package/dist/{dist-es-YVYT5SVI.js → dist-es-2UI7ONZZ.js} +223 -220
- package/dist/{dist-es-DAE2AYZV.js → dist-es-5D5ADEYS.js} +21 -20
- package/dist/{dist-es-3L6W7F7P.js → dist-es-FI7PADBF.js} +6 -5
- package/dist/{dist-es-PQXH3VYE.js → dist-es-IAOJLUTI.js} +11 -10
- package/dist/{dist-es-6MPMKRLG.js → dist-es-KL7UCI6C.js} +23 -22
- package/dist/{dist-es-CVOBCRJ5.js → dist-es-MAY5SYH5.js} +11 -10
- package/dist/{dist-es-G4H4NZOY.js → dist-es-OED5OOKX.js} +9 -8
- package/dist/{dist-es-UWL5EGDP.js → dist-es-QQMKUAEQ.js} +3 -2
- package/dist/{dist-es-WEJJDMJW.js → dist-es-UJY2ZAAU.js} +10 -9
- package/dist/{dist-es-7LQAPSS6.js → dist-es-Y73OHM5Y.js} +9 -8
- package/dist/{event-streams-RZ2JU5EF.js → event-streams-IXBDR476.js} +3 -2
- package/dist/{event-streams-NVY5IGD3.js → event-streams-JRBKH3UT.js} +19 -18
- package/dist/index.js +17 -17
- package/dist/{lexer-DQCqS3nf-CGRGK47I.js → lexer-CanA6ArK-VIUEPQRT.js} +4 -4
- package/dist/{loadSso-DEHYSFO4.js → loadSso-S4KING47.js} +29 -28
- package/dist/{signin-CTAMN4QW.js → signin-ALRQUKQQ.js} +32 -31
- package/dist/{sso-oidc-ZYLSPNAE.js → sso-oidc-D3TLLZUS.js} +31 -30
- package/dist/{sts-EQDDSBAR.js → sts-PHP2EVI2.js} +45 -41
- package/dist/{tool-loader-JRRAAYTQ.js → tool-loader-K6PLXSLW.js} +2 -2
- package/dist/{tool-registry-WZ2RDXVS.js → tool-registry-G35SY4WN.js} +1 -1
- package/package.json +10 -10
- package/dist/api-X4PHQJTH.js +0 -6943
|
@@ -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-XEB2OVD6.js";
|
|
9
9
|
import {
|
|
10
10
|
setCredentialFeature
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-IJE2RPSN.js";
|
|
12
|
+
import "./chunk-CVBK47OT.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-CQ7NVYHT.js";
|
|
20
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
21
|
+
import "./chunk-M5367BNN.js";
|
|
22
|
+
import "./chunk-WXRKGSWM.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.16/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.1138.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.1138.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-D3TLLZUS.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.1138.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-D3TLLZUS.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.1138.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.1138.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.1138.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.1138.0/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
79
80
|
var lastRefreshAttemptTimes = /* @__PURE__ */ new Map();
|
|
80
81
|
var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
81
82
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
|
@@ -151,7 +152,7 @@ var fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
151
152
|
}
|
|
152
153
|
};
|
|
153
154
|
|
|
154
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
155
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
155
156
|
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
156
157
|
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger }) => {
|
|
157
158
|
let token;
|
|
@@ -194,7 +195,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
194
195
|
});
|
|
195
196
|
}
|
|
196
197
|
const { accessToken } = token;
|
|
197
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-
|
|
198
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./loadSso-S4KING47.js");
|
|
198
199
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
199
200
|
logger: clientConfig?.logger ?? callerClientConfig?.logger ?? parentClientConfig?.logger,
|
|
200
201
|
region: clientConfig?.region ?? ssoRegion,
|
|
@@ -236,7 +237,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
236
237
|
return credentials;
|
|
237
238
|
};
|
|
238
239
|
|
|
239
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
240
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
240
241
|
var validateSsoProfile = (profile, logger) => {
|
|
241
242
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
242
243
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
@@ -246,7 +247,7 @@ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.ht
|
|
|
246
247
|
return profile;
|
|
247
248
|
};
|
|
248
249
|
|
|
249
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.
|
|
250
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-sso@3.973.16/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
250
251
|
var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
251
252
|
init.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");
|
|
252
253
|
const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoSession } = init;
|
|
@@ -6,11 +6,12 @@ import {
|
|
|
6
6
|
ENV_SECRET,
|
|
7
7
|
ENV_SESSION,
|
|
8
8
|
fromEnv
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-KA5D5NKN.js";
|
|
10
|
+
import "./chunk-IJE2RPSN.js";
|
|
11
|
+
import "./chunk-CVBK47OT.js";
|
|
12
|
+
import "./chunk-CQ7NVYHT.js";
|
|
13
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
14
|
+
import "./chunk-WXRKGSWM.js";
|
|
14
15
|
import "./chunk-QGM4M3NI.js";
|
|
15
16
|
export {
|
|
16
17
|
ENV_ACCOUNT_ID,
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import "./chunk-
|
|
1
|
+
import "./chunk-FNZK42G6.js";
|
|
2
2
|
import {
|
|
3
3
|
CredentialsProviderError,
|
|
4
4
|
getProfileName,
|
|
5
5
|
parseKnownFiles
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XEB2OVD6.js";
|
|
7
7
|
import {
|
|
8
8
|
setCredentialFeature
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-IJE2RPSN.js";
|
|
10
|
+
import "./chunk-CVBK47OT.js";
|
|
11
|
+
import "./chunk-CQ7NVYHT.js";
|
|
12
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
13
13
|
import {
|
|
14
14
|
HttpRequest
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-M5367BNN.js";
|
|
16
|
+
import "./chunk-WXRKGSWM.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.79/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,7 +70,7 @@ 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-ALRQUKQQ.js");
|
|
73
74
|
const { logger, userAgentAppId } = this.callerClientConfig ?? {};
|
|
74
75
|
const isH2 = (requestHandler2) => {
|
|
75
76
|
return requestHandler2?.metadata?.handlerProtocol === "h2";
|
|
@@ -275,7 +276,7 @@ var LoginCredentialsFetcher = class _LoginCredentialsFetcher {
|
|
|
275
276
|
}
|
|
276
277
|
};
|
|
277
278
|
|
|
278
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.
|
|
279
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-login@3.972.79/node_modules/@aws-sdk/credential-provider-login/dist-es/fromLoginCredentials.js
|
|
279
280
|
var fromLoginCredentials = (init) => async ({ callerClientConfig } = {}) => {
|
|
280
281
|
init?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");
|
|
281
282
|
const profiles = await parseKnownFiles(init || {});
|
|
@@ -1,33 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IJE2RPSN.js";
|
|
4
|
+
import "./chunk-CVBK47OT.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-CQ7NVYHT.js";
|
|
11
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
12
|
+
import "./chunk-WXRKGSWM.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.17/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-MAY5SYH5.js");
|
|
20
|
+
const { fromContainerMetadata } = await import("./dist-es-QQMKUAEQ.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-QQMKUAEQ.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-FI7PADBF.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.17/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-PHP2EVI2.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.17/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-IAOJLUTI.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.17/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-Y73OHM5Y.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.17/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-5D5ADEYS.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.17/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.17/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-OED5OOKX.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.17/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.17/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);
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NodeHttpHandler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WH6SGG26.js";
|
|
4
4
|
import {
|
|
5
5
|
setCredentialFeature
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-IJE2RPSN.js";
|
|
7
|
+
import "./chunk-CVBK47OT.js";
|
|
8
8
|
import {
|
|
9
9
|
CredentialsProviderError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-CQ7NVYHT.js";
|
|
11
11
|
import {
|
|
12
12
|
HttpRequest,
|
|
13
13
|
parseRfc3339DateTime,
|
|
14
14
|
sdkStreamMixin
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-Z3C6M6AJ.js";
|
|
16
|
+
import "./chunk-WXRKGSWM.js";
|
|
16
17
|
import "./chunk-QGM4M3NI.js";
|
|
17
18
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
19
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.74/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
19
20
|
import fs from "fs/promises";
|
|
20
21
|
|
|
21
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
22
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.74/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
22
23
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
23
24
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
24
25
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -52,7 +53,7 @@ var checkUrl = (url, logger) => {
|
|
|
52
53
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
53
54
|
};
|
|
54
55
|
|
|
55
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
56
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.74/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
56
57
|
function createGetRequest(url) {
|
|
57
58
|
return new HttpRequest({
|
|
58
59
|
protocol: url.protocol,
|
|
@@ -95,7 +96,7 @@ async function getCredentials(response, logger) {
|
|
|
95
96
|
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
96
97
|
}
|
|
97
98
|
|
|
98
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
99
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.74/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
99
100
|
var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
100
101
|
return async () => {
|
|
101
102
|
for (let i = 0; i < maxRetries; ++i) {
|
|
@@ -109,7 +110,7 @@ var retryWrapper = (toRetry, maxRetries, delayMs) => {
|
|
|
109
110
|
};
|
|
110
111
|
};
|
|
111
112
|
|
|
112
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.
|
|
113
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-http@3.972.74/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
113
114
|
var AWS_CONTAINER_CREDENTIALS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
|
|
114
115
|
var DEFAULT_LINK_LOCAL_HOST = "http://169.254.170.2";
|
|
115
116
|
var AWS_CONTAINER_CREDENTIALS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
|
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IJE2RPSN.js";
|
|
4
|
+
import "./chunk-CVBK47OT.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-CQ7NVYHT.js";
|
|
9
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
10
|
+
import "./chunk-WXRKGSWM.js";
|
|
10
11
|
import "./chunk-QGM4M3NI.js";
|
|
11
12
|
|
|
12
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
13
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.78/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
13
14
|
import { readFileSync } from "fs";
|
|
14
15
|
|
|
15
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
16
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.78/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
16
17
|
var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
17
18
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
|
18
19
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
19
20
|
let { roleAssumerWithWebIdentity } = init;
|
|
20
21
|
if (!roleAssumerWithWebIdentity) {
|
|
21
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-
|
|
22
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./sts-PHP2EVI2.js");
|
|
22
23
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
23
24
|
...init.clientConfig,
|
|
24
25
|
credentialProviderLogger: init.logger,
|
|
@@ -39,7 +40,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
39
40
|
});
|
|
40
41
|
};
|
|
41
42
|
|
|
42
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.
|
|
43
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-web-identity@3.972.78/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
43
44
|
var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
|
|
44
45
|
var ENV_ROLE_ARN = "AWS_ROLE_ARN";
|
|
45
46
|
var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
|
|
@@ -2,10 +2,11 @@ import {
|
|
|
2
2
|
CredentialsProviderError,
|
|
3
3
|
ProviderError,
|
|
4
4
|
loadConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-CQ7NVYHT.js";
|
|
6
6
|
import {
|
|
7
7
|
parseUrl
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-Z3C6M6AJ.js";
|
|
9
|
+
import "./chunk-WXRKGSWM.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,24 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatUrl
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V5MXHOEA.js";
|
|
4
4
|
import {
|
|
5
5
|
SignatureV4MultiRegion
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-LCK6D6SK.js";
|
|
7
|
+
import "./chunk-DE4VP425.js";
|
|
8
8
|
import {
|
|
9
9
|
getEndpointFromInstructions
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-CVBK47OT.js";
|
|
11
|
+
import "./chunk-CQ7NVYHT.js";
|
|
12
12
|
import {
|
|
13
13
|
HttpRequest
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Z3C6M6AJ.js";
|
|
15
|
+
import "./chunk-WXRKGSWM.js";
|
|
15
16
|
import "./chunk-QGM4M3NI.js";
|
|
16
17
|
|
|
17
|
-
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.
|
|
18
|
+
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1146.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/constants.js
|
|
18
19
|
var UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD";
|
|
19
20
|
var SHA256_HEADER = "X-Amz-Content-Sha256";
|
|
20
21
|
|
|
21
|
-
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.
|
|
22
|
+
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1146.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/presigner.js
|
|
22
23
|
var S3RequestPresigner = class {
|
|
23
24
|
signer;
|
|
24
25
|
constructor(options) {
|
|
@@ -73,7 +74,7 @@ var S3RequestPresigner = class {
|
|
|
73
74
|
}
|
|
74
75
|
};
|
|
75
76
|
|
|
76
|
-
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.
|
|
77
|
+
// ../../node_modules/.pnpm/@aws-sdk+s3-request-presigner@3.1146.0/node_modules/@aws-sdk/s3-request-presigner/dist-es/getSignedUrl.js
|
|
77
78
|
var getSignedUrl = async (client, command, options = {}) => {
|
|
78
79
|
let s3Presigner;
|
|
79
80
|
let region;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
setCredentialFeature
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-IJE2RPSN.js";
|
|
4
|
+
import "./chunk-CVBK47OT.js";
|
|
5
5
|
import {
|
|
6
6
|
CredentialsProviderError,
|
|
7
7
|
externalDataInterceptor,
|
|
8
8
|
getProfileName,
|
|
9
9
|
parseKnownFiles
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-CQ7NVYHT.js";
|
|
11
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
12
|
+
import "./chunk-WXRKGSWM.js";
|
|
12
13
|
import "./chunk-QGM4M3NI.js";
|
|
13
14
|
|
|
14
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
15
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.72/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
15
16
|
import { exec } from "child_process";
|
|
16
17
|
import { promisify } from "util";
|
|
17
18
|
|
|
18
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
19
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.72/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
|
|
19
20
|
var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
20
21
|
if (data.Version !== 1) {
|
|
21
22
|
throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
|
|
@@ -46,7 +47,7 @@ var getValidatedProcessCredentials = (profileName, data, profiles) => {
|
|
|
46
47
|
return credentials;
|
|
47
48
|
};
|
|
48
49
|
|
|
49
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
50
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.72/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
50
51
|
var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
51
52
|
const profile = profiles[profileName];
|
|
52
53
|
if (profiles[profileName]) {
|
|
@@ -75,7 +76,7 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
75
76
|
}
|
|
76
77
|
};
|
|
77
78
|
|
|
78
|
-
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.
|
|
79
|
+
// ../../node_modules/.pnpm/@aws-sdk+credential-provider-process@3.972.72/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
|
|
79
80
|
var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
80
81
|
init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
|
|
81
82
|
const profiles = await parseKnownFiles(init);
|
|
@@ -17,8 +17,9 @@ import {
|
|
|
17
17
|
iterableToReadableStream,
|
|
18
18
|
readableStreamToIterable,
|
|
19
19
|
resolveEventStreamSerdeConfig
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-HBASLJRD.js";
|
|
21
|
+
import "./chunk-Z3C6M6AJ.js";
|
|
22
|
+
import "./chunk-WXRKGSWM.js";
|
|
22
23
|
import "./chunk-QGM4M3NI.js";
|
|
23
24
|
export {
|
|
24
25
|
EventStreamCodec,
|