@stacksjs/actions 0.70.18 → 0.70.19

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.
@@ -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-f6a9g4qa.js");
39
+ const { SSOOIDCClient } = await import("./chunk-b7b7jd25.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-f6a9g4qa.js");
49
+ const { CreateTokenCommand } = await import("./chunk-b7b7jd25.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-dhnwmbca.js");
198
+ const { SSOClient, GetRoleCredentialsCommand } = await import("./chunk-4tte2ccn.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,
@@ -1,22 +1,22 @@
1
1
  // @bun
2
2
  import {
3
3
  seed
4
- } from "../chunk-ky5192ey.js";
4
+ } from "../chunk-fsa32kvk.js";
5
5
  import"../chunk-mdj7x1vs.js";
6
6
  import"../chunk-p0c688mg.js";
7
- import"../chunk-qkm8e752.js";
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-gtghjj5c.js";
12
- import"../chunk-7s5qcjkt.js";
11
+ import"../chunk-74nzt2f7.js";
12
+ import"../chunk-bh25aaf7.js";
13
13
  import"../chunk-bf8bq8pc.js";
14
14
  import"../chunk-xt9exr2c.js";
15
- import"../chunk-zzerxbrm.js";
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";
@@ -1,29 +1,29 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "../chunk-v1m830st.js";
4
+ } from "../chunk-x1ny4wwh.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-ky5192ey.js";
11
+ } from "../chunk-fsa32kvk.js";
12
12
  import"../chunk-mdj7x1vs.js";
13
13
  import"../chunk-p0c688mg.js";
14
- import"../chunk-qkm8e752.js";
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-gtghjj5c.js";
19
- import"../chunk-7s5qcjkt.js";
18
+ import"../chunk-74nzt2f7.js";
19
+ import"../chunk-bh25aaf7.js";
20
20
  import"../chunk-bf8bq8pc.js";
21
21
  import"../chunk-xt9exr2c.js";
22
- import"../chunk-zzerxbrm.js";
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-v1m830st.js";
44
+ import"./chunk-x1ny4wwh.js";
45
45
  import"./helpers/vscode-custom-data.js";
46
46
  import"./chunk-494jp8d5.js";
47
- import"./chunk-ky5192ey.js";
47
+ import"./chunk-fsa32kvk.js";
48
48
  import"./chunk-mdj7x1vs.js";
49
49
  import"./chunk-p0c688mg.js";
50
- import"./chunk-qkm8e752.js";
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-gtghjj5c.js";
55
- import"./chunk-7s5qcjkt.js";
54
+ import"./chunk-74nzt2f7.js";
55
+ import"./chunk-bh25aaf7.js";
56
56
  import"./chunk-bf8bq8pc.js";
57
57
  import"./chunk-xt9exr2c.js";
58
- import"./chunk-zzerxbrm.js";
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-v1m830st.js";
8
+ import"./chunk-x1ny4wwh.js";
9
9
  import"./helpers/vscode-custom-data.js";
10
10
  import"./chunk-494jp8d5.js";
11
- import"./chunk-ky5192ey.js";
11
+ import"./chunk-fsa32kvk.js";
12
12
  import"./chunk-mdj7x1vs.js";
13
13
  import"./chunk-p0c688mg.js";
14
- import"./chunk-qkm8e752.js";
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-gtghjj5c.js";
19
- import"./chunk-7s5qcjkt.js";
18
+ import"./chunk-74nzt2f7.js";
19
+ import"./chunk-bh25aaf7.js";
20
20
  import"./chunk-bf8bq8pc.js";
21
21
  import"./chunk-xt9exr2c.js";
22
- import"./chunk-zzerxbrm.js";
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.18";
12
+ var version = "0.70.19";
13
13
 
14
14
  // src/upgrade.ts
15
15
  function checkForUncommittedChanges(options) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.70.18",
4
+ "version": "0.70.19",
5
5
  "description": "The Stacks actions.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": ["Chris Breuer <chris@stacksjs.org>"],
@@ -42,22 +42,22 @@
42
42
  "prepublishOnly": "bun run build"
43
43
  },
44
44
  "devDependencies": {
45
- "@stacksjs/api": "0.70.16",
46
- "@stacksjs/cli": "0.70.16",
47
- "@stacksjs/config": "0.70.16",
48
- "@stacksjs/database": "0.70.16",
49
- "@stacksjs/development": "0.70.16",
50
- "@stacksjs/dns": "0.70.16",
51
- "@stacksjs/enums": "0.70.16",
52
- "@stacksjs/env": "0.70.16",
53
- "@stacksjs/error-handling": "0.70.16",
54
- "@stacksjs/logging": "0.70.16",
55
- "@stacksjs/path": "0.70.16",
56
- "@stacksjs/security": "0.70.16",
57
- "@stacksjs/storage": "0.70.16",
58
- "@stacksjs/strings": "0.70.16",
59
- "@stacksjs/utils": "0.70.16",
60
- "@stacksjs/validation": "0.70.16",
45
+ "@stacksjs/api": "0.70.18",
46
+ "@stacksjs/cli": "0.70.18",
47
+ "@stacksjs/config": "0.70.18",
48
+ "@stacksjs/database": "0.70.18",
49
+ "@stacksjs/development": "0.70.18",
50
+ "@stacksjs/dns": "0.70.18",
51
+ "@stacksjs/enums": "0.70.18",
52
+ "@stacksjs/env": "0.70.18",
53
+ "@stacksjs/error-handling": "0.70.18",
54
+ "@stacksjs/logging": "0.70.18",
55
+ "@stacksjs/path": "0.70.18",
56
+ "@stacksjs/security": "0.70.18",
57
+ "@stacksjs/storage": "0.70.18",
58
+ "@stacksjs/strings": "0.70.18",
59
+ "@stacksjs/utils": "0.70.18",
60
+ "@stacksjs/validation": "0.70.18",
61
61
  "markdown-it": "^14.1.0",
62
62
  "vue-component-meta": "^2.2.8"
63
63
  }
@@ -1,107 +0,0 @@
1
- // ../../../../node_modules/@smithy/property-provider/dist-es/ProviderError.js
2
- class ProviderError extends Error {
3
- constructor(message, options = true) {
4
- let logger;
5
- let tryNextLink = true;
6
- if (typeof options === "boolean") {
7
- logger = undefined;
8
- tryNextLink = options;
9
- } else if (options != null && typeof options === "object") {
10
- logger = options.logger;
11
- tryNextLink = options.tryNextLink ?? true;
12
- }
13
- super(message);
14
- this.name = "ProviderError";
15
- this.tryNextLink = tryNextLink;
16
- Object.setPrototypeOf(this, ProviderError.prototype);
17
- logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
18
- }
19
- static from(error, options = true) {
20
- return Object.assign(new this(error.message, options), error);
21
- }
22
- }
23
-
24
- // ../../../../node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
25
- class CredentialsProviderError extends ProviderError {
26
- constructor(message, options = true) {
27
- super(message, options);
28
- this.name = "CredentialsProviderError";
29
- Object.setPrototypeOf(this, CredentialsProviderError.prototype);
30
- }
31
- }
32
- // ../../../../node_modules/@smithy/property-provider/dist-es/TokenProviderError.js
33
- class TokenProviderError extends ProviderError {
34
- constructor(message, options = true) {
35
- super(message, options);
36
- this.name = "TokenProviderError";
37
- Object.setPrototypeOf(this, TokenProviderError.prototype);
38
- }
39
- }
40
- // ../../../../node_modules/@smithy/property-provider/dist-es/chain.js
41
- var chain = (...providers) => async () => {
42
- if (providers.length === 0) {
43
- throw new ProviderError("No providers in chain");
44
- }
45
- let lastProviderError;
46
- for (const provider of providers) {
47
- try {
48
- const credentials = await provider();
49
- return credentials;
50
- } catch (err) {
51
- lastProviderError = err;
52
- if (err?.tryNextLink) {
53
- continue;
54
- }
55
- throw err;
56
- }
57
- }
58
- throw lastProviderError;
59
- };
60
- // ../../../../node_modules/@smithy/property-provider/dist-es/fromStatic.js
61
- var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
62
- // ../../../../node_modules/@smithy/property-provider/dist-es/memoize.js
63
- var memoize = (provider, isExpired, requiresRefresh) => {
64
- let resolved;
65
- let pending;
66
- let hasResult;
67
- let isConstant = false;
68
- const coalesceProvider = async () => {
69
- if (!pending) {
70
- pending = provider();
71
- }
72
- try {
73
- resolved = await pending;
74
- hasResult = true;
75
- isConstant = false;
76
- } finally {
77
- pending = undefined;
78
- }
79
- return resolved;
80
- };
81
- if (isExpired === undefined) {
82
- return async (options) => {
83
- if (!hasResult || options?.forceRefresh) {
84
- resolved = await coalesceProvider();
85
- }
86
- return resolved;
87
- };
88
- }
89
- return async (options) => {
90
- if (!hasResult || options?.forceRefresh) {
91
- resolved = await coalesceProvider();
92
- }
93
- if (isConstant) {
94
- return resolved;
95
- }
96
- if (requiresRefresh && !requiresRefresh(resolved)) {
97
- isConstant = true;
98
- return resolved;
99
- }
100
- if (isExpired(resolved)) {
101
- await coalesceProvider();
102
- return resolved;
103
- }
104
- return resolved;
105
- };
106
- };
107
- export { ProviderError, CredentialsProviderError, TokenProviderError, chain, fromStatic, memoize };