@stacksjs/actions 0.70.13 → 0.70.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build.js +9 -9
- package/dist/{chunk-hcfsx7e0.js → chunk-4en18v46.js} +17 -21
- package/dist/{chunk-6xeh1279.js → chunk-76zhb40c.js} +6 -7
- package/dist/{chunk-bh25aaf7.js → chunk-7s5qcjkt.js} +9 -17
- package/dist/{chunk-h46e5ha3.js → chunk-8fx9wfmd.js} +70 -71
- package/dist/{chunk-f48dj1dk.js → chunk-8pskhtbf.js} +3 -3
- package/dist/{chunk-hd6fdt5s.js → chunk-9fyrxvr0.js} +5 -7
- package/dist/{chunk-6vn0j49q.js → chunk-9vr8gng2.js} +12 -15
- package/dist/{chunk-ghp9nh6b.js → chunk-arh0hbb9.js} +25 -34
- package/dist/{chunk-a7k3cdby.js → chunk-at51p2va.js} +1 -1
- package/dist/{chunk-q3gghmwn.js → chunk-b63wvdr0.js} +19 -19
- package/dist/{chunk-xt9exr2c.js → chunk-dkcsykt8.js} +6 -25
- package/dist/{chunk-ad9b7jvj.js → chunk-dwkdjy0f.js} +6 -7
- package/dist/{chunk-f1cxwjkf.js → chunk-kthq483f.js} +5 -6
- package/dist/{chunk-030apzv1.js → chunk-nmb4zt0g.js} +9 -9
- package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
- package/dist/{chunk-gdzs9jf4.js → chunk-ry125mbz.js} +6 -7
- package/dist/{chunk-9menqd9a.js → chunk-t5em30ak.js} +16 -24
- package/dist/{chunk-hcra1987.js → chunk-vd0p1aye.js} +9 -9
- package/dist/{chunk-kbw02372.js → chunk-ve9vn4xg.js} +33 -36
- package/dist/{chunk-0crtxf8d.js → chunk-xeyhm37p.js} +158 -21
- package/dist/chunk-zzerxbrm.js +107 -0
- package/dist/database/seed.js +8 -8
- package/dist/generate/index.js +9 -9
- package/dist/index.js +9 -9
- package/dist/release.js +9 -9
- package/dist/upgrade.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-2m04vhea.js +0 -145
package/dist/build.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generateTypes
|
|
4
4
|
} from "./generate/index.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-8pskhtbf.js";
|
|
6
6
|
import"./helpers/vscode-custom-data.js";
|
|
7
7
|
import"./chunk-494jp8d5.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-8fx9wfmd.js";
|
|
9
9
|
import"./chunk-mdj7x1vs.js";
|
|
10
10
|
import"./chunk-p0c688mg.js";
|
|
11
|
-
import"./chunk-
|
|
11
|
+
import"./chunk-qkm8e752.js";
|
|
12
12
|
import"./chunk-a13x0e43.js";
|
|
13
13
|
import"./chunk-mdqphqep.js";
|
|
14
14
|
import"./chunk-qhh0v93n.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-ve9vn4xg.js";
|
|
16
|
+
import"./chunk-7s5qcjkt.js";
|
|
17
17
|
import"./chunk-bf8bq8pc.js";
|
|
18
|
-
import"./chunk-
|
|
19
|
-
import"./chunk-
|
|
20
|
-
import"./chunk-
|
|
18
|
+
import"./chunk-dkcsykt8.js";
|
|
19
|
+
import"./chunk-zzerxbrm.js";
|
|
20
|
+
import"./chunk-xeyhm37p.js";
|
|
21
|
+
import"./chunk-at51p2va.js";
|
|
21
22
|
import"./chunk-frw3va9v.js";
|
|
22
23
|
import"./chunk-saqpg5nd.js";
|
|
23
|
-
import"./chunk-2m04vhea.js";
|
|
24
24
|
import"./chunk-2dvnt46s.js";
|
|
25
25
|
import"./chunk-w6fdq4hk.js";
|
|
26
26
|
import"./chunk-wkwtsvym.js";
|
|
@@ -3,51 +3,47 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
+
import {
|
|
7
|
+
CredentialsProviderError,
|
|
8
|
+
chain
|
|
9
|
+
} from "./chunk-zzerxbrm.js";
|
|
6
10
|
import {
|
|
7
11
|
require_client
|
|
8
12
|
} from "./chunk-frw3va9v.js";
|
|
9
13
|
import"./chunk-saqpg5nd.js";
|
|
10
|
-
import {
|
|
11
|
-
require_dist_cjs
|
|
12
|
-
} from "./chunk-2m04vhea.js";
|
|
13
14
|
import {
|
|
14
15
|
__require,
|
|
15
16
|
__toESM
|
|
16
17
|
} from "./chunk-9v6qtbez.js";
|
|
17
18
|
|
|
18
|
-
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
|
|
19
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
20
|
-
|
|
21
19
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
|
|
22
20
|
var import_client2 = __toESM(require_client(), 1);
|
|
23
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
24
21
|
|
|
25
22
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
|
|
26
23
|
var import_client = __toESM(require_client(), 1);
|
|
27
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
28
24
|
var resolveCredentialSource = (credentialSource, profileName, logger) => {
|
|
29
25
|
const sourceProvidersMap = {
|
|
30
26
|
EcsContainer: async (options) => {
|
|
31
|
-
const { fromHttp } = await import("./chunk-
|
|
32
|
-
const { fromContainerMetadata } = await import("./chunk-
|
|
27
|
+
const { fromHttp } = await import("./chunk-9vr8gng2.js");
|
|
28
|
+
const { fromContainerMetadata } = await import("./chunk-t5em30ak.js");
|
|
33
29
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
|
|
34
|
-
return async () =>
|
|
30
|
+
return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
|
|
35
31
|
},
|
|
36
32
|
Ec2InstanceMetadata: async (options) => {
|
|
37
33
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
|
|
38
|
-
const { fromInstanceMetadata } = await import("./chunk-
|
|
34
|
+
const { fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
|
|
39
35
|
return async () => fromInstanceMetadata(options)().then(setNamedProvider);
|
|
40
36
|
},
|
|
41
37
|
Environment: async (options) => {
|
|
42
38
|
logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
|
|
43
|
-
const { fromEnv } = await import("./chunk-
|
|
39
|
+
const { fromEnv } = await import("./chunk-qkm8e752.js");
|
|
44
40
|
return async () => fromEnv(options)().then(setNamedProvider);
|
|
45
41
|
}
|
|
46
42
|
};
|
|
47
43
|
if (credentialSource in sourceProvidersMap) {
|
|
48
44
|
return sourceProvidersMap[credentialSource];
|
|
49
45
|
} else {
|
|
50
|
-
throw new
|
|
46
|
+
throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
|
|
51
47
|
}
|
|
52
48
|
};
|
|
53
49
|
var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
|
|
@@ -75,7 +71,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
75
71
|
const profileData = profiles[profileName];
|
|
76
72
|
const { source_profile, region } = profileData;
|
|
77
73
|
if (!options.roleAssumer) {
|
|
78
|
-
const { getDefaultRoleAssumer } = await import("./chunk-
|
|
74
|
+
const { getDefaultRoleAssumer } = await import("./chunk-ry125mbz.js");
|
|
79
75
|
options.roleAssumer = getDefaultRoleAssumer({
|
|
80
76
|
...options.clientConfig,
|
|
81
77
|
credentialProviderLogger: options.logger,
|
|
@@ -86,7 +82,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
86
82
|
}, options.clientPlugins);
|
|
87
83
|
}
|
|
88
84
|
if (source_profile && source_profile in visitedProfiles) {
|
|
89
|
-
throw new
|
|
85
|
+
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
|
|
90
86
|
}
|
|
91
87
|
options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
|
|
92
88
|
const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
|
|
@@ -105,7 +101,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
|
|
|
105
101
|
const { mfa_serial } = profileData;
|
|
106
102
|
if (mfa_serial) {
|
|
107
103
|
if (!options.mfaCodeProvider) {
|
|
108
|
-
throw new
|
|
104
|
+
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
|
109
105
|
}
|
|
110
106
|
params.SerialNumber = mfa_serial;
|
|
111
107
|
params.TokenCode = await options.mfaCodeProvider(mfa_serial);
|
|
@@ -121,7 +117,7 @@ var isCredentialSourceWithoutRoleArn = (section) => {
|
|
|
121
117
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
|
|
122
118
|
var import_client3 = __toESM(require_client(), 1);
|
|
123
119
|
var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
|
|
124
|
-
var resolveProcessCredentials = async (options, profile) => import("./chunk-
|
|
120
|
+
var resolveProcessCredentials = async (options, profile) => import("./chunk-76zhb40c.js").then(({ fromProcess }) => fromProcess({
|
|
125
121
|
...options,
|
|
126
122
|
profile
|
|
127
123
|
})().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
|
|
@@ -129,7 +125,7 @@ var resolveProcessCredentials = async (options, profile) => import("./chunk-6xeh
|
|
|
129
125
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
|
|
130
126
|
var import_client4 = __toESM(require_client(), 1);
|
|
131
127
|
var resolveSsoCredentials = async (profile, profileData, options = {}) => {
|
|
132
|
-
const { fromSSO } = await import("./chunk-
|
|
128
|
+
const { fromSSO } = await import("./chunk-arh0hbb9.js");
|
|
133
129
|
return fromSSO({
|
|
134
130
|
profile,
|
|
135
131
|
logger: options.logger,
|
|
@@ -163,7 +159,7 @@ var resolveStaticCredentials = async (profile, options) => {
|
|
|
163
159
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
|
|
164
160
|
var import_client6 = __toESM(require_client(), 1);
|
|
165
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;
|
|
166
|
-
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-
|
|
162
|
+
var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-kthq483f.js").then(({ fromTokenFile }) => fromTokenFile({
|
|
167
163
|
webIdentityTokenFile: profile.web_identity_token_file,
|
|
168
164
|
roleArn: profile.role_arn,
|
|
169
165
|
roleSessionName: profile.role_session_name,
|
|
@@ -193,7 +189,7 @@ var resolveProfileData = async (profileName, profiles, options, visitedProfiles
|
|
|
193
189
|
if (isSsoProfile(data)) {
|
|
194
190
|
return await resolveSsoCredentials(profileName, data, options);
|
|
195
191
|
}
|
|
196
|
-
throw new
|
|
192
|
+
throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
|
|
197
193
|
};
|
|
198
194
|
|
|
199
195
|
// ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
|
|
@@ -3,19 +3,18 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
+
import {
|
|
7
|
+
CredentialsProviderError
|
|
8
|
+
} from "./chunk-zzerxbrm.js";
|
|
6
9
|
import {
|
|
7
10
|
require_client
|
|
8
11
|
} from "./chunk-frw3va9v.js";
|
|
9
12
|
import"./chunk-saqpg5nd.js";
|
|
10
|
-
import {
|
|
11
|
-
require_dist_cjs
|
|
12
|
-
} from "./chunk-2m04vhea.js";
|
|
13
13
|
import {
|
|
14
14
|
__toESM
|
|
15
15
|
} from "./chunk-9v6qtbez.js";
|
|
16
16
|
|
|
17
17
|
// ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
|
|
18
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
19
18
|
import { exec } from "node:child_process";
|
|
20
19
|
import { promisify } from "node:util";
|
|
21
20
|
|
|
@@ -68,13 +67,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
68
67
|
}
|
|
69
68
|
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
70
69
|
} catch (error) {
|
|
71
|
-
throw new
|
|
70
|
+
throw new CredentialsProviderError(error.message, { logger });
|
|
72
71
|
}
|
|
73
72
|
} else {
|
|
74
|
-
throw new
|
|
73
|
+
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
75
74
|
}
|
|
76
75
|
} else {
|
|
77
|
-
throw new
|
|
76
|
+
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
78
77
|
logger
|
|
79
78
|
});
|
|
80
79
|
}
|
|
@@ -3,17 +3,11 @@ import {
|
|
|
3
3
|
loadSharedConfigFiles
|
|
4
4
|
} from "./chunk-bf8bq8pc.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
|
|
12
|
-
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
13
|
-
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
14
|
-
|
|
15
|
-
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromEnv.js
|
|
16
|
-
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
6
|
+
CredentialsProviderError,
|
|
7
|
+
chain,
|
|
8
|
+
fromStatic,
|
|
9
|
+
memoize
|
|
10
|
+
} from "./chunk-zzerxbrm.js";
|
|
17
11
|
|
|
18
12
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
19
13
|
function getSelectorName(functionString) {
|
|
@@ -37,12 +31,11 @@ var fromEnv = (envVarSelector, logger) => async () => {
|
|
|
37
31
|
}
|
|
38
32
|
return config;
|
|
39
33
|
} catch (e) {
|
|
40
|
-
throw new
|
|
34
|
+
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
|
41
35
|
}
|
|
42
36
|
};
|
|
43
37
|
|
|
44
38
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
45
|
-
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
46
39
|
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
47
40
|
const profile = getProfileName(init);
|
|
48
41
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
@@ -57,17 +50,16 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
57
50
|
}
|
|
58
51
|
return configValue;
|
|
59
52
|
} catch (e) {
|
|
60
|
-
throw new
|
|
53
|
+
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
61
54
|
}
|
|
62
55
|
};
|
|
63
56
|
|
|
64
57
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
65
|
-
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
66
58
|
var isFunction = (func) => typeof func === "function";
|
|
67
|
-
var
|
|
59
|
+
var fromStatic2 = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromStatic(defaultValue);
|
|
68
60
|
|
|
69
61
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/configLoader.js
|
|
70
|
-
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) =>
|
|
62
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic2(defaultValue)));
|
|
71
63
|
// ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
|
|
72
64
|
function parseQueryString(querystring) {
|
|
73
65
|
const query = {};
|