@stacksjs/actions 0.70.15 → 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 +7 -7
- package/dist/{chunk-veja9rez.js → chunk-0crtxf8d.js} +19 -156
- package/dist/chunk-2m04vhea.js +145 -0
- package/dist/{chunk-sd89e9y4.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-f6a9g4qa.js → chunk-ad9b7jvj.js} +5 -4
- package/dist/{chunk-7s5qcjkt.js → chunk-bh25aaf7.js} +17 -9
- package/dist/{chunk-vyprc4qf.js → chunk-cv02w7e2.js} +3 -3
- package/dist/{chunk-zsm2c35w.js → chunk-f1cxwjkf.js} +6 -5
- package/dist/{chunk-9exgwfkw.js → chunk-gdzs9jf4.js} +5 -4
- package/dist/{chunk-38cnnp2b.js → chunk-hd6fdt5s.js} +6 -4
- package/dist/{chunk-vn1pz0f4.js → chunk-hfkdpbh8.js} +7 -7
- package/dist/{chunk-63btjfd6.js → chunk-jdqxwpvc.js} +34 -78
- package/dist/{chunk-4abmhfp5.js → chunk-kz10a3s9.js} +84 -79
- package/dist/{chunk-p2ga6zq1.js → chunk-whqcyjvm.js} +7 -7
- package/dist/{chunk-1ntvvbhr.js → chunk-wn25qps4.js} +34 -25
- package/dist/{chunk-q81mf99q.js → chunk-wvzpmd54.js} +12 -9
- package/dist/{chunk-7a9vhs9s.js → chunk-y73a5ex0.js} +28 -27
- 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 +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
|
}
|
|
@@ -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-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,
|
|
@@ -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,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,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-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,
|
|
@@ -38,6 +38,7 @@ 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,10 +3,9 @@ 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-veja9rez.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,
|
|
@@ -15,6 +14,9 @@ import {
|
|
|
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
15
|
import"./chunk-b5g5w1hh.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";
|
|
@@ -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,20 @@ import {
|
|
|
10
10
|
HttpResponse,
|
|
11
11
|
NoOpLogger
|
|
12
12
|
} from "./chunk-b5g5w1hh.js";
|
|
13
|
-
import {
|
|
14
|
-
memoize
|
|
15
|
-
} from "./chunk-zzerxbrm.js";
|
|
16
13
|
import {
|
|
17
14
|
require_dist,
|
|
18
|
-
require_dist_cjs as require_dist_cjs2,
|
|
19
15
|
require_dist_cjs2 as require_dist_cjs3,
|
|
20
|
-
|
|
21
|
-
} from "./chunk-
|
|
16
|
+
require_dist_cjs4 as require_dist_cjs5
|
|
17
|
+
} from "./chunk-0crtxf8d.js";
|
|
18
|
+
import {
|
|
19
|
+
require_dist_cjs3 as require_dist_cjs2
|
|
20
|
+
} from "./chunk-a7k3cdby.js";
|
|
22
21
|
import {
|
|
23
22
|
require_dist_cjs
|
|
24
23
|
} from "./chunk-saqpg5nd.js";
|
|
24
|
+
import {
|
|
25
|
+
require_dist_cjs as require_dist_cjs4
|
|
26
|
+
} from "./chunk-2m04vhea.js";
|
|
25
27
|
import {
|
|
26
28
|
__require,
|
|
27
29
|
__toESM
|
|
@@ -946,7 +948,7 @@ var awsEndpointFunctions = {
|
|
|
946
948
|
};
|
|
947
949
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
948
950
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
|
|
949
|
-
var import_core2 = __toESM(
|
|
951
|
+
var import_core2 = __toESM(require_dist_cjs5(), 1);
|
|
950
952
|
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
951
953
|
async function checkFeatures(context, config, args) {
|
|
952
954
|
const request = args.request;
|
|
@@ -1152,10 +1154,16 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
|
1152
1154
|
configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
|
|
1153
1155
|
default: false
|
|
1154
1156
|
};
|
|
1155
|
-
// ../../../../node_modules/@smithy/
|
|
1156
|
-
var
|
|
1157
|
-
|
|
1158
|
-
|
|
1157
|
+
// ../../../../node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
|
|
1158
|
+
var import_types12 = __toESM(require_dist_cjs(), 1);
|
|
1159
|
+
var getSmithyContext = (context) => context[import_types12.SMITHY_CONTEXT_KEY] || (context[import_types12.SMITHY_CONTEXT_KEY] = {});
|
|
1160
|
+
// ../../../../node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
|
|
1161
|
+
var normalizeProvider2 = (input) => {
|
|
1162
|
+
if (typeof input === "function")
|
|
1163
|
+
return input;
|
|
1164
|
+
const promisified = Promise.resolve(input);
|
|
1165
|
+
return () => promisified;
|
|
1166
|
+
};
|
|
1159
1167
|
// ../../../../node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
|
|
1160
1168
|
var REGION_ENV_NAME = "AWS_REGION";
|
|
1161
1169
|
var REGION_INI_NAME = "region";
|
|
@@ -1275,7 +1283,6 @@ function getSerdePlugin(config2, serializer, deserializer) {
|
|
|
1275
1283
|
}
|
|
1276
1284
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
|
|
1277
1285
|
var import_core3 = __toESM(require_dist_cjs3(), 1);
|
|
1278
|
-
var import_util_middleware3 = __toESM(require_dist_cjs2(), 1);
|
|
1279
1286
|
|
|
1280
1287
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
|
|
1281
1288
|
var resolveParamsForS3 = async (endpointParams) => {
|
|
@@ -1464,7 +1471,7 @@ var endpointMiddleware = ({ config: config2, instructions }) => {
|
|
|
1464
1471
|
if (authScheme) {
|
|
1465
1472
|
context["signing_region"] = authScheme.signingRegion;
|
|
1466
1473
|
context["signing_service"] = authScheme.signingName;
|
|
1467
|
-
const smithyContext =
|
|
1474
|
+
const smithyContext = getSmithyContext(context);
|
|
1468
1475
|
const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
|
|
1469
1476
|
if (httpAuthOption) {
|
|
1470
1477
|
httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
|
|
@@ -1501,18 +1508,17 @@ var getEndpointPlugin = (config2, instructions) => ({
|
|
|
1501
1508
|
});
|
|
1502
1509
|
|
|
1503
1510
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
|
|
1504
|
-
var import_util_middleware4 = __toESM(require_dist_cjs2(), 1);
|
|
1505
1511
|
var resolveEndpointConfig = (input) => {
|
|
1506
1512
|
const tls = input.tls ?? true;
|
|
1507
1513
|
const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
|
|
1508
|
-
const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await
|
|
1514
|
+
const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider2(endpoint)()) : undefined;
|
|
1509
1515
|
const isCustomEndpoint = !!endpoint;
|
|
1510
1516
|
const resolvedConfig = Object.assign(input, {
|
|
1511
1517
|
endpoint: customEndpointProvider,
|
|
1512
1518
|
tls,
|
|
1513
1519
|
isCustomEndpoint,
|
|
1514
|
-
useDualstackEndpoint:
|
|
1515
|
-
useFipsEndpoint:
|
|
1520
|
+
useDualstackEndpoint: normalizeProvider2(useDualstackEndpoint ?? false),
|
|
1521
|
+
useFipsEndpoint: normalizeProvider2(useFipsEndpoint ?? false)
|
|
1516
1522
|
});
|
|
1517
1523
|
let configuredEndpointPromise = undefined;
|
|
1518
1524
|
resolvedConfig.serviceConfiguredEndpoint = async () => {
|
|
@@ -1523,9 +1529,6 @@ var resolveEndpointConfig = (input) => {
|
|
|
1523
1529
|
};
|
|
1524
1530
|
return resolvedConfig;
|
|
1525
1531
|
};
|
|
1526
|
-
// ../../../../node_modules/@smithy/middleware-retry/dist-es/configurations.js
|
|
1527
|
-
var import_util_middleware5 = __toESM(require_dist_cjs2(), 1);
|
|
1528
|
-
|
|
1529
1532
|
// ../../../../node_modules/@smithy/util-retry/dist-es/config.js
|
|
1530
1533
|
var RETRY_MODES;
|
|
1531
1534
|
(function(RETRY_MODES2) {
|
|
@@ -1817,14 +1820,14 @@ var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
|
|
|
1817
1820
|
};
|
|
1818
1821
|
var resolveRetryConfig = (input) => {
|
|
1819
1822
|
const { retryStrategy, retryMode: _retryMode, maxAttempts: _maxAttempts } = input;
|
|
1820
|
-
const maxAttempts =
|
|
1823
|
+
const maxAttempts = normalizeProvider2(_maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
|
|
1821
1824
|
return Object.assign(input, {
|
|
1822
1825
|
maxAttempts,
|
|
1823
1826
|
retryStrategy: async () => {
|
|
1824
1827
|
if (retryStrategy) {
|
|
1825
1828
|
return retryStrategy;
|
|
1826
1829
|
}
|
|
1827
|
-
const retryMode = await
|
|
1830
|
+
const retryMode = await normalizeProvider2(_retryMode)();
|
|
1828
1831
|
if (retryMode === RETRY_MODES.ADAPTIVE) {
|
|
1829
1832
|
return new AdaptiveRetryStrategy(maxAttempts);
|
|
1830
1833
|
}
|
|
@@ -2038,32 +2041,8 @@ var fromString = (input, encoding) => {
|
|
|
2038
2041
|
return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
|
|
2039
2042
|
};
|
|
2040
2043
|
|
|
2041
|
-
// ../../../../node_modules/@smithy/util-utf8/dist-es/fromUtf8.js
|
|
2042
|
-
var fromUtf8 = (input) => {
|
|
2043
|
-
const buf = fromString(input, "utf8");
|
|
2044
|
-
return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
2045
|
-
};
|
|
2046
|
-
// ../../../../node_modules/@smithy/util-utf8/dist-es/toUint8Array.js
|
|
2047
|
-
var toUint8Array = (data) => {
|
|
2048
|
-
if (typeof data === "string") {
|
|
2049
|
-
return fromUtf8(data);
|
|
2050
|
-
}
|
|
2051
|
-
if (ArrayBuffer.isView(data)) {
|
|
2052
|
-
return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT);
|
|
2053
|
-
}
|
|
2054
|
-
return new Uint8Array(data);
|
|
2055
|
-
};
|
|
2056
|
-
// ../../../../node_modules/@smithy/util-utf8/dist-es/toUtf8.js
|
|
2057
|
-
var toUtf8 = (input) => {
|
|
2058
|
-
if (typeof input === "string") {
|
|
2059
|
-
return input;
|
|
2060
|
-
}
|
|
2061
|
-
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
2062
|
-
throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");
|
|
2063
|
-
}
|
|
2064
|
-
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8");
|
|
2065
|
-
};
|
|
2066
2044
|
// ../../../../node_modules/@smithy/hash-node/dist-es/index.js
|
|
2045
|
+
var import_util_utf8 = __toESM(require_dist_cjs2(), 1);
|
|
2067
2046
|
import { Buffer as Buffer3 } from "node:buffer";
|
|
2068
2047
|
import { createHash, createHmac } from "node:crypto";
|
|
2069
2048
|
|
|
@@ -2074,7 +2053,7 @@ class Hash {
|
|
|
2074
2053
|
this.reset();
|
|
2075
2054
|
}
|
|
2076
2055
|
update(toHash, encoding) {
|
|
2077
|
-
this.hash.update(toUint8Array(castSourceData(toHash, encoding)));
|
|
2056
|
+
this.hash.update(import_util_utf8.toUint8Array(castSourceData(toHash, encoding)));
|
|
2078
2057
|
}
|
|
2079
2058
|
digest() {
|
|
2080
2059
|
return Promise.resolve(this.hash.digest());
|
|
@@ -2117,6 +2096,9 @@ var calculateBodyLength = (body) => {
|
|
|
2117
2096
|
}
|
|
2118
2097
|
throw new Error(`Body Length computation failed for ${body}`);
|
|
2119
2098
|
};
|
|
2099
|
+
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
|
|
2100
|
+
var import_property_provider = __toESM(require_dist_cjs4(), 1);
|
|
2101
|
+
|
|
2120
2102
|
// ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
|
|
2121
2103
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
2122
2104
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
@@ -2139,7 +2121,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
|
2139
2121
|
};
|
|
2140
2122
|
|
|
2141
2123
|
// ../../../../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 () => {
|
|
2124
|
+
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => import_property_provider.memoize(async () => {
|
|
2143
2125
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
2144
2126
|
switch (mode?.toLowerCase()) {
|
|
2145
2127
|
case "auto":
|
|
@@ -2177,7 +2159,7 @@ var inferPhysicalRegion = async () => {
|
|
|
2177
2159
|
}
|
|
2178
2160
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
2179
2161
|
try {
|
|
2180
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-
|
|
2162
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-9menqd9a.js");
|
|
2181
2163
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
2182
2164
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
2183
2165
|
} catch (e) {}
|
|
@@ -2199,30 +2181,4 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
|
|
|
2199
2181
|
region: awsRegionExtensionConfiguration.region()
|
|
2200
2182
|
};
|
|
2201
2183
|
};
|
|
2202
|
-
|
|
2203
|
-
var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
2204
|
-
var fromBase64 = (input) => {
|
|
2205
|
-
if (input.length * 3 % 4 !== 0) {
|
|
2206
|
-
throw new TypeError(`Incorrect padding on base64 string.`);
|
|
2207
|
-
}
|
|
2208
|
-
if (!BASE64_REGEX.exec(input)) {
|
|
2209
|
-
throw new TypeError(`Invalid base64 string.`);
|
|
2210
|
-
}
|
|
2211
|
-
const buffer = fromString(input, "base64");
|
|
2212
|
-
return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
|
|
2213
|
-
};
|
|
2214
|
-
|
|
2215
|
-
// ../../../../node_modules/@smithy/util-base64/dist-es/toBase64.js
|
|
2216
|
-
var toBase64 = (_input) => {
|
|
2217
|
-
let input;
|
|
2218
|
-
if (typeof _input === "string") {
|
|
2219
|
-
input = fromUtf8(_input);
|
|
2220
|
-
} else {
|
|
2221
|
-
input = _input;
|
|
2222
|
-
}
|
|
2223
|
-
if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
|
|
2224
|
-
throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
|
|
2225
|
-
}
|
|
2226
|
-
return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64");
|
|
2227
|
-
};
|
|
2228
|
-
export { resolveHostHeaderConfig, getHostHeaderPlugin, getLoggerPlugin, getRecursionDetectionPlugin, resolveUserAgentConfig, EndpointCache, customEndpointFunctions, resolveEndpoint, awsEndpointFunctions, getUserAgentPlugin, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, 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 };
|