@stacksjs/actions 0.70.19 → 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.
Files changed (32) hide show
  1. package/dist/build.js +11 -11
  2. package/dist/{chunk-74nzt2f7.js → chunk-0m948f1p.js} +68 -122
  3. package/dist/{chunk-xt9exr2c.js → chunk-23btgw5e.js} +34 -113
  4. package/dist/{chunk-cvxddy4g.js → chunk-3y8t4qyf.js} +5 -6
  5. package/dist/{chunk-b7b7jd25.js → chunk-5wdfth6e.js} +12 -14
  6. package/dist/{chunk-6xeh1279.js → chunk-8qsrwjam.js} +8 -9
  7. package/dist/{chunk-a7k3cdby.js → chunk-90y2wmyz.js} +114 -4
  8. package/dist/{chunk-9menqd9a.js → chunk-92e6scf8.js} +17 -25
  9. package/dist/{chunk-0crtxf8d.js → chunk-atahpwz7.js} +163 -28
  10. package/dist/{chunk-jqbza09y.js → chunk-bz3nmjmp.js} +19 -23
  11. package/dist/{chunk-fsa32kvk.js → chunk-ddw2jq8f.js} +93 -88
  12. package/dist/{chunk-bh25aaf7.js → chunk-hqmjfnnn.js} +10 -18
  13. package/dist/{chunk-x1ny4wwh.js → chunk-jq06qn43.js} +3 -3
  14. package/dist/chunk-mbvdyeyw.js +50 -0
  15. package/dist/{chunk-264njj8m.js → chunk-ny592jcd.js} +11 -11
  16. package/dist/{chunk-6egz2b52.js → chunk-qka5w6cv.js} +14 -16
  17. package/dist/{chunk-8dsect0a.js → chunk-qkm8e752.js} +4 -5
  18. package/dist/{chunk-annfdd3f.js → chunk-rbsehxzg.js} +11 -11
  19. package/dist/{chunk-6vn0j49q.js → chunk-rfdmx5yh.js} +17 -19
  20. package/dist/{chunk-z4k3w6hz.js → chunk-s3xxrvrk.js} +27 -36
  21. package/dist/{chunk-2jssg98j.js → chunk-y08qabyb.js} +16 -20
  22. package/dist/{chunk-bf8bq8pc.js → chunk-yyvh669b.js} +6 -14
  23. package/dist/{chunk-4tte2ccn.js → chunk-zhrbz0qv.js} +37 -34
  24. package/dist/chunk-zzerxbrm.js +107 -0
  25. package/dist/database/seed.js +10 -10
  26. package/dist/generate/index.js +11 -11
  27. package/dist/index.js +11 -11
  28. package/dist/release.js +11 -11
  29. package/dist/upgrade.js +1 -1
  30. package/package.json +1 -1
  31. package/dist/chunk-2m04vhea.js +0 -145
  32. 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-x1ny4wwh.js";
5
+ import"./chunk-jq06qn43.js";
6
6
  import"./helpers/vscode-custom-data.js";
7
7
  import"./chunk-494jp8d5.js";
8
- import"./chunk-fsa32kvk.js";
8
+ import"./chunk-ddw2jq8f.js";
9
9
  import"./chunk-mdj7x1vs.js";
10
10
  import"./chunk-p0c688mg.js";
11
- import"./chunk-8dsect0a.js";
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-74nzt2f7.js";
16
- import"./chunk-bh25aaf7.js";
17
- import"./chunk-bf8bq8pc.js";
18
- import"./chunk-xt9exr2c.js";
19
- import"./chunk-0crtxf8d.js";
20
- import"./chunk-a7k3cdby.js";
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";
20
+ import"./chunk-zzerxbrm.js";
21
+ import"./chunk-atahpwz7.js";
22
+ import"./chunk-90y2wmyz.js";
21
23
  import"./chunk-frw3va9v.js";
22
- import"./chunk-saqpg5nd.js";
23
- import"./chunk-2m04vhea.js";
24
24
  import"./chunk-2dvnt46s.js";
25
25
  import"./chunk-w6fdq4hk.js";
26
26
  import"./chunk-wkwtsvym.js";
@@ -1,38 +1,42 @@
1
1
  import {
2
2
  loadConfig,
3
3
  parseUrl
4
- } from "./chunk-bh25aaf7.js";
4
+ } from "./chunk-hqmjfnnn.js";
5
5
  import {
6
6
  CONFIG_PREFIX_SEPARATOR
7
- } from "./chunk-bf8bq8pc.js";
7
+ } from "./chunk-yyvh669b.js";
8
8
  import {
9
- HttpRequest,
10
- HttpResponse,
11
9
  NoOpLogger
12
- } from "./chunk-xt9exr2c.js";
10
+ } from "./chunk-23btgw5e.js";
13
11
  import {
14
- require_dist,
15
- require_dist_cjs as require_dist_cjs2,
16
- require_dist_cjs2 as require_dist_cjs3,
17
- require_dist_cjs4 as require_dist_cjs5
18
- } from "./chunk-0crtxf8d.js";
12
+ EndpointURLScheme,
13
+ SMITHY_CONTEXT_KEY
14
+ } from "./chunk-mbvdyeyw.js";
15
+ import {
16
+ memoize
17
+ } from "./chunk-zzerxbrm.js";
19
18
  import {
20
- require_dist_cjs
21
- } from "./chunk-saqpg5nd.js";
19
+ require_dist,
20
+ require_dist_cjs2 as require_dist_cjs4,
21
+ require_dist_cjs5
22
+ } from "./chunk-atahpwz7.js";
22
23
  import {
23
- require_dist_cjs as require_dist_cjs4
24
- } from "./chunk-2m04vhea.js";
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";
25
28
  import {
26
29
  __require,
27
30
  __toESM
28
31
  } from "./chunk-9v6qtbez.js";
29
32
 
30
33
  // ../../../../node_modules/@aws-sdk/middleware-host-header/dist-es/index.js
34
+ var import_protocol_http = __toESM(require_dist_cjs(), 1);
31
35
  function resolveHostHeaderConfig(input) {
32
36
  return input;
33
37
  }
34
38
  var hostHeaderMiddleware = (options) => (next) => async (args) => {
35
- if (!HttpRequest.isInstance(args.request))
39
+ if (!import_protocol_http.HttpRequest.isInstance(args.request))
36
40
  return next(args);
37
41
  const { request } = args;
38
42
  const { handlerProtocol = "" } = options.requestHandler.metadata || {};
@@ -103,12 +107,13 @@ var getLoggerPlugin = (options) => ({
103
107
  }
104
108
  });
105
109
  // ../../../../node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js
110
+ var import_protocol_http2 = __toESM(require_dist_cjs(), 1);
106
111
  var TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id";
107
112
  var ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME";
108
113
  var ENV_TRACE_ID = "_X_AMZN_TRACE_ID";
109
114
  var recursionDetectionMiddleware = (options) => (next) => async (args) => {
110
115
  const { request } = args;
111
- if (!HttpRequest.isInstance(request) || options.runtime !== "node") {
116
+ if (!import_protocol_http2.HttpRequest.isInstance(request) || options.runtime !== "node") {
112
117
  return next(args);
113
118
  }
114
119
  const traceIdHeader = Object.keys(request.headers ?? {}).find((h) => h.toLowerCase() === TRACE_ID_HEADER_NAME.toLowerCase()) ?? TRACE_ID_HEADER_NAME;
@@ -140,7 +145,7 @@ var getRecursionDetectionPlugin = (options) => ({
140
145
  });
141
146
 
142
147
  // ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
143
- var import_core = __toESM(require_dist_cjs3(), 1);
148
+ var import_core = __toESM(require_dist_cjs4(), 1);
144
149
  var DEFAULT_UA_APP_ID = undefined;
145
150
  function isValidUserAgentAppId(appId) {
146
151
  if (appId === undefined) {
@@ -300,10 +305,9 @@ var isSet = (value) => value != null;
300
305
  // ../../../../node_modules/@smithy/util-endpoints/dist-es/lib/not.js
301
306
  var not = (value) => !value;
302
307
  // ../../../../node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js
303
- var import_types3 = __toESM(require_dist_cjs(), 1);
304
308
  var DEFAULT_PORTS = {
305
- [import_types3.EndpointURLScheme.HTTP]: 80,
306
- [import_types3.EndpointURLScheme.HTTPS]: 443
309
+ [EndpointURLScheme.HTTP]: 80,
310
+ [EndpointURLScheme.HTTPS]: 443
307
311
  };
308
312
  var parseURL = (value) => {
309
313
  const whatwgURL = (() => {
@@ -332,7 +336,7 @@ var parseURL = (value) => {
332
336
  return null;
333
337
  }
334
338
  const scheme = protocol.slice(0, -1);
335
- if (!Object.values(import_types3.EndpointURLScheme).includes(scheme)) {
339
+ if (!Object.values(EndpointURLScheme).includes(scheme)) {
336
340
  return null;
337
341
  }
338
342
  const isIp = isIpAddress(hostname);
@@ -945,6 +949,9 @@ var awsEndpointFunctions = {
945
949
  partition
946
950
  };
947
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
+
948
955
  // ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/check-features.js
949
956
  var import_core2 = __toESM(require_dist_cjs5(), 1);
950
957
  var ACCOUNT_ID_ENDPOINT_REGEX = /\d{12}\.ddb/;
@@ -1025,7 +1032,7 @@ function encodeFeatures(features) {
1025
1032
  // ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js
1026
1033
  var userAgentMiddleware = (options) => (next, context) => async (args) => {
1027
1034
  const { request } = args;
1028
- if (!HttpRequest.isInstance(request)) {
1035
+ if (!import_protocol_http3.HttpRequest.isInstance(request)) {
1029
1036
  return next(args);
1030
1037
  }
1031
1038
  const { headers } = request;
@@ -1152,10 +1159,15 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
1152
1159
  configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
1153
1160
  default: false
1154
1161
  };
1155
- // ../../../../node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js
1156
- var import_util_middleware = __toESM(require_dist_cjs2(), 1);
1157
- // ../../../../node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js
1158
- var import_util_middleware2 = __toESM(require_dist_cjs2(), 1);
1162
+ // ../../../../node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
1163
+ var getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {});
1164
+ // ../../../../node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
1165
+ var normalizeProvider2 = (input) => {
1166
+ if (typeof input === "function")
1167
+ return input;
1168
+ const promisified = Promise.resolve(input);
1169
+ return () => promisified;
1170
+ };
1159
1171
  // ../../../../node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
1160
1172
  var REGION_ENV_NAME = "AWS_REGION";
1161
1173
  var REGION_INI_NAME = "region";
@@ -1170,11 +1182,12 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
1170
1182
  preferredFile: "credentials"
1171
1183
  };
1172
1184
  // ../../../../node_modules/@smithy/middleware-content-length/dist-es/index.js
1185
+ var import_protocol_http4 = __toESM(require_dist_cjs(), 1);
1173
1186
  var CONTENT_LENGTH_HEADER = "content-length";
1174
1187
  function contentLengthMiddleware(bodyLengthChecker) {
1175
1188
  return (next) => async (args) => {
1176
1189
  const request = args.request;
1177
- if (HttpRequest.isInstance(request)) {
1190
+ if (import_protocol_http4.HttpRequest.isInstance(request)) {
1178
1191
  const { body, headers } = request;
1179
1192
  if (body && Object.keys(headers).map((str) => str.toLowerCase()).indexOf(CONTENT_LENGTH_HEADER) === -1) {
1180
1193
  try {
@@ -1274,8 +1287,7 @@ function getSerdePlugin(config2, serializer, deserializer) {
1274
1287
  };
1275
1288
  }
1276
1289
  // ../../../../node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
1277
- var import_core3 = __toESM(require_dist_cjs3(), 1);
1278
- var import_util_middleware3 = __toESM(require_dist_cjs2(), 1);
1290
+ var import_core3 = __toESM(require_dist_cjs4(), 1);
1279
1291
 
1280
1292
  // ../../../../node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
1281
1293
  var resolveParamsForS3 = async (endpointParams) => {
@@ -1464,7 +1476,7 @@ var endpointMiddleware = ({ config: config2, instructions }) => {
1464
1476
  if (authScheme) {
1465
1477
  context["signing_region"] = authScheme.signingRegion;
1466
1478
  context["signing_service"] = authScheme.signingName;
1467
- const smithyContext = import_util_middleware3.getSmithyContext(context);
1479
+ const smithyContext = getSmithyContext(context);
1468
1480
  const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
1469
1481
  if (httpAuthOption) {
1470
1482
  httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
@@ -1501,18 +1513,17 @@ var getEndpointPlugin = (config2, instructions) => ({
1501
1513
  });
1502
1514
 
1503
1515
  // ../../../../node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
1504
- var import_util_middleware4 = __toESM(require_dist_cjs2(), 1);
1505
1516
  var resolveEndpointConfig = (input) => {
1506
1517
  const tls = input.tls ?? true;
1507
1518
  const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
1508
- const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await import_util_middleware4.normalizeProvider(endpoint)()) : undefined;
1519
+ const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider2(endpoint)()) : undefined;
1509
1520
  const isCustomEndpoint = !!endpoint;
1510
1521
  const resolvedConfig = Object.assign(input, {
1511
1522
  endpoint: customEndpointProvider,
1512
1523
  tls,
1513
1524
  isCustomEndpoint,
1514
- useDualstackEndpoint: import_util_middleware4.normalizeProvider(useDualstackEndpoint ?? false),
1515
- useFipsEndpoint: import_util_middleware4.normalizeProvider(useFipsEndpoint ?? false)
1525
+ useDualstackEndpoint: normalizeProvider2(useDualstackEndpoint ?? false),
1526
+ useFipsEndpoint: normalizeProvider2(useFipsEndpoint ?? false)
1516
1527
  });
1517
1528
  let configuredEndpointPromise = undefined;
1518
1529
  resolvedConfig.serviceConfiguredEndpoint = async () => {
@@ -1523,9 +1534,6 @@ var resolveEndpointConfig = (input) => {
1523
1534
  };
1524
1535
  return resolvedConfig;
1525
1536
  };
1526
- // ../../../../node_modules/@smithy/middleware-retry/dist-es/configurations.js
1527
- var import_util_middleware5 = __toESM(require_dist_cjs2(), 1);
1528
-
1529
1537
  // ../../../../node_modules/@smithy/util-retry/dist-es/config.js
1530
1538
  var RETRY_MODES;
1531
1539
  (function(RETRY_MODES2) {
@@ -1817,14 +1825,14 @@ var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
1817
1825
  };
1818
1826
  var resolveRetryConfig = (input) => {
1819
1827
  const { retryStrategy, retryMode: _retryMode, maxAttempts: _maxAttempts } = input;
1820
- const maxAttempts = import_util_middleware5.normalizeProvider(_maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
1828
+ const maxAttempts = normalizeProvider2(_maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
1821
1829
  return Object.assign(input, {
1822
1830
  maxAttempts,
1823
1831
  retryStrategy: async () => {
1824
1832
  if (retryStrategy) {
1825
1833
  return retryStrategy;
1826
1834
  }
1827
- const retryMode = await import_util_middleware5.normalizeProvider(_retryMode)();
1835
+ const retryMode = await normalizeProvider2(_retryMode)();
1828
1836
  if (retryMode === RETRY_MODES.ADAPTIVE) {
1829
1837
  return new AdaptiveRetryStrategy(maxAttempts);
1830
1838
  }
@@ -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
- import { Buffer as Buffer3 } from "node:buffer";
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 (Buffer3.isBuffer(toCast)) {
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
@@ -2117,9 +2092,6 @@ var calculateBodyLength = (body) => {
2117
2092
  }
2118
2093
  throw new Error(`Body Length computation failed for ${body}`);
2119
2094
  };
2120
- // ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
2121
- var import_property_provider = __toESM(require_dist_cjs4(), 1);
2122
-
2123
2095
  // ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
2124
2096
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
2125
2097
  var AWS_REGION_ENV = "AWS_REGION";
@@ -2142,7 +2114,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
2142
2114
  };
2143
2115
 
2144
2116
  // ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
2145
- var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => import_property_provider.memoize(async () => {
2117
+ var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
2146
2118
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
2147
2119
  switch (mode?.toLowerCase()) {
2148
2120
  case "auto":
@@ -2180,7 +2152,7 @@ var inferPhysicalRegion = async () => {
2180
2152
  }
2181
2153
  if (!process.env[ENV_IMDS_DISABLED]) {
2182
2154
  try {
2183
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-9menqd9a.js");
2155
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-92e6scf8.js");
2184
2156
  const endpoint = await getInstanceMetadataEndpoint();
2185
2157
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
2186
2158
  } catch (e) {}
@@ -2202,30 +2174,4 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
2202
2174
  region: awsRegionExtensionConfiguration.region()
2203
2175
  };
2204
2176
  };
2205
- // ../../../../node_modules/@smithy/util-base64/dist-es/fromBase64.js
2206
- var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
2207
- var fromBase64 = (input) => {
2208
- if (input.length * 3 % 4 !== 0) {
2209
- throw new TypeError(`Incorrect padding on base64 string.`);
2210
- }
2211
- if (!BASE64_REGEX.exec(input)) {
2212
- throw new TypeError(`Invalid base64 string.`);
2213
- }
2214
- const buffer = fromString(input, "base64");
2215
- return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength);
2216
- };
2217
-
2218
- // ../../../../node_modules/@smithy/util-base64/dist-es/toBase64.js
2219
- var toBase64 = (_input) => {
2220
- let input;
2221
- if (typeof _input === "string") {
2222
- input = fromUtf8(_input);
2223
- } else {
2224
- input = _input;
2225
- }
2226
- if (typeof input !== "object" || typeof input.byteOffset !== "number" || typeof input.byteLength !== "number") {
2227
- throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");
2228
- }
2229
- return fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64");
2230
- };
2231
- 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 };
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 };