@stacksjs/actions 0.70.14 → 0.70.16
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-xeyhm37p.js → chunk-0crtxf8d.js} +21 -158
- package/dist/chunk-2m04vhea.js +145 -0
- package/dist/{chunk-4en18v46.js → chunk-6xbhnbwy.js} +21 -17
- package/dist/{chunk-76zhb40c.js → chunk-6xeh1279.js} +7 -6
- package/dist/{chunk-qkm8e752.js → chunk-8dsect0a.js} +5 -4
- package/dist/{chunk-t5em30ak.js → chunk-9menqd9a.js} +24 -16
- package/dist/{chunk-at51p2va.js → chunk-a7k3cdby.js} +1 -1
- package/dist/{chunk-dwkdjy0f.js → chunk-ad9b7jvj.js} +7 -6
- package/dist/{chunk-dkcsykt8.js → chunk-b5g5w1hh.js} +26 -6
- package/dist/{chunk-7s5qcjkt.js → chunk-bh25aaf7.js} +17 -9
- package/dist/{chunk-8pskhtbf.js → chunk-cv02w7e2.js} +3 -3
- package/dist/{chunk-kthq483f.js → chunk-f1cxwjkf.js} +6 -5
- package/dist/{chunk-ry125mbz.js → chunk-gdzs9jf4.js} +7 -6
- package/dist/{chunk-9fyrxvr0.js → chunk-hd6fdt5s.js} +7 -5
- package/dist/{chunk-vd0p1aye.js → chunk-hfkdpbh8.js} +9 -9
- package/dist/{chunk-ve9vn4xg.js → chunk-jdqxwpvc.js} +22 -67
- package/dist/{chunk-8fx9wfmd.js → chunk-kz10a3s9.js} +81 -77
- package/dist/{chunk-nmb4zt0g.js → chunk-whqcyjvm.js} +9 -9
- package/dist/{chunk-arh0hbb9.js → chunk-wn25qps4.js} +34 -25
- package/dist/{chunk-9vr8gng2.js → chunk-wvzpmd54.js} +15 -12
- package/dist/{chunk-b63wvdr0.js → chunk-y73a5ex0.js} +25 -24
- 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-zzerxbrm.js +0 -107
|
@@ -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
|
}
|
|
@@ -2263,4 +2263,4 @@ var require_protocols = __commonJS((exports, module) => {
|
|
|
2263
2263
|
};
|
|
2264
2264
|
});
|
|
2265
2265
|
|
|
2266
|
-
export { require_dist_cjs2 as require_dist_cjs, require_dist_cjs6 as require_dist_cjs1, require_dist_cjs7 as require_dist_cjs2, require_dist_cjs8 as require_dist_cjs3, require_dist_cjs9 as require_dist_cjs4, require_dist_cjs3 as require_dist_cjs5,
|
|
2266
|
+
export { require_dist_cjs2 as require_dist_cjs, require_dist_cjs6 as require_dist_cjs1, require_dist_cjs7 as require_dist_cjs2, require_dist_cjs8 as require_dist_cjs3, require_dist_cjs9 as require_dist_cjs4, require_dist_cjs3 as require_dist_cjs5, require_dist_cjs5 as require_dist_cjs6, require_dist_cjs11 as require_dist_cjs7, require_dist_cjs12 as require_dist_cjs8, require_protocols };
|
|
@@ -19,23 +19,24 @@ 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-hd6fdt5s.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,
|
|
34
34
|
require_dist_cjs4 as require_dist_cjs5,
|
|
35
|
-
|
|
36
|
-
} from "./chunk-
|
|
35
|
+
require_dist_cjs6
|
|
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";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
require_dist_cjs6 as require_dist_cjs2,
|
|
3
2
|
require_protocols
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-a7k3cdby.js";
|
|
5
4
|
import {
|
|
6
5
|
require_dist_cjs
|
|
7
6
|
} from "./chunk-saqpg5nd.js";
|
|
@@ -1051,8 +1050,31 @@ class HttpResponse {
|
|
|
1051
1050
|
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
1052
1051
|
}
|
|
1053
1052
|
}
|
|
1053
|
+
// ../../../../node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js
|
|
1054
|
+
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
1055
|
+
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
1056
|
+
// ../../../../node_modules/@smithy/querystring-builder/dist-es/index.js
|
|
1057
|
+
function buildQueryString(query) {
|
|
1058
|
+
const parts = [];
|
|
1059
|
+
for (let key of Object.keys(query).sort()) {
|
|
1060
|
+
const value = query[key];
|
|
1061
|
+
key = escapeUri(key);
|
|
1062
|
+
if (Array.isArray(value)) {
|
|
1063
|
+
for (let i = 0, iLen = value.length;i < iLen; i++) {
|
|
1064
|
+
parts.push(`${key}=${escapeUri(value[i])}`);
|
|
1065
|
+
}
|
|
1066
|
+
} else {
|
|
1067
|
+
let qsEntry = key;
|
|
1068
|
+
if (value || typeof value === "string") {
|
|
1069
|
+
qsEntry += `=${escapeUri(value)}`;
|
|
1070
|
+
}
|
|
1071
|
+
parts.push(qsEntry);
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
return parts.join("&");
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1054
1077
|
// ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
|
|
1055
|
-
var import_querystring_builder = __toESM(require_dist_cjs2(), 1);
|
|
1056
1078
|
import { Agent as hAgent, request as hRequest } from "node:http";
|
|
1057
1079
|
import { Agent as hsAgent, request as hsRequest } from "node:https";
|
|
1058
1080
|
|
|
@@ -1313,7 +1335,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1313
1335
|
timeouts.push(timing.setTimeout(() => {
|
|
1314
1336
|
this.socketWarningTimestamp = NodeHttpHandler.checkSocketUsage(agent, this.socketWarningTimestamp, this.config.logger);
|
|
1315
1337
|
}, this.config.socketAcquisitionWarningTimeout ?? (this.config.requestTimeout ?? 2000) + (this.config.connectionTimeout ?? 1000)));
|
|
1316
|
-
const queryString =
|
|
1338
|
+
const queryString = buildQueryString(request.query || {});
|
|
1317
1339
|
let auth = undefined;
|
|
1318
1340
|
if (request.username != null || request.password != null) {
|
|
1319
1341
|
const username = request.username ?? "";
|
|
@@ -1402,8 +1424,6 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1402
1424
|
return this.config ?? {};
|
|
1403
1425
|
}
|
|
1404
1426
|
}
|
|
1405
|
-
// ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js
|
|
1406
|
-
var import_querystring_builder2 = __toESM(require_dist_cjs2(), 1);
|
|
1407
1427
|
// ../../../../node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
|
|
1408
1428
|
import { Writable } from "node:stream";
|
|
1409
1429
|
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
db
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-kz10a3s9.js";
|
|
4
4
|
import {
|
|
5
5
|
customValidate,
|
|
6
6
|
isObjectNotEmpty,
|
|
@@ -319,8 +319,8 @@ class Router {
|
|
|
319
319
|
return this.routes;
|
|
320
320
|
}
|
|
321
321
|
async importRoutes() {
|
|
322
|
-
await import("./chunk-
|
|
323
|
-
await import("./chunk-
|
|
322
|
+
await import("./chunk-hfkdpbh8.js");
|
|
323
|
+
await import("./chunk-whqcyjvm.js");
|
|
324
324
|
}
|
|
325
325
|
async resolveCallback(callback) {
|
|
326
326
|
if (callback instanceof Promise) {
|
|
@@ -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-gdzs9jf4.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
|
}
|
|
@@ -19,25 +19,26 @@ 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-hd6fdt5s.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,
|
|
34
34
|
require_dist_cjs4 as require_dist_cjs5,
|
|
35
|
-
|
|
36
|
-
} from "./chunk-
|
|
35
|
+
require_dist_cjs6
|
|
36
|
+
} from "./chunk-a7k3cdby.js";
|
|
37
37
|
import {
|
|
38
38
|
require_client
|
|
39
39
|
} from "./chunk-frw3va9v.js";
|
|
40
40
|
import"./chunk-saqpg5nd.js";
|
|
41
|
+
import"./chunk-2m04vhea.js";
|
|
41
42
|
import {
|
|
42
43
|
__commonJS
|
|
43
44
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -3,18 +3,20 @@ import {
|
|
|
3
3
|
require_dist_cjs as require_dist_cjs2,
|
|
4
4
|
require_dist_cjs1 as require_dist_cjs3,
|
|
5
5
|
require_dist_cjs2 as require_dist_cjs7,
|
|
6
|
-
require_dist_cjs3 as
|
|
7
|
-
require_dist_cjs4 as
|
|
8
|
-
|
|
9
|
-
} from "./chunk-xeyhm37p.js";
|
|
6
|
+
require_dist_cjs3 as require_dist_cjs9,
|
|
7
|
+
require_dist_cjs4 as require_dist_cjs10
|
|
8
|
+
} from "./chunk-0crtxf8d.js";
|
|
10
9
|
import {
|
|
11
10
|
require_dist_cjs as require_dist_cjs4,
|
|
12
11
|
require_dist_cjs2 as require_dist_cjs5,
|
|
13
12
|
require_dist_cjs3 as require_dist_cjs6
|
|
14
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-a7k3cdby.js";
|
|
15
14
|
import {
|
|
16
15
|
require_dist_cjs
|
|
17
16
|
} from "./chunk-saqpg5nd.js";
|
|
17
|
+
import {
|
|
18
|
+
require_dist_cjs as require_dist_cjs8
|
|
19
|
+
} from "./chunk-2m04vhea.js";
|
|
18
20
|
import {
|
|
19
21
|
__commonJS,
|
|
20
22
|
__require
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
route
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-cv02w7e2.js";
|
|
5
|
+
import"./chunk-kz10a3s9.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-jdqxwpvc.js";
|
|
13
|
+
import"./chunk-bh25aaf7.js";
|
|
14
14
|
import"./chunk-bf8bq8pc.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-at51p2va.js";
|
|
15
|
+
import"./chunk-b5g5w1hh.js";
|
|
16
|
+
import"./chunk-0crtxf8d.js";
|
|
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";
|
|
@@ -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";
|
|
@@ -9,21 +9,21 @@ import {
|
|
|
9
9
|
HttpRequest,
|
|
10
10
|
HttpResponse,
|
|
11
11
|
NoOpLogger
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import {
|
|
14
|
-
memoize
|
|
15
|
-
} from "./chunk-zzerxbrm.js";
|
|
12
|
+
} from "./chunk-b5g5w1hh.js";
|
|
16
13
|
import {
|
|
17
14
|
require_dist,
|
|
18
15
|
require_dist_cjs2 as require_dist_cjs3,
|
|
19
|
-
|
|
20
|
-
} from "./chunk-
|
|
16
|
+
require_dist_cjs4 as require_dist_cjs5
|
|
17
|
+
} from "./chunk-0crtxf8d.js";
|
|
21
18
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk-
|
|
19
|
+
require_dist_cjs3 as require_dist_cjs2
|
|
20
|
+
} from "./chunk-a7k3cdby.js";
|
|
24
21
|
import {
|
|
25
22
|
require_dist_cjs
|
|
26
23
|
} from "./chunk-saqpg5nd.js";
|
|
24
|
+
import {
|
|
25
|
+
require_dist_cjs as require_dist_cjs4
|
|
26
|
+
} from "./chunk-2m04vhea.js";
|
|
27
27
|
import {
|
|
28
28
|
__require,
|
|
29
29
|
__toESM
|
|
@@ -948,7 +948,7 @@ var awsEndpointFunctions = {
|
|
|
948
948
|
};
|
|
949
949
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
950
950
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
|
|
951
|
-
var import_core2 = __toESM(
|
|
951
|
+
var import_core2 = __toESM(require_dist_cjs5(), 1);
|
|
952
952
|
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
953
953
|
async function checkFeatures(context, config, args) {
|
|
954
954
|
const request = args.request;
|
|
@@ -2023,11 +2023,13 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
|
2023
2023
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
2024
2024
|
default: DEFAULT_UA_APP_ID
|
|
2025
2025
|
};
|
|
2026
|
+
// ../../../../node_modules/@smithy/is-array-buffer/dist-es/index.js
|
|
2027
|
+
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
2028
|
+
|
|
2026
2029
|
// ../../../../node_modules/@smithy/util-buffer-from/dist-es/index.js
|
|
2027
|
-
var import_is_array_buffer = __toESM(require_dist_cjs2(), 1);
|
|
2028
2030
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
2029
2031
|
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
2030
|
-
if (!
|
|
2032
|
+
if (!isArrayBuffer(input)) {
|
|
2031
2033
|
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
2032
2034
|
}
|
|
2033
2035
|
return Buffer2.from(input, offset, length);
|
|
@@ -2039,32 +2041,8 @@ var fromString = (input, encoding) => {
|
|
|
2039
2041
|
return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
|
|
2040
2042
|
};
|
|
2041
2043
|
|
|
2042
|
-
// ../../../../node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
|
|
2043
|
-
var fromUtf8 = (input) => {
|
|
2044
|
-
const buf = fromString(input, "utf8");
|
|
2045
|
-
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
2046
|
-
};
|
|
2047
|
-
// ../../../../node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
|
|
2048
|
-
var toUint8Array = (data) => {
|
|
2049
|
-
if (typeof data === "string") {
|
|
2050
|
-
return fromUtf8(data);
|
|
2051
|
-
}
|
|
2052
|
-
if (ArrayBuffer.isView(data)) {
|
|
2053
|
-
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
2054
|
-
}
|
|
2055
|
-
return new Uint8Array(data);
|
|
2056
|
-
};
|
|
2057
|
-
// ../../../../node_modules/@smithy/util-utf8/dist-es/toUtf8.js
|
|
2058
|
-
var toUtf8 = (input) => {
|
|
2059
|
-
if (typeof input === "string") {
|
|
2060
|
-
return input;
|
|
2061
|
-
}
|
|
2062
|
-
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
2063
|
-
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
2064
|
-
}
|
|
2065
|
-
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
2066
|
-
};
|
|
2067
2044
|
// ../../../../node_modules/@smithy/hash-node/dist-es/index.js
|
|
2045
|
+
var import_util_utf8 = __toESM(require_dist_cjs2(), 1);
|
|
2068
2046
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
2069
2047
|
import { createHash, createHmac } from "node:crypto";
|
|
2070
2048
|
|
|
@@ -2075,7 +2053,7 @@ class Hash {
|
|
|
2075
2053
|
this.reset();
|
|
2076
2054
|
}
|
|
2077
2055
|
update(toHash, encoding) {
|
|
2078
|
-
this.hash.update(toUint8Array(castSourceData(toHash, encoding)));
|
|
2056
|
+
this.hash.update(import_util_utf8.toUint8Array(castSourceData(toHash, encoding)));
|
|
2079
2057
|
}
|
|
2080
2058
|
digest() {
|
|
2081
2059
|
return Promise.resolve(this.hash.digest());
|
|
@@ -2118,6 +2096,9 @@ var calculateBodyLength = (body) => {
|
|
|
2118
2096
|
}
|
|
2119
2097
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
2120
2098
|
};
|
|
2099
|
+
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2100
|
+
var import_property_provider = __toESM(require_dist_cjs4(), 1);
|
|
2101
|
+
|
|
2121
2102
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
2122
2103
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
2123
2104
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
@@ -2140,7 +2121,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
|
2140
2121
|
};
|
|
2141
2122
|
|
|
2142
2123
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2143
|
-
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
|
|
2124
|
+
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => import_property_provider.memoize(async () => {
|
|
2144
2125
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
2145
2126
|
switch (mode?.toLowerCase()) {
|
|
2146
2127
|
case "auto":
|
|
@@ -2178,7 +2159,7 @@ var inferPhysicalRegion = async () => {
|
|
|
2178
2159
|
}
|
|
2179
2160
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
2180
2161
|
try {
|
|
2181
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-
|
|
2162
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-9menqd9a.js");
|
|
2182
2163
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
2183
2164
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
2184
2165
|
} catch (e) {}
|
|
@@ -2200,30 +2181,4 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
|
|
|
2200
2181
|
region: awsRegionExtensionConfiguration.region()
|
|
2201
2182
|
};
|
|
2202
2183
|
};
|
|
2203
|
-
|
|
2204
|
-
var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
2205
|
-
var fromBase64 = (input) => {
|
|
2206
|
-
if (input.length * 3 % 4 !== 0) {
|
|
2207
|
-
throw new TypeError(`Incorrect padding on base64 string.`);
|
|
2208
|
-
}
|
|
2209
|
-
if (!BASE64_REGEX.exec(input)) {
|
|
2210
|
-
throw new TypeError(`Invalid base64 string.`);
|
|
2211
|
-
}
|
|
2212
|
-
const buffer = fromString(input, "base64");
|
|
2213
|
-
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
2214
|
-
};
|
|
2215
|
-
|
|
2216
|
-
// ../../../../node_modules/@smithy/util-base64/dist-es/toBase64.js
|
|
2217
|
-
var toBase64 = (_input) => {
|
|
2218
|
-
let input;
|
|
2219
|
-
if (typeof _input === "string") {
|
|
2220
|
-
input = fromUtf8(_input);
|
|
2221
|
-
} else {
|
|
2222
|
-
input = _input;
|
|
2223
|
-
}
|
|
2224
|
-
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
2225
|
-
throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
|
|
2226
|
-
}
|
|
2227
|
-
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64");
|
|
2228
|
-
};
|
|
2229
|
-
export { resolveHostHeaderConfig, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, resolveUserAgentConfig, EndpointCache, customEndpointFunctions, resolveEndpoint, awsEndpointFunctions, getUserAgentPlugin, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, getSmithyContext, normalizeProvider2 as normalizeProvider, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig, getContentLengthPlugin, getSerdePlugin, getEndpointPlugin, resolveEndpointConfig, DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, NODE_RETRY_MODE_CONFIG_OPTIONS, getRetryPlugin, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, fromUtf8, toUtf8, Hash, calculateBodyLength, fromBase64, toBase64, resolveDefaultsModeConfig, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration };
|
|
2184
|
+
export { resolveHostHeaderConfig, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, resolveUserAgentConfig, EndpointCache, customEndpointFunctions, resolveEndpoint, awsEndpointFunctions, getUserAgentPlugin, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, getSmithyContext, normalizeProvider2 as normalizeProvider, NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS, resolveRegionConfig, getContentLengthPlugin, getSerdePlugin, getEndpointPlugin, resolveEndpointConfig, DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, resolveRetryConfig, NODE_RETRY_MODE_CONFIG_OPTIONS, getRetryPlugin, createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS, Hash, calculateBodyLength, resolveDefaultsModeConfig, getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration };
|