@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.
- package/dist/build.js +7 -7
- package/dist/{chunk-veja9rez.js → chunk-0crtxf8d.js} +19 -156
- package/dist/{chunk-xgpn959d.js → chunk-264njj8m.js} +7 -7
- package/dist/{chunk-38cnnp2b.js → chunk-2jssg98j.js} +7 -5
- package/dist/chunk-2m04vhea.js +145 -0
- package/dist/{chunk-dhnwmbca.js → chunk-4tte2ccn.js} +6 -6
- package/dist/{chunk-9exgwfkw.js → chunk-6egz2b52.js} +5 -4
- package/dist/{chunk-e7mp4xy5.js → chunk-6vn0j49q.js} +12 -9
- package/dist/{chunk-76zhb40c.js → chunk-6xeh1279.js} +7 -6
- package/dist/{chunk-gtghjj5c.js → chunk-74nzt2f7.js} +12 -9
- package/dist/{chunk-qkm8e752.js → chunk-8dsect0a.js} +5 -4
- package/dist/{chunk-t5em30ak.js → chunk-9menqd9a.js} +24 -16
- package/dist/{chunk-c0b89186.js → chunk-annfdd3f.js} +7 -7
- package/dist/{chunk-f6a9g4qa.js → chunk-b7b7jd25.js} +5 -4
- package/dist/{chunk-7s5qcjkt.js → chunk-bh25aaf7.js} +17 -9
- package/dist/{chunk-zsm2c35w.js → chunk-cvxddy4g.js} +6 -5
- package/dist/{chunk-ky5192ey.js → chunk-fsa32kvk.js} +69 -67
- package/dist/{chunk-shmtrj5e.js → chunk-jqbza09y.js} +21 -17
- package/dist/{chunk-v1m830st.js → chunk-x1ny4wwh.js} +3 -3
- package/dist/{chunk-2vba9ke6.js → chunk-z4k3w6hz.js} +34 -25
- 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 +17 -17
- package/dist/chunk-zzerxbrm.js +0 -107
|
@@ -4,9 +4,6 @@ import {
|
|
|
4
4
|
NodeHttpHandler,
|
|
5
5
|
parseRfc3339DateTime
|
|
6
6
|
} from "./chunk-xt9exr2c.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
|
};
|
|
@@ -3,18 +3,19 @@ import {
|
|
|
3
3
|
getProfileName,
|
|
4
4
|
parseKnownFiles
|
|
5
5
|
} from "./chunk-bf8bq8pc.js";
|
|
6
|
-
import {
|
|
7
|
-
CredentialsProviderError
|
|
8
|
-
} from "./chunk-zzerxbrm.js";
|
|
9
6
|
import {
|
|
10
7
|
require_client
|
|
11
8
|
} from "./chunk-frw3va9v.js";
|
|
12
9
|
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);
|
|
18
19
|
import { exec } from "node:child_process";
|
|
19
20
|
import { promisify } from "node:util";
|
|
20
21
|
|
|
@@ -67,13 +68,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
|
|
|
67
68
|
}
|
|
68
69
|
return getValidatedProcessCredentials(profileName, data, profiles);
|
|
69
70
|
} catch (error) {
|
|
70
|
-
throw new CredentialsProviderError(error.message, { logger });
|
|
71
|
+
throw new import_property_provider.CredentialsProviderError(error.message, { logger });
|
|
71
72
|
}
|
|
72
73
|
} else {
|
|
73
|
-
throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
74
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
|
|
74
75
|
}
|
|
75
76
|
} else {
|
|
76
|
-
throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
77
|
+
throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
|
|
77
78
|
logger
|
|
78
79
|
});
|
|
79
80
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig,
|
|
3
3
|
parseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-bh25aaf7.js";
|
|
5
5
|
import {
|
|
6
6
|
CONFIG_PREFIX_SEPARATOR
|
|
7
7
|
} from "./chunk-bf8bq8pc.js";
|
|
@@ -10,18 +10,18 @@ import {
|
|
|
10
10
|
HttpResponse,
|
|
11
11
|
NoOpLogger
|
|
12
12
|
} from "./chunk-xt9exr2c.js";
|
|
13
|
-
import {
|
|
14
|
-
memoize
|
|
15
|
-
} from "./chunk-zzerxbrm.js";
|
|
16
13
|
import {
|
|
17
14
|
require_dist,
|
|
18
15
|
require_dist_cjs as require_dist_cjs2,
|
|
19
16
|
require_dist_cjs2 as require_dist_cjs3,
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
17
|
+
require_dist_cjs4 as require_dist_cjs5
|
|
18
|
+
} from "./chunk-0crtxf8d.js";
|
|
22
19
|
import {
|
|
23
20
|
require_dist_cjs
|
|
24
21
|
} from "./chunk-saqpg5nd.js";
|
|
22
|
+
import {
|
|
23
|
+
require_dist_cjs as require_dist_cjs4
|
|
24
|
+
} from "./chunk-2m04vhea.js";
|
|
25
25
|
import {
|
|
26
26
|
__require,
|
|
27
27
|
__toESM
|
|
@@ -946,7 +946,7 @@ var awsEndpointFunctions = {
|
|
|
946
946
|
};
|
|
947
947
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
948
948
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
|
|
949
|
-
var import_core2 = __toESM(
|
|
949
|
+
var import_core2 = __toESM(require_dist_cjs5(), 1);
|
|
950
950
|
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
951
951
|
async function checkFeatures(context, config, args) {
|
|
952
952
|
const request = args.request;
|
|
@@ -2117,6 +2117,9 @@ var calculateBodyLength = (body) => {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
2119
2119
|
};
|
|
2120
|
+
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2121
|
+
var import_property_provider = __toESM(require_dist_cjs4(), 1);
|
|
2122
|
+
|
|
2120
2123
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
2121
2124
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
2122
2125
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
@@ -2139,7 +2142,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
|
2139
2142
|
};
|
|
2140
2143
|
|
|
2141
2144
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2142
|
-
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
|
|
2145
|
+
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => import_property_provider.memoize(async () => {
|
|
2143
2146
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
2144
2147
|
switch (mode?.toLowerCase()) {
|
|
2145
2148
|
case "auto":
|
|
@@ -2177,7 +2180,7 @@ var inferPhysicalRegion = async () => {
|
|
|
2177
2180
|
}
|
|
2178
2181
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
2179
2182
|
try {
|
|
2180
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-
|
|
2183
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-9menqd9a.js");
|
|
2181
2184
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
2182
2185
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
2183
2186
|
} catch (e) {}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CredentialsProviderError
|
|
4
|
-
} from "./chunk-zzerxbrm.js";
|
|
5
2
|
import {
|
|
6
3
|
require_client
|
|
7
4
|
} from "./chunk-frw3va9v.js";
|
|
5
|
+
import {
|
|
6
|
+
require_dist_cjs
|
|
7
|
+
} from "./chunk-2m04vhea.js";
|
|
8
8
|
import {
|
|
9
9
|
__toESM
|
|
10
10
|
} from "./chunk-9v6qtbez.js";
|
|
11
11
|
|
|
12
12
|
// ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
|
|
13
13
|
var import_client = __toESM(require_client(), 1);
|
|
14
|
+
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
14
15
|
var ENV_KEY = "AWS_ACCESS_KEY_ID";
|
|
15
16
|
var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
|
|
16
17
|
var ENV_SESSION = "AWS_SESSION_TOKEN";
|
|
@@ -37,7 +38,7 @@ var fromEnv = (init) => async () => {
|
|
|
37
38
|
import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
|
|
38
39
|
return credentials;
|
|
39
40
|
}
|
|
40
|
-
throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
41
|
+
throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
|
|
41
42
|
};
|
|
42
43
|
export {
|
|
43
44
|
fromEnv,
|
|
@@ -2,19 +2,22 @@
|
|
|
2
2
|
import {
|
|
3
3
|
loadConfig,
|
|
4
4
|
parseUrl
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-bh25aaf7.js";
|
|
6
6
|
import"./chunk-bf8bq8pc.js";
|
|
7
|
-
import {
|
|
8
|
-
CredentialsProviderError,
|
|
9
|
-
ProviderError
|
|
10
|
-
} from "./chunk-zzerxbrm.js";
|
|
11
7
|
import"./chunk-saqpg5nd.js";
|
|
12
|
-
import
|
|
8
|
+
import {
|
|
9
|
+
require_dist_cjs
|
|
10
|
+
} from "./chunk-2m04vhea.js";
|
|
11
|
+
import {
|
|
12
|
+
__toESM
|
|
13
|
+
} from "./chunk-9v6qtbez.js";
|
|
13
14
|
|
|
14
15
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
|
|
16
|
+
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
15
17
|
import { parse } from "node:url";
|
|
16
18
|
|
|
17
19
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
|
|
20
|
+
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
18
21
|
import { Buffer } from "node:buffer";
|
|
19
22
|
import { request } from "node:http";
|
|
20
23
|
function httpRequest(options) {
|
|
@@ -25,17 +28,17 @@ function httpRequest(options) {
|
|
|
25
28
|
hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
|
|
26
29
|
});
|
|
27
30
|
req.on("error", (err) => {
|
|
28
|
-
reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err));
|
|
31
|
+
reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err));
|
|
29
32
|
req.destroy();
|
|
30
33
|
});
|
|
31
34
|
req.on("timeout", () => {
|
|
32
|
-
reject(new ProviderError("TimeoutError from instance metadata service"));
|
|
35
|
+
reject(new import_property_provider.ProviderError("TimeoutError from instance metadata service"));
|
|
33
36
|
req.destroy();
|
|
34
37
|
});
|
|
35
38
|
req.on("response", (res) => {
|
|
36
39
|
const { statusCode = 400 } = res;
|
|
37
40
|
if (statusCode < 200 || 300 <= statusCode) {
|
|
38
|
-
reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
41
|
+
reject(Object.assign(new import_property_provider.ProviderError("Error response received from instance metadata service"), { statusCode }));
|
|
39
42
|
req.destroy();
|
|
40
43
|
}
|
|
41
44
|
const chunks = [];
|
|
@@ -85,7 +88,7 @@ var fromContainerMetadata = (init = {}) => {
|
|
|
85
88
|
const requestOptions = await getCmdsUri({ logger: init.logger });
|
|
86
89
|
const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
|
|
87
90
|
if (!isImdsCredentials(credsResponse)) {
|
|
88
|
-
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
91
|
+
throw new import_property_provider2.CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
89
92
|
logger: init.logger
|
|
90
93
|
});
|
|
91
94
|
}
|
|
@@ -124,13 +127,13 @@ var getCmdsUri = async ({ logger }) => {
|
|
|
124
127
|
if (process.env[ENV_CMDS_FULL_URI]) {
|
|
125
128
|
const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
|
|
126
129
|
if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
|
|
127
|
-
throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
130
|
+
throw new import_property_provider2.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
|
|
128
131
|
tryNextLink: false,
|
|
129
132
|
logger
|
|
130
133
|
});
|
|
131
134
|
}
|
|
132
135
|
if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
|
|
133
|
-
throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
136
|
+
throw new import_property_provider2.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
|
|
134
137
|
tryNextLink: false,
|
|
135
138
|
logger
|
|
136
139
|
});
|
|
@@ -140,13 +143,18 @@ var getCmdsUri = async ({ logger }) => {
|
|
|
140
143
|
port: parsed.port ? parseInt(parsed.port, 10) : undefined
|
|
141
144
|
};
|
|
142
145
|
}
|
|
143
|
-
throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
|
|
146
|
+
throw new import_property_provider2.CredentialsProviderError("The container metadata credential provider cannot be used unless" + ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + " variable is set", {
|
|
144
147
|
tryNextLink: false,
|
|
145
148
|
logger
|
|
146
149
|
});
|
|
147
150
|
};
|
|
151
|
+
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
|
|
152
|
+
var import_property_provider4 = __toESM(require_dist_cjs(), 1);
|
|
153
|
+
|
|
148
154
|
// ../../../../node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
|
|
149
|
-
|
|
155
|
+
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
156
|
+
|
|
157
|
+
class InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
|
|
150
158
|
constructor(message, tryNextLink = true) {
|
|
151
159
|
super(message, tryNextLink);
|
|
152
160
|
this.tryNextLink = tryNextLink;
|
|
@@ -264,7 +272,7 @@ var getInstanceMetadataProvider = (init = {}) => {
|
|
|
264
272
|
const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
|
|
265
273
|
fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
|
|
266
274
|
if (envValue === undefined) {
|
|
267
|
-
throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
275
|
+
throw new import_property_provider4.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
|
|
268
276
|
}
|
|
269
277
|
return fallbackBlockedFromProcessEnv;
|
|
270
278
|
},
|
|
@@ -358,7 +366,7 @@ var getCredentialsFromProfile = async (profile, options, init) => {
|
|
|
358
366
|
path: IMDS_PATH + profile
|
|
359
367
|
})).toString());
|
|
360
368
|
if (!isImdsCredentials(credentialsResponse)) {
|
|
361
|
-
throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
369
|
+
throw new import_property_provider4.CredentialsProviderError("Invalid response received from instance metadata service.", {
|
|
362
370
|
logger: init.logger
|
|
363
371
|
});
|
|
364
372
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-x1ny4wwh.js";
|
|
5
|
+
import"./chunk-fsa32kvk.js";
|
|
6
6
|
import"./chunk-mdj7x1vs.js";
|
|
7
7
|
import"./chunk-p0c688mg.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-8dsect0a.js";
|
|
9
9
|
import"./chunk-a13x0e43.js";
|
|
10
10
|
import"./chunk-mdqphqep.js";
|
|
11
11
|
import"./chunk-qhh0v93n.js";
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
12
|
+
import"./chunk-74nzt2f7.js";
|
|
13
|
+
import"./chunk-bh25aaf7.js";
|
|
14
14
|
import"./chunk-bf8bq8pc.js";
|
|
15
15
|
import"./chunk-xt9exr2c.js";
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-veja9rez.js";
|
|
16
|
+
import"./chunk-0crtxf8d.js";
|
|
18
17
|
import"./chunk-a7k3cdby.js";
|
|
19
18
|
import"./chunk-frw3va9v.js";
|
|
20
19
|
import"./chunk-saqpg5nd.js";
|
|
20
|
+
import"./chunk-2m04vhea.js";
|
|
21
21
|
import"./chunk-2dvnt46s.js";
|
|
22
22
|
import"./chunk-w6fdq4hk.js";
|
|
23
23
|
import"./chunk-wkwtsvym.js";
|
|
@@ -19,15 +19,15 @@ import {
|
|
|
19
19
|
require_dist_cjs8 as require_dist_cjs18,
|
|
20
20
|
require_dist_cjs9 as require_dist_cjs19,
|
|
21
21
|
require_package
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2jssg98j.js";
|
|
23
23
|
import {
|
|
24
24
|
require_dist_cjs,
|
|
25
25
|
require_dist_cjs1 as require_dist_cjs2,
|
|
26
26
|
require_dist_cjs2 as require_dist_cjs7,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
require_dist_cjs3 as require_dist_cjs8,
|
|
28
|
+
require_dist_cjs4 as require_dist_cjs9,
|
|
29
29
|
require_tslib
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-0crtxf8d.js";
|
|
31
31
|
import {
|
|
32
32
|
require_dist_cjs as require_dist_cjs3,
|
|
33
33
|
require_dist_cjs3 as require_dist_cjs4,
|
|
@@ -36,6 +36,7 @@ import {
|
|
|
36
36
|
} from "./chunk-a7k3cdby.js";
|
|
37
37
|
import"./chunk-frw3va9v.js";
|
|
38
38
|
import"./chunk-saqpg5nd.js";
|
|
39
|
+
import"./chunk-2m04vhea.js";
|
|
39
40
|
import {
|
|
40
41
|
__commonJS
|
|
41
42
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -3,11 +3,17 @@ import {
|
|
|
3
3
|
loadSharedConfigFiles
|
|
4
4
|
} from "./chunk-bf8bq8pc.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./chunk-
|
|
6
|
+
require_dist_cjs
|
|
7
|
+
} from "./chunk-2m04vhea.js";
|
|
8
|
+
import {
|
|
9
|
+
__toESM
|
|
10
|
+
} from "./chunk-9v6qtbez.js";
|
|
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);
|
|
11
17
|
|
|
12
18
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/getSelectorName.js
|
|
13
19
|
function getSelectorName(functionString) {
|
|
@@ -31,11 +37,12 @@ var fromEnv = (envVarSelector, logger) => async () => {
|
|
|
31
37
|
}
|
|
32
38
|
return config;
|
|
33
39
|
} catch (e) {
|
|
34
|
-
throw new CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
|
40
|
+
throw new import_property_provider.CredentialsProviderError(e.message || `Not found in ENV: ${getSelectorName(envVarSelector.toString())}`, { logger });
|
|
35
41
|
}
|
|
36
42
|
};
|
|
37
43
|
|
|
38
44
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js
|
|
45
|
+
var import_property_provider2 = __toESM(require_dist_cjs(), 1);
|
|
39
46
|
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
40
47
|
const profile = getProfileName(init);
|
|
41
48
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
@@ -50,16 +57,17 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
50
57
|
}
|
|
51
58
|
return configValue;
|
|
52
59
|
} catch (e) {
|
|
53
|
-
throw new CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
60
|
+
throw new import_property_provider2.CredentialsProviderError(e.message || `Not found in config files w/ profile [${profile}]: ${getSelectorName(configSelector.toString())}`, { logger: init.logger });
|
|
54
61
|
}
|
|
55
62
|
};
|
|
56
63
|
|
|
57
64
|
// ../../../../node_modules/@smithy/node-config-provider/dist-es/fromStatic.js
|
|
65
|
+
var import_property_provider3 = __toESM(require_dist_cjs(), 1);
|
|
58
66
|
var isFunction = (func) => typeof func === "function";
|
|
59
|
-
var
|
|
67
|
+
var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : import_property_provider3.fromStatic(defaultValue);
|
|
60
68
|
|
|
61
69
|
// ../../../../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),
|
|
70
|
+
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => import_property_provider4.memoize(import_property_provider4.chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
|
63
71
|
// ../../../../node_modules/@smithy/querystring-parser/dist-es/index.js
|
|
64
72
|
function parseQueryString(querystring) {
|
|
65
73
|
const query = {};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
CredentialsProviderError
|
|
4
|
-
} from "./chunk-zzerxbrm.js";
|
|
5
2
|
import {
|
|
6
3
|
require_client
|
|
7
4
|
} from "./chunk-frw3va9v.js";
|
|
5
|
+
import {
|
|
6
|
+
require_dist_cjs
|
|
7
|
+
} from "./chunk-2m04vhea.js";
|
|
8
8
|
import {
|
|
9
9
|
__require,
|
|
10
10
|
__toESM
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
|
|
13
13
|
// ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
|
|
14
14
|
var import_client = __toESM(require_client(), 1);
|
|
15
|
+
var import_property_provider = __toESM(require_dist_cjs(), 1);
|
|
15
16
|
import { readFileSync } from "node:fs";
|
|
16
17
|
|
|
17
18
|
// ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
|
|
@@ -20,7 +21,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
20
21
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
21
22
|
let { roleAssumerWithWebIdentity } = init;
|
|
22
23
|
if (!roleAssumerWithWebIdentity) {
|
|
23
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-
|
|
24
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-6egz2b52.js");
|
|
24
25
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
25
26
|
...init.clientConfig,
|
|
26
27
|
credentialProviderLogger: init.logger,
|
|
@@ -51,7 +52,7 @@ var fromTokenFile = (init = {}) => async () => {
|
|
|
51
52
|
const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
|
|
52
53
|
const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
|
|
53
54
|
if (!webIdentityTokenFile || !roleArn) {
|
|
54
|
-
throw new CredentialsProviderError("Web identity configuration not specified", {
|
|
55
|
+
throw new import_property_provider.CredentialsProviderError("Web identity configuration not specified", {
|
|
55
56
|
logger: init.logger
|
|
56
57
|
});
|
|
57
58
|
}
|