@stacksjs/actions 0.70.10 → 0.70.12

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.
Files changed (54) hide show
  1. package/dist/build/core.js +1 -1
  2. package/dist/build.js +18 -3
  3. package/dist/{chunk-8swsxabt.js → chunk-0w5577pa.js} +63 -3
  4. package/dist/{chunk-fxan91t8.js → chunk-2dvnt46s.js} +31 -31
  5. package/dist/chunk-38cnnp2b.js +3823 -0
  6. package/dist/chunk-76zhb40c.js +92 -0
  7. package/dist/{chunk-v1qz355d.js → chunk-7exdh0pw.js} +4 -4
  8. package/dist/{chunk-6jdq6549.js → chunk-7hbpybtk.js} +18 -3
  9. package/dist/chunk-7s5qcjkt.js +105 -0
  10. package/dist/chunk-9exgwfkw.js +1283 -0
  11. package/dist/chunk-a13x0e43.js +1180 -0
  12. package/dist/chunk-a7k3cdby.js +2266 -0
  13. package/dist/chunk-bf8bq8pc.js +205 -0
  14. package/dist/chunk-csa76zyn.js +658 -0
  15. package/dist/chunk-e7mp4xy5.js +169 -0
  16. package/dist/chunk-f6a9g4qa.js +902 -0
  17. package/dist/chunk-frw3va9v.js +69 -0
  18. package/dist/chunk-hp8vmq3g.js +179242 -0
  19. package/dist/chunk-mdj7x1vs.js +790 -0
  20. package/dist/chunk-mdqphqep.js +438 -0
  21. package/dist/chunk-p0c688mg.js +729 -0
  22. package/dist/chunk-pnre7439.js +2228 -0
  23. package/dist/chunk-q9dmga3k.js +11 -0
  24. package/dist/chunk-qhh0v93n.js +73 -0
  25. package/dist/chunk-qkm8e752.js +51 -0
  26. package/dist/chunk-r1ednxa6.js +311 -0
  27. package/dist/chunk-saqpg5nd.js +118 -0
  28. package/dist/chunk-t5em30ak.js +379 -0
  29. package/dist/chunk-veja9rez.js +5764 -0
  30. package/dist/chunk-xt9exr2c.js +1481 -0
  31. package/dist/chunk-zbqapk7v.js +212 -0
  32. package/dist/chunk-zsm2c35w.js +72 -0
  33. package/dist/chunk-zzerxbrm.js +107 -0
  34. package/dist/database/seed.js +18 -3
  35. package/dist/deploy/index.js +1 -1
  36. package/dist/examples.js +1 -1
  37. package/dist/fresh.js +1 -1
  38. package/dist/generate/index.js +19 -4
  39. package/dist/helpers/component-meta.js +10 -10
  40. package/dist/helpers/lib-entries.js +1 -1
  41. package/dist/index.js +18 -3
  42. package/dist/key-generate.js +1 -1
  43. package/dist/lint/fix.js +1 -1
  44. package/dist/make.js +1 -1
  45. package/dist/prepublish.js +1 -1
  46. package/dist/release.js +18 -3
  47. package/dist/test/feature.js +1 -1
  48. package/dist/test/index.js +1 -1
  49. package/dist/test/unit.js +1 -1
  50. package/dist/types.js +1 -1
  51. package/dist/upgrade/index.js +1 -1
  52. package/dist/upgrade.js +2 -2
  53. package/package.json +17 -17
  54. package/dist/chunk-8tjc3whz.js +0 -77989
@@ -0,0 +1,92 @@
1
+ // @bun
2
+ import {
3
+ getProfileName,
4
+ parseKnownFiles
5
+ } from "./chunk-bf8bq8pc.js";
6
+ import {
7
+ CredentialsProviderError
8
+ } from "./chunk-zzerxbrm.js";
9
+ import {
10
+ require_client
11
+ } from "./chunk-frw3va9v.js";
12
+ import"./chunk-saqpg5nd.js";
13
+ import {
14
+ __toESM
15
+ } from "./chunk-9v6qtbez.js";
16
+
17
+ // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
18
+ import { exec } from "node:child_process";
19
+ import { promisify } from "node:util";
20
+
21
+ // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js
22
+ var import_client = __toESM(require_client(), 1);
23
+ var getValidatedProcessCredentials = (profileName, data, profiles) => {
24
+ if (data.Version !== 1) {
25
+ throw Error(`Profile ${profileName} credential_process did not return Version 1.`);
26
+ }
27
+ if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) {
28
+ throw Error(`Profile ${profileName} credential_process returned invalid credentials.`);
29
+ }
30
+ if (data.Expiration) {
31
+ const currentTime = new Date;
32
+ const expireTime = new Date(data.Expiration);
33
+ if (expireTime < currentTime) {
34
+ throw Error(`Profile ${profileName} credential_process returned expired credentials.`);
35
+ }
36
+ }
37
+ let accountId = data.AccountId;
38
+ if (!accountId && profiles?.[profileName]?.aws_account_id) {
39
+ accountId = profiles[profileName].aws_account_id;
40
+ }
41
+ const credentials = {
42
+ accessKeyId: data.AccessKeyId,
43
+ secretAccessKey: data.SecretAccessKey,
44
+ ...data.SessionToken && { sessionToken: data.SessionToken },
45
+ ...data.Expiration && { expiration: new Date(data.Expiration) },
46
+ ...data.CredentialScope && { credentialScope: data.CredentialScope },
47
+ ...accountId && { accountId }
48
+ };
49
+ import_client.setCredentialFeature(credentials, "CREDENTIALS_PROCESS", "w");
50
+ return credentials;
51
+ };
52
+
53
+ // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
54
+ var resolveProcessCredentials = async (profileName, profiles, logger) => {
55
+ const profile = profiles[profileName];
56
+ if (profiles[profileName]) {
57
+ const credentialProcess = profile["credential_process"];
58
+ if (credentialProcess !== undefined) {
59
+ const execPromise = promisify(exec);
60
+ try {
61
+ const { stdout } = await execPromise(credentialProcess);
62
+ let data;
63
+ try {
64
+ data = JSON.parse(stdout.trim());
65
+ } catch {
66
+ throw Error(`Profile ${profileName} credential_process returned invalid JSON.`);
67
+ }
68
+ return getValidatedProcessCredentials(profileName, data, profiles);
69
+ } catch (error) {
70
+ throw new CredentialsProviderError(error.message, { logger });
71
+ }
72
+ } else {
73
+ throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
74
+ }
75
+ } else {
76
+ throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
77
+ logger
78
+ });
79
+ }
80
+ };
81
+
82
+ // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js
83
+ var fromProcess = (init = {}) => async ({ callerClientConfig } = {}) => {
84
+ init.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");
85
+ const profiles = await parseKnownFiles(init);
86
+ return resolveProcessCredentials(getProfileName({
87
+ profile: init.profile ?? callerClientConfig?.profile
88
+ }), profiles, init.logger);
89
+ };
90
+ export {
91
+ fromProcess
92
+ };
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  db
3
- } from "./chunk-8tjc3whz.js";
3
+ } from "./chunk-hp8vmq3g.js";
4
4
  import {
5
5
  customValidate,
6
6
  isObjectNotEmpty,
7
7
  validateField
8
- } from "./chunk-fxan91t8.js";
8
+ } from "./chunk-2dvnt46s.js";
9
9
  import {
10
10
  kebabCase,
11
11
  pascalCase
@@ -319,8 +319,8 @@ class Router {
319
319
  return this.routes;
320
320
  }
321
321
  async importRoutes() {
322
- await import("./chunk-6jdq6549.js");
323
- await import("./chunk-8swsxabt.js");
322
+ await import("./chunk-7hbpybtk.js");
323
+ await import("./chunk-0w5577pa.js");
324
324
  }
325
325
  async resolveCallback(callback) {
326
326
  if (callback instanceof Promise) {
@@ -1,9 +1,24 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-v1qz355d.js";
5
- import"./chunk-8tjc3whz.js";
6
- import"./chunk-fxan91t8.js";
4
+ } from "./chunk-7exdh0pw.js";
5
+ import"./chunk-hp8vmq3g.js";
6
+ import"./chunk-mdj7x1vs.js";
7
+ import"./chunk-p0c688mg.js";
8
+ import"./chunk-qkm8e752.js";
9
+ import"./chunk-a13x0e43.js";
10
+ import"./chunk-mdqphqep.js";
11
+ import"./chunk-qhh0v93n.js";
12
+ import"./chunk-pnre7439.js";
13
+ import"./chunk-7s5qcjkt.js";
14
+ import"./chunk-bf8bq8pc.js";
15
+ import"./chunk-xt9exr2c.js";
16
+ import"./chunk-zzerxbrm.js";
17
+ import"./chunk-veja9rez.js";
18
+ import"./chunk-a7k3cdby.js";
19
+ import"./chunk-frw3va9v.js";
20
+ import"./chunk-saqpg5nd.js";
21
+ import"./chunk-2dvnt46s.js";
7
22
  import"./chunk-w6fdq4hk.js";
8
23
  import"./chunk-wkwtsvym.js";
9
24
  import"./chunk-9v6qtbez.js";
@@ -0,0 +1,105 @@
1
+ import {
2
+ getProfileName,
3
+ loadSharedConfigFiles
4
+ } from "./chunk-bf8bq8pc.js";
5
+ import {
6
+ CredentialsProviderError,
7
+ chain,
8
+ fromStatic,
9
+ memoize
10
+ } from "./chunk-zzerxbrm.js";
11
+
12
+ // ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
13
+ function getSelectorName(functionString) {
14
+ try {
15
+ const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
16
+ constants.delete("CONFIG");
17
+ constants.delete("CONFIG_PREFIX_SEPARATOR");
18
+ constants.delete("ENV");
19
+ return [...constants].join(", ");
20
+ } catch (e) {
21
+ return functionString;
22
+ }
23
+ }
24
+
25
+ // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
26
+ var fromEnv = (envVarSelector, logger) => async () => {
27
+ try {
28
+ const config = envVarSelector(process.env);
29
+ if (config === undefined) {
30
+ throw new Error;
31
+ }
32
+ return config;
33
+ } catch (e) {
34
+ throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
35
+ }
36
+ };
37
+
38
+ // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
39
+ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
40
+ const profile = getProfileName(init);
41
+ const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
42
+ const profileFromCredentials = credentialsFile[profile] || {};
43
+ const profileFromConfig = configFile[profile] || {};
44
+ const mergedProfile = preferredFile === "config" ? { ...profileFromCredentials, ...profileFromConfig } : { ...profileFromConfig, ...profileFromCredentials };
45
+ try {
46
+ const cfgFile = preferredFile === "config" ? configFile : credentialsFile;
47
+ const configValue = configSelector(mergedProfile, cfgFile);
48
+ if (configValue === undefined) {
49
+ throw new Error;
50
+ }
51
+ return configValue;
52
+ } catch (e) {
53
+ throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
54
+ }
55
+ };
56
+
57
+ // ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
58
+ var isFunction = (func) => typeof func === "function";
59
+ var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
60
+
61
+ // ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
62
+ var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
63
+ // ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
64
+ function parseQueryString(querystring) {
65
+ const query = {};
66
+ querystring = querystring.replace(/^\?/, "");
67
+ if (querystring) {
68
+ for (const pair of querystring.split("&")) {
69
+ let [key, value = null] = pair.split("=");
70
+ key = decodeURIComponent(key);
71
+ if (value) {
72
+ value = decodeURIComponent(value);
73
+ }
74
+ if (!(key in query)) {
75
+ query[key] = value;
76
+ } else if (Array.isArray(query[key])) {
77
+ query[key].push(value);
78
+ } else {
79
+ query[key] = [query[key], value];
80
+ }
81
+ }
82
+ }
83
+ return query;
84
+ }
85
+
86
+ // ../../../../node_modules/@smithy/url-parser/dist-es/index.js
87
+ var parseUrl = (url) => {
88
+ if (typeof url === "string") {
89
+ return parseUrl(new URL(url));
90
+ }
91
+ const { hostname, pathname, port, protocol, search } = url;
92
+ let query;
93
+ if (search) {
94
+ query = parseQueryString(search);
95
+ }
96
+ return {
97
+ hostname,
98
+ port: port ? parseInt(port) : undefined,
99
+ protocol,
100
+ path: pathname,
101
+ query
102
+ };
103
+ };
104
+
105
+ export { loadConfig, parseUrl };