@stacksjs/actions 0.70.21 → 0.70.22
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-pnre7439.js → chunk-0m948f1p.js} +51 -102
- package/dist/{chunk-xt9exr2c.js → chunk-23btgw5e.js} +34 -113
- package/dist/{chunk-psa9yf21.js → chunk-3y8t4qyf.js} +1 -1
- package/dist/{chunk-pacq2bz6.js → chunk-5wdfth6e.js} +10 -11
- package/dist/{chunk-76zhb40c.js → chunk-8qsrwjam.js} +2 -2
- package/dist/{chunk-a7k3cdby.js → chunk-90y2wmyz.js} +114 -4
- package/dist/{chunk-t5em30ak.js → chunk-92e6scf8.js} +3 -3
- package/dist/{chunk-veja9rez.js → chunk-atahpwz7.js} +7 -9
- package/dist/{chunk-mdb86mpr.js → chunk-bz3nmjmp.js} +9 -9
- package/dist/{chunk-tsrpjtkt.js → chunk-ddw2jq8f.js} +39 -33
- package/dist/{chunk-7s5qcjkt.js → chunk-hqmjfnnn.js} +1 -1
- package/dist/{chunk-7dp08yqh.js → chunk-jq06qn43.js} +3 -3
- package/dist/chunk-mbvdyeyw.js +50 -0
- package/dist/{chunk-adq5n04j.js → chunk-ny592jcd.js} +9 -9
- package/dist/{chunk-dvkgakrr.js → chunk-qka5w6cv.js} +12 -13
- package/dist/{chunk-b82x4201.js → chunk-rbsehxzg.js} +9 -9
- package/dist/{chunk-e7mp4xy5.js → chunk-rfdmx5yh.js} +8 -7
- package/dist/{chunk-1vc5eq0h.js → chunk-s3xxrvrk.js} +5 -5
- package/dist/{chunk-56ar3gp7.js → chunk-y08qabyb.js} +13 -15
- package/dist/{chunk-bf8bq8pc.js → chunk-yyvh669b.js} +6 -14
- package/dist/{chunk-161fpm3p.js → chunk-zhrbz0qv.js} +32 -29
- 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-saqpg5nd.js +0 -118
package/dist/build.js
CHANGED
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
import {
|
|
3
3
|
generateTypes
|
|
4
4
|
} from "./generate/index.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-jq06qn43.js";
|
|
6
6
|
import"./helpers/vscode-custom-data.js";
|
|
7
7
|
import"./chunk-494jp8d5.js";
|
|
8
|
-
import"./chunk-
|
|
8
|
+
import"./chunk-ddw2jq8f.js";
|
|
9
9
|
import"./chunk-mdj7x1vs.js";
|
|
10
10
|
import"./chunk-p0c688mg.js";
|
|
11
11
|
import"./chunk-qkm8e752.js";
|
|
12
12
|
import"./chunk-a13x0e43.js";
|
|
13
13
|
import"./chunk-mdqphqep.js";
|
|
14
14
|
import"./chunk-qhh0v93n.js";
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-0m948f1p.js";
|
|
16
|
+
import"./chunk-hqmjfnnn.js";
|
|
17
|
+
import"./chunk-yyvh669b.js";
|
|
18
|
+
import"./chunk-23btgw5e.js";
|
|
19
|
+
import"./chunk-mbvdyeyw.js";
|
|
19
20
|
import"./chunk-zzerxbrm.js";
|
|
20
|
-
import"./chunk-
|
|
21
|
-
import"./chunk-
|
|
21
|
+
import"./chunk-atahpwz7.js";
|
|
22
|
+
import"./chunk-90y2wmyz.js";
|
|
22
23
|
import"./chunk-frw3va9v.js";
|
|
23
|
-
import"./chunk-saqpg5nd.js";
|
|
24
24
|
import"./chunk-2dvnt46s.js";
|
|
25
25
|
import"./chunk-w6fdq4hk.js";
|
|
26
26
|
import"./chunk-wkwtsvym.js";
|
|
@@ -1,37 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadConfig,
|
|
3
3
|
parseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-hqmjfnnn.js";
|
|
5
5
|
import {
|
|
6
6
|
CONFIG_PREFIX_SEPARATOR
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-yyvh669b.js";
|
|
8
8
|
import {
|
|
9
|
-
HttpRequest,
|
|
10
|
-
HttpResponse,
|
|
11
9
|
NoOpLogger
|
|
12
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-23btgw5e.js";
|
|
11
|
+
import {
|
|
12
|
+
EndpointURLScheme,
|
|
13
|
+
SMITHY_CONTEXT_KEY
|
|
14
|
+
} from "./chunk-mbvdyeyw.js";
|
|
13
15
|
import {
|
|
14
16
|
memoize
|
|
15
17
|
} from "./chunk-zzerxbrm.js";
|
|
16
18
|
import {
|
|
17
19
|
require_dist,
|
|
18
|
-
require_dist_cjs2,
|
|
19
|
-
require_dist_cjs5
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
require_dist_cjs2 as require_dist_cjs4,
|
|
21
|
+
require_dist_cjs5
|
|
22
|
+
} from "./chunk-atahpwz7.js";
|
|
21
23
|
import {
|
|
22
|
-
require_dist_cjs
|
|
23
|
-
|
|
24
|
+
require_dist_cjs1 as require_dist_cjs,
|
|
25
|
+
require_dist_cjs3 as require_dist_cjs2,
|
|
26
|
+
require_dist_cjs4 as require_dist_cjs3
|
|
27
|
+
} from "./chunk-90y2wmyz.js";
|
|
24
28
|
import {
|
|
25
29
|
__require,
|
|
26
30
|
__toESM
|
|
27
31
|
} from "./chunk-9v6qtbez.js";
|
|
28
32
|
|
|
29
33
|
// ../../../../node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
|
|
34
|
+
var import_protocol_http = __toESM(require_dist_cjs(), 1);
|
|
30
35
|
function resolveHostHeaderConfig(input) {
|
|
31
36
|
return input;
|
|
32
37
|
}
|
|
33
38
|
var hostHeaderMiddleware = (options) => (next) => async (args) => {
|
|
34
|
-
if (!HttpRequest.isInstance(args.request))
|
|
39
|
+
if (!import_protocol_http.HttpRequest.isInstance(args.request))
|
|
35
40
|
return next(args);
|
|
36
41
|
const { request } = args;
|
|
37
42
|
const { handlerProtocol = "" } = options.requestHandler.metadata || {};
|
|
@@ -102,12 +107,13 @@ var getLoggerPlugin = (options) => ({
|
|
|
102
107
|
}
|
|
103
108
|
});
|
|
104
109
|
// ../../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js
|
|
110
|
+
var import_protocol_http2 = __toESM(require_dist_cjs(), 1);
|
|
105
111
|
var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
|
|
106
112
|
var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
|
|
107
113
|
var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
|
|
108
114
|
var recursionDetectionMiddleware = (options) => (next) => async (args) => {
|
|
109
115
|
const { request } = args;
|
|
110
|
-
if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
|
|
116
|
+
if (!import_protocol_http2.HttpRequest.isInstance(request) || options.runtime !== "node") {
|
|
111
117
|
return next(args);
|
|
112
118
|
}
|
|
113
119
|
const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
|
|
@@ -139,7 +145,7 @@ var getRecursionDetectionPlugin = (options) => ({
|
|
|
139
145
|
});
|
|
140
146
|
|
|
141
147
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
|
|
142
|
-
var import_core = __toESM(
|
|
148
|
+
var import_core = __toESM(require_dist_cjs4(), 1);
|
|
143
149
|
var DEFAULT_UA_APP_ID = undefined;
|
|
144
150
|
function isValidUserAgentAppId(appId) {
|
|
145
151
|
if (appId === undefined) {
|
|
@@ -299,10 +305,9 @@ var isSet = (value) => value != null;
|
|
|
299
305
|
// ../../../../node_modules/@smithy/util-endpoints/dist-es/lib/not.js
|
|
300
306
|
var not = (value) => !value;
|
|
301
307
|
// ../../../../node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
|
|
302
|
-
var import_types3 = __toESM(require_dist_cjs(), 1);
|
|
303
308
|
var DEFAULT_PORTS = {
|
|
304
|
-
[
|
|
305
|
-
[
|
|
309
|
+
[EndpointURLScheme.HTTP]: 80,
|
|
310
|
+
[EndpointURLScheme.HTTPS]: 443
|
|
306
311
|
};
|
|
307
312
|
var parseURL = (value) => {
|
|
308
313
|
const whatwgURL = (() => {
|
|
@@ -331,7 +336,7 @@ var parseURL = (value) => {
|
|
|
331
336
|
return null;
|
|
332
337
|
}
|
|
333
338
|
const scheme = protocol.slice(0, -1);
|
|
334
|
-
if (!Object.values(
|
|
339
|
+
if (!Object.values(EndpointURLScheme).includes(scheme)) {
|
|
335
340
|
return null;
|
|
336
341
|
}
|
|
337
342
|
const isIp = isIpAddress(hostname);
|
|
@@ -944,8 +949,11 @@ var awsEndpointFunctions = {
|
|
|
944
949
|
partition
|
|
945
950
|
};
|
|
946
951
|
customEndpointFunctions.aws = awsEndpointFunctions;
|
|
952
|
+
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
|
|
953
|
+
var import_protocol_http3 = __toESM(require_dist_cjs(), 1);
|
|
954
|
+
|
|
947
955
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
|
|
948
|
-
var import_core2 = __toESM(
|
|
956
|
+
var import_core2 = __toESM(require_dist_cjs5(), 1);
|
|
949
957
|
var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
|
|
950
958
|
async function checkFeatures(context, config, args) {
|
|
951
959
|
const request = args.request;
|
|
@@ -1024,7 +1032,7 @@ function encodeFeatures(features) {
|
|
|
1024
1032
|
// ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
|
|
1025
1033
|
var userAgentMiddleware = (options) => (next, context) => async (args) => {
|
|
1026
1034
|
const { request } = args;
|
|
1027
|
-
if (!HttpRequest.isInstance(request)) {
|
|
1035
|
+
if (!import_protocol_http3.HttpRequest.isInstance(request)) {
|
|
1028
1036
|
return next(args);
|
|
1029
1037
|
}
|
|
1030
1038
|
const { headers } = request;
|
|
@@ -1152,8 +1160,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
|
1152
1160
|
default: false
|
|
1153
1161
|
};
|
|
1154
1162
|
// ../../../../node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
|
|
1155
|
-
var
|
|
1156
|
-
var getSmithyContext = (context) => context[import_types12.SMITHY_CONTEXT_KEY] || (context[import_types12.SMITHY_CONTEXT_KEY] = {});
|
|
1163
|
+
var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
|
|
1157
1164
|
// ../../../../node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
|
|
1158
1165
|
var normalizeProvider2 = (input) => {
|
|
1159
1166
|
if (typeof input === "function")
|
|
@@ -1175,11 +1182,12 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
|
1175
1182
|
preferredFile: "credentials"
|
|
1176
1183
|
};
|
|
1177
1184
|
// ../../../../node_modules/@smithy/middleware-content-length/dist-es/index.js
|
|
1185
|
+
var import_protocol_http4 = __toESM(require_dist_cjs(), 1);
|
|
1178
1186
|
var CONTENT_LENGTH_HEADER = "content-length";
|
|
1179
1187
|
function contentLengthMiddleware(bodyLengthChecker) {
|
|
1180
1188
|
return (next) => async (args) => {
|
|
1181
1189
|
const request = args.request;
|
|
1182
|
-
if (HttpRequest.isInstance(request)) {
|
|
1190
|
+
if (import_protocol_http4.HttpRequest.isInstance(request)) {
|
|
1183
1191
|
const { body, headers } = request;
|
|
1184
1192
|
if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
|
|
1185
1193
|
try {
|
|
@@ -1279,7 +1287,7 @@ function getSerdePlugin(config2, serializer, deserializer) {
|
|
|
1279
1287
|
};
|
|
1280
1288
|
}
|
|
1281
1289
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
|
|
1282
|
-
var import_core3 = __toESM(
|
|
1290
|
+
var import_core3 = __toESM(require_dist_cjs4(), 1);
|
|
1283
1291
|
|
|
1284
1292
|
// ../../../../node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
|
|
1285
1293
|
var resolveParamsForS3 = async (endpointParams) => {
|
|
@@ -1840,6 +1848,9 @@ var NODE_RETRY_MODE_CONFIG_OPTIONS = {
|
|
|
1840
1848
|
default: DEFAULT_RETRY_MODE
|
|
1841
1849
|
};
|
|
1842
1850
|
|
|
1851
|
+
// ../../../../node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js
|
|
1852
|
+
var import_protocol_http5 = __toESM(require_dist_cjs(), 1);
|
|
1853
|
+
|
|
1843
1854
|
// ../../../../node_modules/uuid/wrapper.mjs
|
|
1844
1855
|
var import_dist = __toESM(require_dist(), 1);
|
|
1845
1856
|
var v1 = import_dist.default.v1;
|
|
@@ -1878,7 +1889,7 @@ var retryMiddleware = (options) => (next, context) => async (args) => {
|
|
|
1878
1889
|
let attempts = 0;
|
|
1879
1890
|
let totalRetryDelay = 0;
|
|
1880
1891
|
const { request } = args;
|
|
1881
|
-
const isRequest = HttpRequest.isInstance(request);
|
|
1892
|
+
const isRequest = import_protocol_http5.HttpRequest.isInstance(request);
|
|
1882
1893
|
if (isRequest) {
|
|
1883
1894
|
request.headers[INVOCATION_ID_HEADER] = v4();
|
|
1884
1895
|
}
|
|
@@ -1956,7 +1967,7 @@ var getRetryPlugin = (options) => ({
|
|
|
1956
1967
|
}
|
|
1957
1968
|
});
|
|
1958
1969
|
var getRetryAfterHint = (response) => {
|
|
1959
|
-
if (!HttpResponse.isInstance(response))
|
|
1970
|
+
if (!import_protocol_http5.HttpResponse.isInstance(response))
|
|
1960
1971
|
return;
|
|
1961
1972
|
const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after");
|
|
1962
1973
|
if (!retryAfterHeaderName)
|
|
@@ -1968,6 +1979,11 @@ var getRetryAfterHint = (response) => {
|
|
|
1968
1979
|
const retryAfterDate = new Date(retryAfter);
|
|
1969
1980
|
return retryAfterDate;
|
|
1970
1981
|
};
|
|
1982
|
+
|
|
1983
|
+
// ../../../../node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js
|
|
1984
|
+
var import_protocol_http6 = __toESM(require_dist_cjs(), 1);
|
|
1985
|
+
// ../../../../node_modules/@smithy/middleware-retry/dist-es/omitRetryHeadersMiddleware.js
|
|
1986
|
+
var import_protocol_http7 = __toESM(require_dist_cjs(), 1);
|
|
1971
1987
|
// ../../../../node_modules/@aws-sdk/util-user-agent-node/dist-es/defaultUserAgent.js
|
|
1972
1988
|
import { platform, release } from "node:os";
|
|
1973
1989
|
import { env, versions } from "node:process";
|
|
@@ -2020,51 +2036,10 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
|
|
|
2020
2036
|
configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
|
|
2021
2037
|
default: DEFAULT_UA_APP_ID
|
|
2022
2038
|
};
|
|
2023
|
-
// ../../../../node_modules/@smithy/is-array-buffer/dist-es/index.js
|
|
2024
|
-
var isArrayBuffer = (arg) => typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer || Object.prototype.toString.call(arg) === "[object ArrayBuffer]";
|
|
2025
|
-
|
|
2026
|
-
// ../../../../node_modules/@smithy/util-buffer-from/dist-es/index.js
|
|
2027
|
-
import { Buffer as Buffer2 } from "node:buffer";
|
|
2028
|
-
var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
|
|
2029
|
-
if (!isArrayBuffer(input)) {
|
|
2030
|
-
throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
|
|
2031
|
-
}
|
|
2032
|
-
return Buffer2.from(input, offset, length);
|
|
2033
|
-
};
|
|
2034
|
-
var fromString = (input, encoding) => {
|
|
2035
|
-
if (typeof input !== "string") {
|
|
2036
|
-
throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`);
|
|
2037
|
-
}
|
|
2038
|
-
return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
|
|
2039
|
-
};
|
|
2040
|
-
|
|
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
2039
|
// ../../../../node_modules/@smithy/hash-node/dist-es/index.js
|
|
2067
|
-
|
|
2040
|
+
var import_util_buffer_from = __toESM(require_dist_cjs2(), 1);
|
|
2041
|
+
var import_util_utf8 = __toESM(require_dist_cjs3(), 1);
|
|
2042
|
+
import { Buffer as Buffer2 } from "node:buffer";
|
|
2068
2043
|
import { createHash, createHmac } from "node:crypto";
|
|
2069
2044
|
|
|
2070
2045
|
class Hash {
|
|
@@ -2074,7 +2049,7 @@ class Hash {
|
|
|
2074
2049
|
this.reset();
|
|
2075
2050
|
}
|
|
2076
2051
|
update(toHash, encoding) {
|
|
2077
|
-
this.hash.update(toUint8Array(castSourceData(toHash, encoding)));
|
|
2052
|
+
this.hash.update(import_util_utf8.toUint8Array(castSourceData(toHash, encoding)));
|
|
2078
2053
|
}
|
|
2079
2054
|
digest() {
|
|
2080
2055
|
return Promise.resolve(this.hash.digest());
|
|
@@ -2084,16 +2059,16 @@ class Hash {
|
|
|
2084
2059
|
}
|
|
2085
2060
|
}
|
|
2086
2061
|
function castSourceData(toCast, encoding) {
|
|
2087
|
-
if (
|
|
2062
|
+
if (Buffer2.isBuffer(toCast)) {
|
|
2088
2063
|
return toCast;
|
|
2089
2064
|
}
|
|
2090
2065
|
if (typeof toCast === "string") {
|
|
2091
|
-
return fromString(toCast, encoding);
|
|
2066
|
+
return import_util_buffer_from.fromString(toCast, encoding);
|
|
2092
2067
|
}
|
|
2093
2068
|
if (ArrayBuffer.isView(toCast)) {
|
|
2094
|
-
return fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength);
|
|
2069
|
+
return import_util_buffer_from.fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength);
|
|
2095
2070
|
}
|
|
2096
|
-
return fromArrayBuffer(toCast);
|
|
2071
|
+
return import_util_buffer_from.fromArrayBuffer(toCast);
|
|
2097
2072
|
}
|
|
2098
2073
|
|
|
2099
2074
|
// ../../../../node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js
|
|
@@ -2177,7 +2152,7 @@ var inferPhysicalRegion = async () => {
|
|
|
2177
2152
|
}
|
|
2178
2153
|
if (!process.env[ENV_IMDS_DISABLED]) {
|
|
2179
2154
|
try {
|
|
2180
|
-
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-
|
|
2155
|
+
const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-92e6scf8.js");
|
|
2181
2156
|
const endpoint = await getInstanceMetadataEndpoint();
|
|
2182
2157
|
return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
|
|
2183
2158
|
} catch (e) {}
|
|
@@ -2199,30 +2174,4 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
|
|
|
2199
2174
|
region: awsRegionExtensionConfiguration.region()
|
|
2200
2175
|
};
|
|
2201
2176
|
};
|
|
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, 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 };
|
|
2177
|
+
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 };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./chunk-
|
|
2
|
+
AlgorithmId,
|
|
3
|
+
SMITHY_CONTEXT_KEY
|
|
4
|
+
} from "./chunk-mbvdyeyw.js";
|
|
5
5
|
import {
|
|
6
|
-
require_dist_cjs
|
|
7
|
-
|
|
6
|
+
require_dist_cjs1 as require_dist_cjs,
|
|
7
|
+
require_protocols
|
|
8
|
+
} from "./chunk-90y2wmyz.js";
|
|
8
9
|
import {
|
|
9
10
|
__toESM
|
|
10
11
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -312,8 +313,6 @@ class Client {
|
|
|
312
313
|
}
|
|
313
314
|
|
|
314
315
|
// ../../../../node_modules/@smithy/smithy-client/dist-es/command.js
|
|
315
|
-
var import_types = __toESM(require_dist_cjs(), 1);
|
|
316
|
-
|
|
317
316
|
class Command {
|
|
318
317
|
constructor() {
|
|
319
318
|
this.middlewareStack = constructStack();
|
|
@@ -333,7 +332,7 @@ class Command {
|
|
|
333
332
|
commandName,
|
|
334
333
|
inputFilterSensitiveLog,
|
|
335
334
|
outputFilterSensitiveLog,
|
|
336
|
-
[
|
|
335
|
+
[SMITHY_CONTEXT_KEY]: {
|
|
337
336
|
commandInstance: this,
|
|
338
337
|
...smithyContext
|
|
339
338
|
},
|
|
@@ -775,11 +774,10 @@ var emitWarningIfUnsupportedVersion = (version) => {
|
|
|
775
774
|
// ../../../../node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js
|
|
776
775
|
var import_protocols2 = __toESM(require_protocols(), 1);
|
|
777
776
|
// ../../../../node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js
|
|
778
|
-
var import_types2 = __toESM(require_dist_cjs(), 1);
|
|
779
777
|
var getChecksumConfiguration = (runtimeConfig) => {
|
|
780
778
|
const checksumAlgorithms = [];
|
|
781
|
-
for (const id in
|
|
782
|
-
const algorithmId =
|
|
779
|
+
for (const id in AlgorithmId) {
|
|
780
|
+
const algorithmId = AlgorithmId[id];
|
|
783
781
|
if (runtimeConfig[algorithmId] === undefined) {
|
|
784
782
|
continue;
|
|
785
783
|
}
|
|
@@ -967,105 +965,26 @@ var _json = (obj) => {
|
|
|
967
965
|
}
|
|
968
966
|
return obj;
|
|
969
967
|
};
|
|
970
|
-
// ../../../../node_modules/@smithy/
|
|
971
|
-
var
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
httpHandler() {
|
|
977
|
-
return runtimeConfig.httpHandler;
|
|
978
|
-
},
|
|
979
|
-
updateHttpClientConfig(key, value) {
|
|
980
|
-
runtimeConfig.httpHandler?.updateHttpClientConfig(key, value);
|
|
981
|
-
},
|
|
982
|
-
httpHandlerConfigs() {
|
|
983
|
-
return runtimeConfig.httpHandler.httpHandlerConfigs();
|
|
984
|
-
}
|
|
985
|
-
};
|
|
986
|
-
};
|
|
987
|
-
var resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => {
|
|
988
|
-
return {
|
|
989
|
-
httpHandler: httpHandlerExtensionConfiguration.httpHandler()
|
|
990
|
-
};
|
|
991
|
-
};
|
|
992
|
-
// ../../../../node_modules/@smithy/protocol-http/dist-es/Field.js
|
|
993
|
-
var import_types3 = __toESM(require_dist_cjs(), 1);
|
|
994
|
-
// ../../../../node_modules/@smithy/protocol-http/dist-es/httpRequest.js
|
|
995
|
-
class HttpRequest {
|
|
996
|
-
constructor(options) {
|
|
997
|
-
this.method = options.method || "GET";
|
|
998
|
-
this.hostname = options.hostname || "localhost";
|
|
999
|
-
this.port = options.port;
|
|
1000
|
-
this.query = options.query || {};
|
|
1001
|
-
this.headers = options.headers || {};
|
|
1002
|
-
this.body = options.body;
|
|
1003
|
-
this.protocol = options.protocol ? options.protocol.slice(-1) !== ":" ? `${options.protocol}:` : options.protocol : "https:";
|
|
1004
|
-
this.path = options.path ? options.path.charAt(0) !== "/" ? `/${options.path}` : options.path : "/";
|
|
1005
|
-
this.username = options.username;
|
|
1006
|
-
this.password = options.password;
|
|
1007
|
-
this.fragment = options.fragment;
|
|
1008
|
-
}
|
|
1009
|
-
static clone(request) {
|
|
1010
|
-
const cloned = new HttpRequest({
|
|
1011
|
-
...request,
|
|
1012
|
-
headers: { ...request.headers }
|
|
1013
|
-
});
|
|
1014
|
-
if (cloned.query) {
|
|
1015
|
-
cloned.query = cloneQuery(cloned.query);
|
|
1016
|
-
}
|
|
1017
|
-
return cloned;
|
|
1018
|
-
}
|
|
1019
|
-
static isInstance(request) {
|
|
1020
|
-
if (!request) {
|
|
1021
|
-
return false;
|
|
1022
|
-
}
|
|
1023
|
-
const req = request;
|
|
1024
|
-
return "method" in req && "protocol" in req && "hostname" in req && "path" in req && typeof req["query"] === "object" && typeof req["headers"] === "object";
|
|
1025
|
-
}
|
|
1026
|
-
clone() {
|
|
1027
|
-
return HttpRequest.clone(this);
|
|
1028
|
-
}
|
|
1029
|
-
}
|
|
1030
|
-
function cloneQuery(query) {
|
|
1031
|
-
return Object.keys(query).reduce((carry, paramName) => {
|
|
1032
|
-
const param = query[paramName];
|
|
1033
|
-
return {
|
|
1034
|
-
...carry,
|
|
1035
|
-
[paramName]: Array.isArray(param) ? [...param] : param
|
|
1036
|
-
};
|
|
1037
|
-
}, {});
|
|
1038
|
-
}
|
|
1039
|
-
// ../../../../node_modules/@smithy/protocol-http/dist-es/httpResponse.js
|
|
1040
|
-
class HttpResponse {
|
|
1041
|
-
constructor(options) {
|
|
1042
|
-
this.statusCode = options.statusCode;
|
|
1043
|
-
this.reason = options.reason;
|
|
1044
|
-
this.headers = options.headers || {};
|
|
1045
|
-
this.body = options.body;
|
|
1046
|
-
}
|
|
1047
|
-
static isInstance(response) {
|
|
1048
|
-
if (!response)
|
|
1049
|
-
return false;
|
|
1050
|
-
const resp = response;
|
|
1051
|
-
return typeof resp.statusCode === "number" && typeof resp.headers === "object";
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
968
|
+
// ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
|
|
969
|
+
var import_protocol_http = __toESM(require_dist_cjs(), 1);
|
|
970
|
+
|
|
971
|
+
// ../../../../node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js
|
|
972
|
+
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
973
|
+
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
1054
974
|
// ../../../../node_modules/@smithy/querystring-builder/dist-es/index.js
|
|
1055
|
-
var import_util_uri_escape = __toESM(require_dist_cjs2(), 1);
|
|
1056
975
|
function buildQueryString(query) {
|
|
1057
976
|
const parts = [];
|
|
1058
977
|
for (let key of Object.keys(query).sort()) {
|
|
1059
978
|
const value = query[key];
|
|
1060
|
-
key =
|
|
979
|
+
key = escapeUri(key);
|
|
1061
980
|
if (Array.isArray(value)) {
|
|
1062
981
|
for (let i = 0, iLen = value.length;i < iLen; i++) {
|
|
1063
|
-
parts.push(`${key}=${
|
|
982
|
+
parts.push(`${key}=${escapeUri(value[i])}`);
|
|
1064
983
|
}
|
|
1065
984
|
} else {
|
|
1066
985
|
let qsEntry = key;
|
|
1067
986
|
if (value || typeof value === "string") {
|
|
1068
|
-
qsEntry += `=${
|
|
987
|
+
qsEntry += `=${escapeUri(value)}`;
|
|
1069
988
|
}
|
|
1070
989
|
parts.push(qsEntry);
|
|
1071
990
|
}
|
|
@@ -1179,7 +1098,7 @@ var setSocketTimeout = (request, reject, timeoutInMs = DEFAULT_REQUEST_TIMEOUT)
|
|
|
1179
1098
|
// ../../../../node_modules/@smithy/node-http-handler/dist-es/write-request-body.js
|
|
1180
1099
|
import { Readable } from "node:stream";
|
|
1181
1100
|
var MIN_WAIT_TIME = 6000;
|
|
1182
|
-
async function writeRequestBody(
|
|
1101
|
+
async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
|
|
1183
1102
|
const headers = request.headers ?? {};
|
|
1184
1103
|
const expect = headers["Expect"] || headers["expect"];
|
|
1185
1104
|
let timeoutId = -1;
|
|
@@ -1190,15 +1109,15 @@ async function writeRequestBody(httpRequest2, request, maxContinueTimeoutMs = MI
|
|
|
1190
1109
|
timeoutId = Number(timing.setTimeout(() => resolve(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
|
|
1191
1110
|
}),
|
|
1192
1111
|
new Promise((resolve) => {
|
|
1193
|
-
|
|
1112
|
+
httpRequest.on("continue", () => {
|
|
1194
1113
|
timing.clearTimeout(timeoutId);
|
|
1195
1114
|
resolve(true);
|
|
1196
1115
|
});
|
|
1197
|
-
|
|
1116
|
+
httpRequest.on("response", () => {
|
|
1198
1117
|
timing.clearTimeout(timeoutId);
|
|
1199
1118
|
resolve(false);
|
|
1200
1119
|
});
|
|
1201
|
-
|
|
1120
|
+
httpRequest.on("error", () => {
|
|
1202
1121
|
timing.clearTimeout(timeoutId);
|
|
1203
1122
|
resolve(false);
|
|
1204
1123
|
});
|
|
@@ -1206,28 +1125,28 @@ async function writeRequestBody(httpRequest2, request, maxContinueTimeoutMs = MI
|
|
|
1206
1125
|
]);
|
|
1207
1126
|
}
|
|
1208
1127
|
if (sendBody) {
|
|
1209
|
-
writeBody(
|
|
1128
|
+
writeBody(httpRequest, request.body);
|
|
1210
1129
|
}
|
|
1211
1130
|
}
|
|
1212
|
-
function writeBody(
|
|
1131
|
+
function writeBody(httpRequest, body) {
|
|
1213
1132
|
if (body instanceof Readable) {
|
|
1214
|
-
body.pipe(
|
|
1133
|
+
body.pipe(httpRequest);
|
|
1215
1134
|
return;
|
|
1216
1135
|
}
|
|
1217
1136
|
if (body) {
|
|
1218
1137
|
if (Buffer.isBuffer(body) || typeof body === "string") {
|
|
1219
|
-
|
|
1138
|
+
httpRequest.end(body);
|
|
1220
1139
|
return;
|
|
1221
1140
|
}
|
|
1222
1141
|
const uint8 = body;
|
|
1223
1142
|
if (typeof uint8 === "object" && uint8.buffer && typeof uint8.byteOffset === "number" && typeof uint8.byteLength === "number") {
|
|
1224
|
-
|
|
1143
|
+
httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
|
|
1225
1144
|
return;
|
|
1226
1145
|
}
|
|
1227
|
-
|
|
1146
|
+
httpRequest.end(Buffer.from(body));
|
|
1228
1147
|
return;
|
|
1229
1148
|
}
|
|
1230
|
-
|
|
1149
|
+
httpRequest.end();
|
|
1231
1150
|
}
|
|
1232
1151
|
|
|
1233
1152
|
// ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
|
|
@@ -1365,13 +1284,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1365
1284
|
};
|
|
1366
1285
|
const requestFunc = isSSL ? hsRequest : hRequest;
|
|
1367
1286
|
const req = requestFunc(nodeHttpsOptions, (res) => {
|
|
1368
|
-
const
|
|
1287
|
+
const httpResponse = new import_protocol_http.HttpResponse({
|
|
1369
1288
|
statusCode: res.statusCode || -1,
|
|
1370
1289
|
reason: res.statusMessage,
|
|
1371
1290
|
headers: getTransformedHeaders(res.headers),
|
|
1372
1291
|
body: res
|
|
1373
1292
|
});
|
|
1374
|
-
resolve({ response:
|
|
1293
|
+
resolve({ response: httpResponse });
|
|
1375
1294
|
});
|
|
1376
1295
|
req.on("error", (err) => {
|
|
1377
1296
|
if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) {
|
|
@@ -1423,6 +1342,8 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
1423
1342
|
return this.config ?? {};
|
|
1424
1343
|
}
|
|
1425
1344
|
}
|
|
1345
|
+
// ../../../../node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js
|
|
1346
|
+
var import_protocol_http2 = __toESM(require_dist_cjs(), 1);
|
|
1426
1347
|
// ../../../../node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
|
|
1427
1348
|
import { Writable } from "node:stream";
|
|
1428
1349
|
|
|
@@ -1478,4 +1399,4 @@ async function collectReadableStream(stream) {
|
|
|
1478
1399
|
}
|
|
1479
1400
|
return collected;
|
|
1480
1401
|
}
|
|
1481
|
-
export {
|
|
1402
|
+
export { Client, Command, SENSITIVE_STRING, expectBoolean, expectInt32, expectNonNull, expectObject, expectString, limitedParseDouble, parseRfc3339DateTime, ServiceException, decorateServiceException, withBaseException, loadConfigsForDefaultMode, emitWarningIfUnsupportedVersion, getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig, isSerializableHeaderValue, NoOpLogger, map, take, _json, NodeHttpHandler, streamCollector };
|
|
@@ -20,7 +20,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
|
|
|
20
20
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
|
21
21
|
let { roleAssumerWithWebIdentity } = init;
|
|
22
22
|
if (!roleAssumerWithWebIdentity) {
|
|
23
|
-
const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-
|
|
23
|
+
const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-qka5w6cv.js");
|
|
24
24
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
|
25
25
|
...init.clientConfig,
|
|
26
26
|
credentialProviderLogger: init.logger,
|
|
@@ -19,23 +19,22 @@ 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-y08qabyb.js";
|
|
23
23
|
import {
|
|
24
24
|
require_dist_cjs,
|
|
25
|
-
require_dist_cjs1 as
|
|
25
|
+
require_dist_cjs1 as require_dist_cjs3,
|
|
26
26
|
require_dist_cjs2 as require_dist_cjs7,
|
|
27
27
|
require_dist_cjs4 as require_dist_cjs8,
|
|
28
28
|
require_dist_cjs5 as require_dist_cjs9,
|
|
29
29
|
require_tslib
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-atahpwz7.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
require_dist_cjs6
|
|
36
|
-
} from "./chunk-
|
|
32
|
+
require_dist_cjs1 as require_dist_cjs2,
|
|
33
|
+
require_dist_cjs4,
|
|
34
|
+
require_dist_cjs5,
|
|
35
|
+
require_dist_cjs7 as require_dist_cjs6
|
|
36
|
+
} from "./chunk-90y2wmyz.js";
|
|
37
37
|
import"./chunk-frw3va9v.js";
|
|
38
|
-
import"./chunk-saqpg5nd.js";
|
|
39
38
|
import {
|
|
40
39
|
__commonJS
|
|
41
40
|
} from "./chunk-9v6qtbez.js";
|
|
@@ -311,7 +310,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
|
|
|
311
310
|
};
|
|
312
311
|
var import_runtimeConfig = require_runtimeConfig();
|
|
313
312
|
var import_region_config_resolver = require_dist_cjs27();
|
|
314
|
-
var import_protocol_http =
|
|
313
|
+
var import_protocol_http = require_dist_cjs2();
|
|
315
314
|
var import_smithy_client = require_dist_cjs8();
|
|
316
315
|
var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
317
316
|
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
@@ -393,7 +392,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
|
|
|
393
392
|
};
|
|
394
393
|
var import_smithy_client7 = require_dist_cjs8();
|
|
395
394
|
var import_middleware_endpoint2 = require_dist_cjs20();
|
|
396
|
-
var import_middleware_serde =
|
|
395
|
+
var import_middleware_serde = require_dist_cjs3();
|
|
397
396
|
var import_smithy_client6 = require_dist_cjs8();
|
|
398
397
|
var import_smithy_client4 = require_dist_cjs8();
|
|
399
398
|
var import_smithy_client3 = require_dist_cjs8();
|