@stacksjs/actions 0.70.15 → 0.70.16
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/build.js +7 -7
- package/dist/{chunk-veja9rez.js → chunk-0crtxf8d.js} +19 -156
- package/dist/chunk-2m04vhea.js +145 -0
- package/dist/{chunk-sd89e9y4.js → chunk-6xbhnbwy.js} +21 -17
- package/dist/{chunk-76zhb40c.js → chunk-6xeh1279.js} +7 -6
- package/dist/{chunk-qkm8e752.js → chunk-8dsect0a.js} +5 -4
- package/dist/{chunk-t5em30ak.js → chunk-9menqd9a.js} +24 -16
- package/dist/{chunk-f6a9g4qa.js → chunk-ad9b7jvj.js} +5 -4
- package/dist/{chunk-7s5qcjkt.js → chunk-bh25aaf7.js} +17 -9
- package/dist/{chunk-vyprc4qf.js → chunk-cv02w7e2.js} +3 -3
- package/dist/{chunk-zsm2c35w.js → chunk-f1cxwjkf.js} +6 -5
- package/dist/{chunk-9exgwfkw.js → chunk-gdzs9jf4.js} +5 -4
- package/dist/{chunk-38cnnp2b.js → chunk-hd6fdt5s.js} +6 -4
- package/dist/{chunk-vn1pz0f4.js → chunk-hfkdpbh8.js} +7 -7
- package/dist/{chunk-63btjfd6.js → chunk-jdqxwpvc.js} +34 -78
- package/dist/{chunk-4abmhfp5.js → chunk-kz10a3s9.js} +84 -79
- package/dist/{chunk-p2ga6zq1.js → chunk-whqcyjvm.js} +7 -7
- package/dist/{chunk-1ntvvbhr.js → chunk-wn25qps4.js} +34 -25
- package/dist/{chunk-q81mf99q.js → chunk-wvzpmd54.js} +12 -9
- package/dist/{chunk-7a9vhs9s.js → chunk-y73a5ex0.js} +28 -27
- package/dist/database/seed.js +6 -6
- package/dist/generate/index.js +7 -7
- package/dist/index.js +7 -7
- package/dist/release.js +7 -7
- package/dist/upgrade.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-zzerxbrm.js +0 -107
|
@@ -6,32 +6,37 @@ import {
|
|
|
6
6
|
loadSsoSessionData,
|
|
7
7
|
parseKnownFiles
|
|
8
8
|
} from "./chunk-bf8bq8pc.js";
|
|
9
|
-
import {
|
|
10
|
-
CredentialsProviderError,
|
|
11
|
-
TokenProviderError
|
|
12
|
-
} from "./chunk-zzerxbrm.js";
|
|
13
9
|
import {
|
|
14
10
|
require_client
|
|
15
11
|
} from "./chunk-frw3va9v.js";
|
|
16
12
|
import"./chunk-saqpg5nd.js";
|
|
13
|
+
import {
|
|
14
|
+
require_dist_cjs
|
|
15
|
+
} from "./chunk-2m04vhea.js";
|
|
17
16
|
import {
|
|
18
17
|
__require,
|
|
19
18
|
__toESM
|
|
20
19
|
} from "./chunk-9v6qtbez.js";
|
|
21
20
|
|
|
21
|
+
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js
|
|
22
|
+
var import_property_provider6 = __toESM(require_dist_cjs(), 1);
|
|
23
|
+
|
|
22
24
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js
|
|
23
25
|
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");
|
|
24
26
|
|
|
25
27
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
26
28
|
var import_client = __toESM(require_client(), 1);
|
|
27
29
|
|
|
30
|
+
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/fromSso.js
|
|
31
|
+
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
32
|
+
|
|
28
33
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/constants.js
|
|
29
34
|
var EXPIRE_WINDOW_MS = 5 * 60 * 1000;
|
|
30
35
|
var REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`;
|
|
31
36
|
|
|
32
37
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js
|
|
33
38
|
var getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
34
|
-
const { SSOOIDCClient } = await import("./chunk-
|
|
39
|
+
const { SSOOIDCClient } = await import("./chunk-ad9b7jvj.js");
|
|
35
40
|
const ssoOidcClient = new SSOOIDCClient(Object.assign({}, init.clientConfig ?? {}, {
|
|
36
41
|
region: ssoRegion ?? init.clientConfig?.region,
|
|
37
42
|
logger: init.clientConfig?.logger ?? init.parentClientConfig?.logger
|
|
@@ -41,7 +46,7 @@ var getSsoOidcClient = async (ssoRegion, init = {}) => {
|
|
|
41
46
|
|
|
42
47
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js
|
|
43
48
|
var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
44
|
-
const { CreateTokenCommand } = await import("./chunk-
|
|
49
|
+
const { CreateTokenCommand } = await import("./chunk-ad9b7jvj.js");
|
|
45
50
|
const ssoOidcClient = await getSsoOidcClient(ssoRegion, init);
|
|
46
51
|
return ssoOidcClient.send(new CreateTokenCommand({
|
|
47
52
|
clientId: ssoToken.clientId,
|
|
@@ -52,16 +57,18 @@ var getNewSsoOidcToken = async (ssoToken, ssoRegion, init = {}) => {
|
|
|
52
57
|
};
|
|
53
58
|
|
|
54
59
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js
|
|
60
|
+
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
55
61
|
var validateTokenExpiry = (token) => {
|
|
56
62
|
if (token.expiration && token.expiration.getTime() < Date.now()) {
|
|
57
|
-
throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
63
|
+
throw new import_property_provider.TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false);
|
|
58
64
|
}
|
|
59
65
|
};
|
|
60
66
|
|
|
61
67
|
// ../../../../node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js
|
|
68
|
+
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
62
69
|
var validateTokenKey = (key, value, forRefresh = false) => {
|
|
63
70
|
if (typeof value === "undefined") {
|
|
64
|
-
throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
71
|
+
throw new import_property_provider2.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
|
|
65
72
|
}
|
|
66
73
|
};
|
|
67
74
|
|
|
@@ -91,19 +98,19 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
91
98
|
});
|
|
92
99
|
const profile = profiles[profileName];
|
|
93
100
|
if (!profile) {
|
|
94
|
-
throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
101
|
+
throw new import_property_provider3.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false);
|
|
95
102
|
} else if (!profile["sso_session"]) {
|
|
96
|
-
throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
103
|
+
throw new import_property_provider3.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`);
|
|
97
104
|
}
|
|
98
105
|
const ssoSessionName = profile["sso_session"];
|
|
99
106
|
const ssoSessions = await loadSsoSessionData(init);
|
|
100
107
|
const ssoSession = ssoSessions[ssoSessionName];
|
|
101
108
|
if (!ssoSession) {
|
|
102
|
-
throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
109
|
+
throw new import_property_provider3.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false);
|
|
103
110
|
}
|
|
104
111
|
for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) {
|
|
105
112
|
if (!ssoSession[ssoSessionRequiredKey]) {
|
|
106
|
-
throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
113
|
+
throw new import_property_provider3.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false);
|
|
107
114
|
}
|
|
108
115
|
}
|
|
109
116
|
const ssoStartUrl = ssoSession["sso_start_url"];
|
|
@@ -112,7 +119,7 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
112
119
|
try {
|
|
113
120
|
ssoToken = await getSSOTokenFromFile(ssoSessionName);
|
|
114
121
|
} catch (e) {
|
|
115
|
-
throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
122
|
+
throw new import_property_provider3.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false);
|
|
116
123
|
}
|
|
117
124
|
validateTokenKey("accessToken", ssoToken.accessToken);
|
|
118
125
|
validateTokenKey("expiresAt", ssoToken.expiresAt);
|
|
@@ -153,6 +160,7 @@ var fromSso = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
153
160
|
};
|
|
154
161
|
|
|
155
162
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js
|
|
163
|
+
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
156
164
|
var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
|
|
157
165
|
var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, profile, logger }) => {
|
|
158
166
|
let token;
|
|
@@ -165,7 +173,7 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
165
173
|
expiresAt: new Date(_token.expiration).toISOString()
|
|
166
174
|
};
|
|
167
175
|
} catch (e) {
|
|
168
|
-
throw new CredentialsProviderError(e.message, {
|
|
176
|
+
throw new import_property_provider4.CredentialsProviderError(e.message, {
|
|
169
177
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
170
178
|
logger
|
|
171
179
|
});
|
|
@@ -174,20 +182,20 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
174
182
|
try {
|
|
175
183
|
token = await getSSOTokenFromFile(ssoStartUrl);
|
|
176
184
|
} catch (e) {
|
|
177
|
-
throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
185
|
+
throw new import_property_provider4.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, {
|
|
178
186
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
179
187
|
logger
|
|
180
188
|
});
|
|
181
189
|
}
|
|
182
190
|
}
|
|
183
191
|
if (new Date(token.expiresAt).getTime() - Date.now() <= 0) {
|
|
184
|
-
throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
192
|
+
throw new import_property_provider4.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, {
|
|
185
193
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
186
194
|
logger
|
|
187
195
|
});
|
|
188
196
|
}
|
|
189
197
|
const { accessToken } = token;
|
|
190
|
-
const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-
|
|
198
|
+
const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-y73a5ex0.js");
|
|
191
199
|
const sso = ssoClient || new SSOClient(Object.assign({}, clientConfig ?? {}, {
|
|
192
200
|
logger: clientConfig?.logger ?? parentClientConfig?.logger,
|
|
193
201
|
region: clientConfig?.region ?? ssoRegion
|
|
@@ -200,14 +208,14 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
200
208
|
accessToken
|
|
201
209
|
}));
|
|
202
210
|
} catch (e) {
|
|
203
|
-
throw new CredentialsProviderError(e, {
|
|
211
|
+
throw new import_property_provider4.CredentialsProviderError(e, {
|
|
204
212
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
205
213
|
logger
|
|
206
214
|
});
|
|
207
215
|
}
|
|
208
216
|
const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration, credentialScope, accountId } = {} } = ssoResp;
|
|
209
217
|
if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) {
|
|
210
|
-
throw new CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
218
|
+
throw new import_property_provider4.CredentialsProviderError("SSO returns an invalid temporary credential.", {
|
|
211
219
|
tryNextLink: SHOULD_FAIL_CREDENTIAL_CHAIN,
|
|
212
220
|
logger
|
|
213
221
|
});
|
|
@@ -229,10 +237,11 @@ var resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoR
|
|
|
229
237
|
};
|
|
230
238
|
|
|
231
239
|
// ../../../../node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js
|
|
240
|
+
var import_property_provider5 = __toESM(require_dist_cjs(), 1);
|
|
232
241
|
var validateSsoProfile = (profile, logger) => {
|
|
233
242
|
const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile;
|
|
234
243
|
if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) {
|
|
235
|
-
throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
244
|
+
throw new import_property_provider5.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}
|
|
236
245
|
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, { tryNextLink: false, logger });
|
|
237
246
|
}
|
|
238
247
|
return profile;
|
|
@@ -250,10 +259,10 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
250
259
|
const profiles = await parseKnownFiles(init);
|
|
251
260
|
const profile = profiles[profileName];
|
|
252
261
|
if (!profile) {
|
|
253
|
-
throw new CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
|
|
262
|
+
throw new import_property_provider6.CredentialsProviderError(`Profile ${profileName} was not found.`, { logger: init.logger });
|
|
254
263
|
}
|
|
255
264
|
if (!isSsoProfile(profile)) {
|
|
256
|
-
throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
265
|
+
throw new import_property_provider6.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`, {
|
|
257
266
|
logger: init.logger
|
|
258
267
|
});
|
|
259
268
|
}
|
|
@@ -262,13 +271,13 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
262
271
|
const session = ssoSessions[profile.sso_session];
|
|
263
272
|
const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`;
|
|
264
273
|
if (ssoRegion && ssoRegion !== session.sso_region) {
|
|
265
|
-
throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
274
|
+
throw new import_property_provider6.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, {
|
|
266
275
|
tryNextLink: false,
|
|
267
276
|
logger: init.logger
|
|
268
277
|
});
|
|
269
278
|
}
|
|
270
279
|
if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) {
|
|
271
|
-
throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
280
|
+
throw new import_property_provider6.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, {
|
|
272
281
|
tryNextLink: false,
|
|
273
282
|
logger: init.logger
|
|
274
283
|
});
|
|
@@ -289,7 +298,7 @@ var fromSSO = (init = {}) => async ({ callerClientConfig } = {}) => {
|
|
|
289
298
|
profile: profileName
|
|
290
299
|
});
|
|
291
300
|
} else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) {
|
|
292
|
-
throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
|
|
301
|
+
throw new import_property_provider6.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"', { tryNextLink: false, logger: init.logger });
|
|
293
302
|
} else {
|
|
294
303
|
return resolveSSOCredentials({
|
|
295
304
|
ssoStartUrl,
|
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
NodeHttpHandler,
|
|
5
5
|
parseRfc3339DateTime
|
|
6
6
|
} from "./chunk-b5g5w1hh.js";
|
|
7
|
-
import {
|
|
8
|
-
CredentialsProviderError
|
|
9
|
-
} from "./chunk-zzerxbrm.js";
|
|
10
7
|
import {
|
|
11
8
|
require_dist_cjs8 as require_dist_cjs
|
|
12
9
|
} from "./chunk-a7k3cdby.js";
|
|
@@ -14,15 +11,20 @@ import {
|
|
|
14
11
|
require_client
|
|
15
12
|
} from "./chunk-frw3va9v.js";
|
|
16
13
|
import"./chunk-saqpg5nd.js";
|
|
14
|
+
import {
|
|
15
|
+
require_dist_cjs as require_dist_cjs2
|
|
16
|
+
} from "./chunk-2m04vhea.js";
|
|
17
17
|
import {
|
|
18
18
|
__toESM
|
|
19
19
|
} from "./chunk-9v6qtbez.js";
|
|
20
20
|
|
|
21
21
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
|
|
22
22
|
var import_client = __toESM(require_client(), 1);
|
|
23
|
+
var import_property_provider3 = __toESM(require_dist_cjs2(), 1);
|
|
23
24
|
import fs from "node:fs/promises";
|
|
24
25
|
|
|
25
26
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
|
|
27
|
+
var import_property_provider = __toESM(require_dist_cjs2(), 1);
|
|
26
28
|
var ECS_CONTAINER_HOST = "169.254.170.2";
|
|
27
29
|
var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
|
|
28
30
|
var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
|
|
@@ -50,13 +52,14 @@ var checkUrl = (url, logger) => {
|
|
|
50
52
|
return;
|
|
51
53
|
}
|
|
52
54
|
}
|
|
53
|
-
throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
55
|
+
throw new import_property_provider.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
|
|
54
56
|
- loopback CIDR 127.0.0.0/8 or [::1/128]
|
|
55
57
|
- ECS container host 169.254.170.2
|
|
56
58
|
- EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
|
|
57
59
|
};
|
|
58
60
|
|
|
59
61
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
|
|
62
|
+
var import_property_provider2 = __toESM(require_dist_cjs2(), 1);
|
|
60
63
|
var import_util_stream = __toESM(require_dist_cjs(), 1);
|
|
61
64
|
function createGetRequest(url) {
|
|
62
65
|
return new HttpRequest({
|
|
@@ -77,7 +80,7 @@ async function getCredentials(response, logger) {
|
|
|
77
80
|
if (response.statusCode === 200) {
|
|
78
81
|
const parsed = JSON.parse(str);
|
|
79
82
|
if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
|
|
80
|
-
throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
83
|
+
throw new import_property_provider2.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
|
|
81
84
|
}
|
|
82
85
|
return {
|
|
83
86
|
accessKeyId: parsed.AccessKeyId,
|
|
@@ -91,12 +94,12 @@ async function getCredentials(response, logger) {
|
|
|
91
94
|
try {
|
|
92
95
|
parsedBody = JSON.parse(str);
|
|
93
96
|
} catch (e) {}
|
|
94
|
-
throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
97
|
+
throw Object.assign(new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
|
|
95
98
|
Code: parsedBody.Code,
|
|
96
99
|
Message: parsedBody.Message
|
|
97
100
|
});
|
|
98
101
|
}
|
|
99
|
-
throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
102
|
+
throw new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
// ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
|
|
@@ -140,7 +143,7 @@ var fromHttp = (options = {}) => {
|
|
|
140
143
|
} else if (relative) {
|
|
141
144
|
host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
|
|
142
145
|
} else {
|
|
143
|
-
throw new CredentialsProviderError(`No HTTP credential provider host provided.
|
|
146
|
+
throw new import_property_provider3.CredentialsProviderError(`No HTTP credential provider host provided.
|
|
144
147
|
Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
|
|
145
148
|
}
|
|
146
149
|
const url = new URL(host);
|
|
@@ -160,7 +163,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
|
|
|
160
163
|
const result = await requestHandler.handle(request);
|
|
161
164
|
return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
|
|
162
165
|
} catch (e) {
|
|
163
|
-
throw new CredentialsProviderError(String(e), { logger: options.logger });
|
|
166
|
+
throw new import_property_provider3.CredentialsProviderError(String(e), { logger: options.logger });
|
|
164
167
|
}
|
|
165
168
|
}, options.maxRetries ?? 3, options.timeout ?? 1000);
|
|
166
169
|
};
|
|
@@ -14,8 +14,6 @@ import {
|
|
|
14
14
|
calculateBodyLength,
|
|
15
15
|
createDefaultUserAgentProvider,
|
|
16
16
|
customEndpointFunctions,
|
|
17
|
-
fromBase64,
|
|
18
|
-
fromUtf8,
|
|
19
17
|
getAwsRegionExtensionConfiguration,
|
|
20
18
|
getContentLengthPlugin,
|
|
21
19
|
getEndpointPlugin,
|
|
@@ -24,7 +22,9 @@ import {
|
|
|
24
22
|
getRecursionDetectionPlugin,
|
|
25
23
|
getRetryPlugin,
|
|
26
24
|
getSerdePlugin,
|
|
25
|
+
getSmithyContext,
|
|
27
26
|
getUserAgentPlugin,
|
|
27
|
+
normalizeProvider,
|
|
28
28
|
resolveAwsRegionExtensionConfiguration,
|
|
29
29
|
resolveDefaultsModeConfig,
|
|
30
30
|
resolveEndpoint,
|
|
@@ -32,14 +32,12 @@ import {
|
|
|
32
32
|
resolveHostHeaderConfig,
|
|
33
33
|
resolveRegionConfig,
|
|
34
34
|
resolveRetryConfig,
|
|
35
|
-
resolveUserAgentConfig
|
|
36
|
-
|
|
37
|
-
toUtf8
|
|
38
|
-
} from "./chunk-63btjfd6.js";
|
|
35
|
+
resolveUserAgentConfig
|
|
36
|
+
} from "./chunk-jdqxwpvc.js";
|
|
39
37
|
import {
|
|
40
38
|
loadConfig,
|
|
41
39
|
parseUrl
|
|
42
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-bh25aaf7.js";
|
|
43
41
|
import"./chunk-bf8bq8pc.js";
|
|
44
42
|
import {
|
|
45
43
|
Client,
|
|
@@ -65,29 +63,30 @@ import {
|
|
|
65
63
|
take,
|
|
66
64
|
withBaseException
|
|
67
65
|
} from "./chunk-b5g5w1hh.js";
|
|
68
|
-
import"./chunk-zzerxbrm.js";
|
|
69
66
|
import {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
67
|
+
require_dist_cjs2 as require_dist_cjs3,
|
|
68
|
+
require_dist_cjs4
|
|
69
|
+
} from "./chunk-0crtxf8d.js";
|
|
70
|
+
import {
|
|
71
|
+
require_dist_cjs3 as require_dist_cjs,
|
|
72
|
+
require_dist_cjs4 as require_dist_cjs2
|
|
73
|
+
} from "./chunk-a7k3cdby.js";
|
|
75
74
|
import"./chunk-frw3va9v.js";
|
|
76
75
|
import"./chunk-saqpg5nd.js";
|
|
76
|
+
import"./chunk-2m04vhea.js";
|
|
77
77
|
import {
|
|
78
78
|
__toESM
|
|
79
79
|
} from "./chunk-9v6qtbez.js";
|
|
80
80
|
|
|
81
81
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js
|
|
82
|
-
var import_core5 = __toESM(
|
|
82
|
+
var import_core5 = __toESM(require_dist_cjs3(), 1);
|
|
83
83
|
|
|
84
84
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/auth/httpAuthSchemeProvider.js
|
|
85
|
-
var import_core = __toESM(
|
|
86
|
-
var import_util_middleware = __toESM(require_dist_cjs(), 1);
|
|
85
|
+
var import_core = __toESM(require_dist_cjs4(), 1);
|
|
87
86
|
var defaultSSOHttpAuthSchemeParametersProvider = async (config, context, input) => {
|
|
88
87
|
return {
|
|
89
|
-
operation:
|
|
90
|
-
region: await
|
|
88
|
+
operation: getSmithyContext(context).operation,
|
|
89
|
+
region: await normalizeProvider(config.region)() || (() => {
|
|
91
90
|
throw new Error("expected `region` to be configured for `aws.auth#sigv4`");
|
|
92
91
|
})()
|
|
93
92
|
};
|
|
@@ -257,11 +256,13 @@ var package_default = {
|
|
|
257
256
|
};
|
|
258
257
|
|
|
259
258
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js
|
|
260
|
-
var import_core4 = __toESM(
|
|
259
|
+
var import_core4 = __toESM(require_dist_cjs4(), 1);
|
|
261
260
|
|
|
262
261
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js
|
|
263
|
-
var import_core2 = __toESM(
|
|
264
|
-
var import_core3 = __toESM(
|
|
262
|
+
var import_core2 = __toESM(require_dist_cjs4(), 1);
|
|
263
|
+
var import_core3 = __toESM(require_dist_cjs3(), 1);
|
|
264
|
+
var import_util_base64 = __toESM(require_dist_cjs2(), 1);
|
|
265
|
+
var import_util_utf8 = __toESM(require_dist_cjs(), 1);
|
|
265
266
|
|
|
266
267
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js
|
|
267
268
|
var u = "required";
|
|
@@ -308,8 +309,8 @@ customEndpointFunctions.aws = awsEndpointFunctions;
|
|
|
308
309
|
var getRuntimeConfig = (config) => {
|
|
309
310
|
return {
|
|
310
311
|
apiVersion: "2019-06-10",
|
|
311
|
-
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
312
|
-
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
312
|
+
base64Decoder: config?.base64Decoder ?? import_util_base64.fromBase64,
|
|
313
|
+
base64Encoder: config?.base64Encoder ?? import_util_base64.toBase64,
|
|
313
314
|
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
314
315
|
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
315
316
|
extensions: config?.extensions ?? [],
|
|
@@ -329,8 +330,8 @@ var getRuntimeConfig = (config) => {
|
|
|
329
330
|
logger: config?.logger ?? new NoOpLogger,
|
|
330
331
|
serviceId: config?.serviceId ?? "SSO",
|
|
331
332
|
urlParser: config?.urlParser ?? parseUrl,
|
|
332
|
-
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
333
|
-
utf8Encoder: config?.utf8Encoder ?? toUtf8
|
|
333
|
+
utf8Decoder: config?.utf8Decoder ?? import_util_utf8.fromUtf8,
|
|
334
|
+
utf8Encoder: config?.utf8Encoder ?? import_util_utf8.toUtf8
|
|
334
335
|
};
|
|
335
336
|
};
|
|
336
337
|
|
|
@@ -520,8 +521,8 @@ var GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({
|
|
|
520
521
|
});
|
|
521
522
|
|
|
522
523
|
// ../../../../node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js
|
|
523
|
-
var import_core6 = __toESM(
|
|
524
|
-
var import_core7 = __toESM(
|
|
524
|
+
var import_core6 = __toESM(require_dist_cjs4(), 1);
|
|
525
|
+
var import_core7 = __toESM(require_dist_cjs3(), 1);
|
|
525
526
|
var se_GetRoleCredentialsCommand = async (input, context) => {
|
|
526
527
|
const b2 = import_core7.requestBuilder(input, context);
|
|
527
528
|
const headers = map({}, isSerializableHeaderValue, {
|
package/dist/database/seed.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
seed
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-kz10a3s9.js";
|
|
5
5
|
import"../chunk-mdj7x1vs.js";
|
|
6
6
|
import"../chunk-p0c688mg.js";
|
|
7
|
-
import"../chunk-
|
|
7
|
+
import"../chunk-8dsect0a.js";
|
|
8
8
|
import"../chunk-a13x0e43.js";
|
|
9
9
|
import"../chunk-mdqphqep.js";
|
|
10
10
|
import"../chunk-qhh0v93n.js";
|
|
11
|
-
import"../chunk-
|
|
12
|
-
import"../chunk-
|
|
11
|
+
import"../chunk-jdqxwpvc.js";
|
|
12
|
+
import"../chunk-bh25aaf7.js";
|
|
13
13
|
import"../chunk-bf8bq8pc.js";
|
|
14
14
|
import"../chunk-b5g5w1hh.js";
|
|
15
|
-
import"../chunk-
|
|
16
|
-
import"../chunk-veja9rez.js";
|
|
15
|
+
import"../chunk-0crtxf8d.js";
|
|
17
16
|
import"../chunk-a7k3cdby.js";
|
|
18
17
|
import"../chunk-frw3va9v.js";
|
|
19
18
|
import"../chunk-saqpg5nd.js";
|
|
19
|
+
import"../chunk-2m04vhea.js";
|
|
20
20
|
import"../chunk-2dvnt46s.js";
|
|
21
21
|
import"../chunk-w6fdq4hk.js";
|
|
22
22
|
import"../chunk-wkwtsvym.js";
|
package/dist/generate/index.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-cv02w7e2.js";
|
|
5
5
|
import {
|
|
6
6
|
generateVsCodeCustomData
|
|
7
7
|
} from "../helpers/vscode-custom-data.js";
|
|
8
8
|
import"../chunk-494jp8d5.js";
|
|
9
9
|
import {
|
|
10
10
|
generateModelFiles
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-kz10a3s9.js";
|
|
12
12
|
import"../chunk-mdj7x1vs.js";
|
|
13
13
|
import"../chunk-p0c688mg.js";
|
|
14
|
-
import"../chunk-
|
|
14
|
+
import"../chunk-8dsect0a.js";
|
|
15
15
|
import"../chunk-a13x0e43.js";
|
|
16
16
|
import"../chunk-mdqphqep.js";
|
|
17
17
|
import"../chunk-qhh0v93n.js";
|
|
18
|
-
import"../chunk-
|
|
19
|
-
import"../chunk-
|
|
18
|
+
import"../chunk-jdqxwpvc.js";
|
|
19
|
+
import"../chunk-bh25aaf7.js";
|
|
20
20
|
import"../chunk-bf8bq8pc.js";
|
|
21
21
|
import"../chunk-b5g5w1hh.js";
|
|
22
|
-
import"../chunk-
|
|
23
|
-
import"../chunk-veja9rez.js";
|
|
22
|
+
import"../chunk-0crtxf8d.js";
|
|
24
23
|
import"../chunk-a7k3cdby.js";
|
|
25
24
|
import"../chunk-frw3va9v.js";
|
|
26
25
|
import"../chunk-saqpg5nd.js";
|
|
26
|
+
import"../chunk-2m04vhea.js";
|
|
27
27
|
import"../chunk-2dvnt46s.js";
|
|
28
28
|
import"../chunk-w6fdq4hk.js";
|
|
29
29
|
import"../chunk-wkwtsvym.js";
|
package/dist/index.js
CHANGED
|
@@ -41,25 +41,25 @@ import {
|
|
|
41
41
|
generateWebTypes,
|
|
42
42
|
invoke
|
|
43
43
|
} from "./generate/index.js";
|
|
44
|
-
import"./chunk-
|
|
44
|
+
import"./chunk-cv02w7e2.js";
|
|
45
45
|
import"./helpers/vscode-custom-data.js";
|
|
46
46
|
import"./chunk-494jp8d5.js";
|
|
47
|
-
import"./chunk-
|
|
47
|
+
import"./chunk-kz10a3s9.js";
|
|
48
48
|
import"./chunk-mdj7x1vs.js";
|
|
49
49
|
import"./chunk-p0c688mg.js";
|
|
50
|
-
import"./chunk-
|
|
50
|
+
import"./chunk-8dsect0a.js";
|
|
51
51
|
import"./chunk-a13x0e43.js";
|
|
52
52
|
import"./chunk-mdqphqep.js";
|
|
53
53
|
import"./chunk-qhh0v93n.js";
|
|
54
|
-
import"./chunk-
|
|
55
|
-
import"./chunk-
|
|
54
|
+
import"./chunk-jdqxwpvc.js";
|
|
55
|
+
import"./chunk-bh25aaf7.js";
|
|
56
56
|
import"./chunk-bf8bq8pc.js";
|
|
57
57
|
import"./chunk-b5g5w1hh.js";
|
|
58
|
-
import"./chunk-
|
|
59
|
-
import"./chunk-veja9rez.js";
|
|
58
|
+
import"./chunk-0crtxf8d.js";
|
|
60
59
|
import"./chunk-a7k3cdby.js";
|
|
61
60
|
import"./chunk-frw3va9v.js";
|
|
62
61
|
import"./chunk-saqpg5nd.js";
|
|
62
|
+
import"./chunk-2m04vhea.js";
|
|
63
63
|
import"./chunk-2dvnt46s.js";
|
|
64
64
|
import"./chunk-w6fdq4hk.js";
|
|
65
65
|
import"./chunk-wkwtsvym.js";
|
package/dist/release.js
CHANGED
|
@@ -5,25 +5,25 @@ import"./commit.js";
|
|
|
5
5
|
import"./make.js";
|
|
6
6
|
import"./add.js";
|
|
7
7
|
import"./generate/index.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-cv02w7e2.js";
|
|
9
9
|
import"./helpers/vscode-custom-data.js";
|
|
10
10
|
import"./chunk-494jp8d5.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-kz10a3s9.js";
|
|
12
12
|
import"./chunk-mdj7x1vs.js";
|
|
13
13
|
import"./chunk-p0c688mg.js";
|
|
14
|
-
import"./chunk-
|
|
14
|
+
import"./chunk-8dsect0a.js";
|
|
15
15
|
import"./chunk-a13x0e43.js";
|
|
16
16
|
import"./chunk-mdqphqep.js";
|
|
17
17
|
import"./chunk-qhh0v93n.js";
|
|
18
|
-
import"./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
import"./chunk-jdqxwpvc.js";
|
|
19
|
+
import"./chunk-bh25aaf7.js";
|
|
20
20
|
import"./chunk-bf8bq8pc.js";
|
|
21
21
|
import"./chunk-b5g5w1hh.js";
|
|
22
|
-
import"./chunk-
|
|
23
|
-
import"./chunk-veja9rez.js";
|
|
22
|
+
import"./chunk-0crtxf8d.js";
|
|
24
23
|
import"./chunk-a7k3cdby.js";
|
|
25
24
|
import"./chunk-frw3va9v.js";
|
|
26
25
|
import"./chunk-saqpg5nd.js";
|
|
26
|
+
import"./chunk-2m04vhea.js";
|
|
27
27
|
import"./chunk-2dvnt46s.js";
|
|
28
28
|
import"./chunk-w6fdq4hk.js";
|
|
29
29
|
import"./chunk-wkwtsvym.js";
|
package/dist/upgrade.js
CHANGED
|
@@ -9,7 +9,7 @@ import { log } from "@stacksjs/logging";
|
|
|
9
9
|
import { projectPath } from "@stacksjs/path";
|
|
10
10
|
import * as storage from "@stacksjs/storage";
|
|
11
11
|
// package.json
|
|
12
|
-
var version = "0.70.
|
|
12
|
+
var version = "0.70.16";
|
|
13
13
|
|
|
14
14
|
// src/upgrade.ts
|
|
15
15
|
function checkForUncommittedChanges(options) {
|