@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,212 @@
1
+ // @bun
2
+ import {
3
+ getProfileName,
4
+ parseKnownFiles
5
+ } from "./chunk-bf8bq8pc.js";
6
+ import {
7
+ CredentialsProviderError,
8
+ chain
9
+ } from "./chunk-zzerxbrm.js";
10
+ import {
11
+ require_client
12
+ } from "./chunk-frw3va9v.js";
13
+ import"./chunk-saqpg5nd.js";
14
+ import {
15
+ __require,
16
+ __toESM
17
+ } from "./chunk-9v6qtbez.js";
18
+
19
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
20
+ var import_client2 = __toESM(require_client(), 1);
21
+
22
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
23
+ var import_client = __toESM(require_client(), 1);
24
+ var resolveCredentialSource = (credentialSource, profileName, logger) => {
25
+ const sourceProvidersMap = {
26
+ EcsContainer: async (options) => {
27
+ const { fromHttp } = await import("./chunk-e7mp4xy5.js");
28
+ const { fromContainerMetadata } = await import("./chunk-t5em30ak.js");
29
+ logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
30
+ return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
31
+ },
32
+ Ec2InstanceMetadata: async (options) => {
33
+ logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
34
+ const { fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
35
+ return async () => fromInstanceMetadata(options)().then(setNamedProvider);
36
+ },
37
+ Environment: async (options) => {
38
+ logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
39
+ const { fromEnv } = await import("./chunk-qkm8e752.js");
40
+ return async () => fromEnv(options)().then(setNamedProvider);
41
+ }
42
+ };
43
+ if (credentialSource in sourceProvidersMap) {
44
+ return sourceProvidersMap[credentialSource];
45
+ } else {
46
+ throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
47
+ }
48
+ };
49
+ var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
50
+
51
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
52
+ var isAssumeRoleProfile = (arg, { profile = "default", logger } = {}) => {
53
+ 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 }));
54
+ };
55
+ var isAssumeRoleWithSourceProfile = (arg, { profile, logger }) => {
56
+ const withSourceProfile = typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined";
57
+ if (withSourceProfile) {
58
+ logger?.debug?.(` ${profile} isAssumeRoleWithSourceProfile source_profile=${arg.source_profile}`);
59
+ }
60
+ return withSourceProfile;
61
+ };
62
+ var isCredentialSourceProfile = (arg, { profile, logger }) => {
63
+ const withProviderProfile = typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined";
64
+ if (withProviderProfile) {
65
+ logger?.debug?.(` ${profile} isCredentialSourceProfile credential_source=${arg.credential_source}`);
66
+ }
67
+ return withProviderProfile;
68
+ };
69
+ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
70
+ options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
71
+ const profileData = profiles[profileName];
72
+ const { source_profile, region } = profileData;
73
+ if (!options.roleAssumer) {
74
+ const { getDefaultRoleAssumer } = await import("./chunk-9exgwfkw.js");
75
+ options.roleAssumer = getDefaultRoleAssumer({
76
+ ...options.clientConfig,
77
+ credentialProviderLogger: options.logger,
78
+ parentClientConfig: {
79
+ ...options?.parentClientConfig,
80
+ region: region ?? options?.parentClientConfig?.region
81
+ }
82
+ }, options.clientPlugins);
83
+ }
84
+ if (source_profile && source_profile in visitedProfiles) {
85
+ throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
86
+ }
87
+ options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
88
+ const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
89
+ ...visitedProfiles,
90
+ [source_profile]: true
91
+ }, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
92
+ if (isCredentialSourceWithoutRoleArn(profileData)) {
93
+ return sourceCredsProvider.then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
94
+ } else {
95
+ const params = {
96
+ RoleArn: profileData.role_arn,
97
+ RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
98
+ ExternalId: profileData.external_id,
99
+ DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
100
+ };
101
+ const { mfa_serial } = profileData;
102
+ if (mfa_serial) {
103
+ if (!options.mfaCodeProvider) {
104
+ throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
105
+ }
106
+ params.SerialNumber = mfa_serial;
107
+ params.TokenCode = await options.mfaCodeProvider(mfa_serial);
108
+ }
109
+ const sourceCreds = await sourceCredsProvider;
110
+ return options.roleAssumer(sourceCreds, params).then((creds) => import_client2.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
111
+ }
112
+ };
113
+ var isCredentialSourceWithoutRoleArn = (section) => {
114
+ return !section.role_arn && !!section.credential_source;
115
+ };
116
+
117
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
118
+ var import_client3 = __toESM(require_client(), 1);
119
+ var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
120
+ var resolveProcessCredentials = async (options, profile) => import("./chunk-76zhb40c.js").then(({ fromProcess }) => fromProcess({
121
+ ...options,
122
+ profile
123
+ })().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
124
+
125
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
126
+ var import_client4 = __toESM(require_client(), 1);
127
+ var resolveSsoCredentials = async (profile, profileData, options = {}) => {
128
+ const { fromSSO } = await import("./chunk-r1ednxa6.js");
129
+ return fromSSO({
130
+ profile,
131
+ logger: options.logger,
132
+ parentClientConfig: options.parentClientConfig,
133
+ clientConfig: options.clientConfig
134
+ })().then((creds) => {
135
+ if (profileData.sso_session) {
136
+ return import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO", "r");
137
+ } else {
138
+ return import_client4.setCredentialFeature(creds, "CREDENTIALS_PROFILE_SSO_LEGACY", "t");
139
+ }
140
+ });
141
+ };
142
+ 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");
143
+
144
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js
145
+ var import_client5 = __toESM(require_client(), 1);
146
+ 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;
147
+ var resolveStaticCredentials = async (profile, options) => {
148
+ options?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");
149
+ const credentials = {
150
+ accessKeyId: profile.aws_access_key_id,
151
+ secretAccessKey: profile.aws_secret_access_key,
152
+ sessionToken: profile.aws_session_token,
153
+ ...profile.aws_credential_scope && { credentialScope: profile.aws_credential_scope },
154
+ ...profile.aws_account_id && { accountId: profile.aws_account_id }
155
+ };
156
+ return import_client5.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
157
+ };
158
+
159
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
160
+ var import_client6 = __toESM(require_client(), 1);
161
+ 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;
162
+ var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-zsm2c35w.js").then(({ fromTokenFile }) => fromTokenFile({
163
+ webIdentityTokenFile: profile.web_identity_token_file,
164
+ roleArn: profile.role_arn,
165
+ roleSessionName: profile.role_session_name,
166
+ roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity,
167
+ logger: options.logger,
168
+ parentClientConfig: options.parentClientConfig
169
+ })().then((creds) => import_client6.setCredentialFeature(creds, "CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN", "q")));
170
+
171
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
172
+ var resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}, isAssumeRoleRecursiveCall = false) => {
173
+ const data = profiles[profileName];
174
+ if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) {
175
+ return resolveStaticCredentials(data, options);
176
+ }
177
+ if (isAssumeRoleRecursiveCall || isAssumeRoleProfile(data, { profile: profileName, logger: options.logger })) {
178
+ return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles);
179
+ }
180
+ if (isStaticCredsProfile(data)) {
181
+ return resolveStaticCredentials(data, options);
182
+ }
183
+ if (isWebIdentityProfile(data)) {
184
+ return resolveWebIdentityCredentials(data, options);
185
+ }
186
+ if (isProcessProfile(data)) {
187
+ return resolveProcessCredentials(options, profileName);
188
+ }
189
+ if (isSsoProfile(data)) {
190
+ return await resolveSsoCredentials(profileName, data, options);
191
+ }
192
+ throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
193
+ };
194
+
195
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
196
+ var fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
197
+ const init = {
198
+ ..._init,
199
+ parentClientConfig: {
200
+ ...callerClientConfig,
201
+ ..._init.parentClientConfig
202
+ }
203
+ };
204
+ init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
205
+ const profiles = await parseKnownFiles(init);
206
+ return resolveProfileData(getProfileName({
207
+ profile: _init.profile ?? callerClientConfig?.profile
208
+ }), profiles, init);
209
+ };
210
+ export {
211
+ fromIni
212
+ };
@@ -0,0 +1,72 @@
1
+ // @bun
2
+ import {
3
+ CredentialsProviderError
4
+ } from "./chunk-zzerxbrm.js";
5
+ import {
6
+ require_client
7
+ } from "./chunk-frw3va9v.js";
8
+ import {
9
+ __require,
10
+ __toESM
11
+ } from "./chunk-9v6qtbez.js";
12
+
13
+ // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
14
+ var import_client = __toESM(require_client(), 1);
15
+ import { readFileSync } from "node:fs";
16
+
17
+ // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
18
+ var fromWebToken = (init) => async (awsIdentityProperties) => {
19
+ init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
20
+ const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
21
+ let { roleAssumerWithWebIdentity } = init;
22
+ if (!roleAssumerWithWebIdentity) {
23
+ const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-9exgwfkw.js");
24
+ roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
25
+ ...init.clientConfig,
26
+ credentialProviderLogger: init.logger,
27
+ parentClientConfig: {
28
+ ...awsIdentityProperties?.callerClientConfig,
29
+ ...init.parentClientConfig
30
+ }
31
+ }, init.clientPlugins);
32
+ }
33
+ return roleAssumerWithWebIdentity({
34
+ RoleArn: roleArn,
35
+ RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`,
36
+ WebIdentityToken: webIdentityToken,
37
+ ProviderId: providerId,
38
+ PolicyArns: policyArns,
39
+ Policy: policy,
40
+ DurationSeconds: durationSeconds
41
+ });
42
+ };
43
+
44
+ // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
45
+ var ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
46
+ var ENV_ROLE_ARN = "AWS_ROLE_ARN";
47
+ var ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME";
48
+ var fromTokenFile = (init = {}) => async () => {
49
+ init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");
50
+ const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE];
51
+ const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
52
+ const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
53
+ if (!webIdentityTokenFile || !roleArn) {
54
+ throw new CredentialsProviderError("Web identity configuration not specified", {
55
+ logger: init.logger
56
+ });
57
+ }
58
+ const credentials = await fromWebToken({
59
+ ...init,
60
+ webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
61
+ roleArn,
62
+ roleSessionName
63
+ })();
64
+ if (webIdentityTokenFile === process.env[ENV_TOKEN_FILE]) {
65
+ import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN", "h");
66
+ }
67
+ return credentials;
68
+ };
69
+ export {
70
+ fromWebToken,
71
+ fromTokenFile
72
+ };
@@ -0,0 +1,107 @@
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 };
@@ -1,14 +1,29 @@
1
1
  // @bun
2
2
  import {
3
3
  seed
4
- } from "../chunk-8tjc3whz.js";
5
- import"../chunk-fxan91t8.js";
4
+ } from "../chunk-hp8vmq3g.js";
5
+ import"../chunk-mdj7x1vs.js";
6
+ import"../chunk-p0c688mg.js";
7
+ import"../chunk-qkm8e752.js";
8
+ import"../chunk-a13x0e43.js";
9
+ import"../chunk-mdqphqep.js";
10
+ import"../chunk-qhh0v93n.js";
11
+ import"../chunk-pnre7439.js";
12
+ import"../chunk-7s5qcjkt.js";
13
+ import"../chunk-bf8bq8pc.js";
14
+ import"../chunk-xt9exr2c.js";
15
+ import"../chunk-zzerxbrm.js";
16
+ import"../chunk-veja9rez.js";
17
+ import"../chunk-a7k3cdby.js";
18
+ import"../chunk-frw3va9v.js";
19
+ import"../chunk-saqpg5nd.js";
20
+ import"../chunk-2dvnt46s.js";
6
21
  import"../chunk-w6fdq4hk.js";
7
22
  import"../chunk-wkwtsvym.js";
8
23
  import"../chunk-9v6qtbez.js";
9
24
 
10
25
  // src/database/seed.ts
11
- import process from "process";
26
+ import process from "node:process";
12
27
  import { log } from "@stacksjs/cli";
13
28
  log.info("Seeding database...");
14
29
  await seed();
@@ -3,7 +3,7 @@ import"../chunk-wkwtsvym.js";
3
3
  import"../chunk-9v6qtbez.js";
4
4
 
5
5
  // src/deploy/index.ts
6
- import process from "process";
6
+ import process from "node:process";
7
7
  import { log, runCommand } from "@stacksjs/cli";
8
8
  import { config } from "@stacksjs/config";
9
9
  import { path as p } from "@stacksjs/path";
package/dist/examples.js CHANGED
@@ -3,7 +3,7 @@ import"./chunk-wkwtsvym.js";
3
3
  import"./chunk-9v6qtbez.js";
4
4
 
5
5
  // src/examples.ts
6
- import process from "process";
6
+ import process from "node:process";
7
7
  import { NpmScript } from "@stacksjs/enums";
8
8
  import { log } from "@stacksjs/logging";
9
9
  import { hasComponents } from "@stacksjs/storage";
package/dist/fresh.js CHANGED
@@ -3,7 +3,7 @@ import"./chunk-wkwtsvym.js";
3
3
  import"./chunk-9v6qtbez.js";
4
4
 
5
5
  // src/fresh.ts
6
- import process from "process";
6
+ import process from "node:process";
7
7
  import { runCommand } from "@stacksjs/cli";
8
8
  import { handleError } from "@stacksjs/error-handling";
9
9
  import { log } from "@stacksjs/logging";
@@ -1,15 +1,30 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "../chunk-v1qz355d.js";
4
+ } from "../chunk-7exdh0pw.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-8tjc3whz.js";
12
- import"../chunk-fxan91t8.js";
11
+ } from "../chunk-hp8vmq3g.js";
12
+ import"../chunk-mdj7x1vs.js";
13
+ import"../chunk-p0c688mg.js";
14
+ import"../chunk-qkm8e752.js";
15
+ import"../chunk-a13x0e43.js";
16
+ import"../chunk-mdqphqep.js";
17
+ import"../chunk-qhh0v93n.js";
18
+ import"../chunk-pnre7439.js";
19
+ import"../chunk-7s5qcjkt.js";
20
+ import"../chunk-bf8bq8pc.js";
21
+ import"../chunk-xt9exr2c.js";
22
+ import"../chunk-zzerxbrm.js";
23
+ import"../chunk-veja9rez.js";
24
+ import"../chunk-a7k3cdby.js";
25
+ import"../chunk-frw3va9v.js";
26
+ import"../chunk-saqpg5nd.js";
27
+ import"../chunk-2dvnt46s.js";
13
28
  import"../chunk-w6fdq4hk.js";
14
29
  import"../chunk-wkwtsvym.js";
15
30
  import"../chunk-ze46550n.js";
@@ -19,7 +34,7 @@ import {
19
34
  import"../chunk-9v6qtbez.js";
20
35
 
21
36
  // src/generate/index.ts
22
- import process from "process";
37
+ import process from "node:process";
23
38
 
24
39
  // ../api/src/generate-openapi.ts
25
40
  import { path } from "@stacksjs/path";
@@ -1734,10 +1734,10 @@ var require_buffer_from = __commonJS((exports, module) => {
1734
1734
  // ../../../../node_modules/source-map-support/source-map-support.js
1735
1735
  var require_source_map_support = __commonJS((exports, module) => {
1736
1736
  var SourceMapConsumer = require_source_map().SourceMapConsumer;
1737
- var path = __require("path");
1737
+ var path = __require("node:path");
1738
1738
  var fs;
1739
1739
  try {
1740
- fs = __require("fs");
1740
+ fs = __require("node:fs");
1741
1741
  if (!fs.existsSync || !fs.readFileSync) {
1742
1742
  fs = null;
1743
1743
  }
@@ -7166,7 +7166,7 @@ ${lanes.join(`
7166
7166
  function tryGetPerformance() {
7167
7167
  if (isNodeLikeSystem()) {
7168
7168
  try {
7169
- const { performance: performance2 } = __require("perf_hooks");
7169
+ const { performance: performance2 } = __require("node:perf_hooks");
7170
7170
  if (performance2) {
7171
7171
  return {
7172
7172
  shouldWriteNativeEvents: false,
@@ -7344,7 +7344,7 @@ ${lanes.join(`
7344
7344
  Debug.assert(!tracing, "Tracing already started");
7345
7345
  if (fs === undefined) {
7346
7346
  try {
7347
- fs = __require("fs");
7347
+ fs = __require("node:fs");
7348
7348
  } catch (e) {
7349
7349
  throw new Error(`tracing requires having fs
7350
7350
  (original error: ${e.message || e})`);
@@ -10208,12 +10208,12 @@ ${lanes.join(`
10208
10208
  const byteOrderMarkIndicator = "\uFEFF";
10209
10209
  function getNodeSystem() {
10210
10210
  const nativePattern = /^native |^\([^)]+\)$|^(?:internal[\\/]|[\w\s]+(?:\.js)?$)/;
10211
- const _fs = __require("fs");
10212
- const _path = __require("path");
10213
- const _os = __require("os");
10211
+ const _fs = __require("node:fs");
10212
+ const _path = __require("node:path");
10213
+ const _os = __require("node:os");
10214
10214
  let _crypto;
10215
10215
  try {
10216
- _crypto = __require("crypto");
10216
+ _crypto = __require("node:crypto");
10217
10217
  } catch {
10218
10218
  _crypto = undefined;
10219
10219
  }
@@ -10356,7 +10356,7 @@ ${lanes.join(`
10356
10356
  cb();
10357
10357
  return false;
10358
10358
  }
10359
- const inspector = __require("inspector");
10359
+ const inspector = __require("node:inspector");
10360
10360
  if (!inspector || !inspector.Session) {
10361
10361
  cb();
10362
10362
  return false;
@@ -186035,7 +186035,7 @@ var require_minimatch = __commonJS((exports, module) => {
186035
186035
  minimatch.Minimatch = Minimatch;
186036
186036
  var path = function() {
186037
186037
  try {
186038
- return __require("path");
186038
+ return __require("node:path");
186039
186039
  } catch (e) {}
186040
186040
  }() || {
186041
186041
  sep: "/"
@@ -8,7 +8,7 @@ import {
8
8
  import"../chunk-9v6qtbez.js";
9
9
 
10
10
  // src/helpers/lib-entries.ts
11
- import process from "process";
11
+ import process from "node:process";
12
12
  import { log } from "@stacksjs/logging";
13
13
  import { componentsPath, functionsPath, libraryEntryPath } from "@stacksjs/path";
14
14
  import { writeTextFile } from "@stacksjs/storage";
package/dist/index.js CHANGED
@@ -41,11 +41,26 @@ import {
41
41
  generateWebTypes,
42
42
  invoke
43
43
  } from "./generate/index.js";
44
- import"./chunk-v1qz355d.js";
44
+ import"./chunk-7exdh0pw.js";
45
45
  import"./helpers/vscode-custom-data.js";
46
46
  import"./chunk-494jp8d5.js";
47
- import"./chunk-8tjc3whz.js";
48
- import"./chunk-fxan91t8.js";
47
+ import"./chunk-hp8vmq3g.js";
48
+ import"./chunk-mdj7x1vs.js";
49
+ import"./chunk-p0c688mg.js";
50
+ import"./chunk-qkm8e752.js";
51
+ import"./chunk-a13x0e43.js";
52
+ import"./chunk-mdqphqep.js";
53
+ import"./chunk-qhh0v93n.js";
54
+ import"./chunk-pnre7439.js";
55
+ import"./chunk-7s5qcjkt.js";
56
+ import"./chunk-bf8bq8pc.js";
57
+ import"./chunk-xt9exr2c.js";
58
+ import"./chunk-zzerxbrm.js";
59
+ import"./chunk-veja9rez.js";
60
+ import"./chunk-a7k3cdby.js";
61
+ import"./chunk-frw3va9v.js";
62
+ import"./chunk-saqpg5nd.js";
63
+ import"./chunk-2dvnt46s.js";
49
64
  import"./chunk-w6fdq4hk.js";
50
65
  import"./chunk-wkwtsvym.js";
51
66
  import {
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  generateAppKey
4
- } from "./chunk-fxan91t8.js";
4
+ } from "./chunk-2dvnt46s.js";
5
5
  import"./chunk-wkwtsvym.js";
6
6
  import"./chunk-9v6qtbez.js";
7
7
 
package/dist/lint/fix.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/lint/fix.ts
3
- import process from "process";
3
+ import process from "node:process";
4
4
  import { log, parseOptions, runCommand } from "@stacksjs/cli";
5
5
  import { NpmScript } from "@stacksjs/enums";
6
6
  import { projectPath } from "@stacksjs/path";
package/dist/make.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  import"./chunk-9v6qtbez.js";
7
7
 
8
8
  // src/make.ts
9
- import process from "process";
9
+ import process from "node:process";
10
10
  import { italic, runCommand } from "@stacksjs/cli";
11
11
  import { localUrl } from "@stacksjs/config";
12
12
  import { Action } from "@stacksjs/enums";
@@ -1,6 +1,6 @@
1
1
  // @bun
2
2
  // src/prepublish.ts
3
- import process from "process";
3
+ import process from "node:process";
4
4
  import { NpmScript } from "@stacksjs/enums";
5
5
  import { log } from "@stacksjs/logging";
6
6
  import { runtimePath } from "@stacksjs/path";