@stacksjs/actions 0.70.17 → 0.70.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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-38cnnp2b.js";
22
+ } from "./chunk-2jssg98j.js";
23
23
  import {
24
24
  require_dist_cjs,
25
25
  require_dist_cjs1 as require_dist_cjs2,
26
26
  require_dist_cjs2 as require_dist_cjs7,
27
- require_dist_cjs4 as require_dist_cjs8,
28
- require_dist_cjs5 as require_dist_cjs9,
27
+ require_dist_cjs3 as require_dist_cjs8,
28
+ require_dist_cjs4 as require_dist_cjs9,
29
29
  require_tslib
30
- } from "./chunk-veja9rez.js";
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";
@@ -4,9 +4,6 @@ import {
4
4
  NodeHttpHandler,
5
5
  parseRfc3339DateTime
6
6
  } from "./chunk-xt9exr2c.js";
7
- import {
8
- CredentialsProviderError
9
- } from "./chunk-zzerxbrm.js";
10
7
  import {
11
8
  require_dist_cjs8 as require_dist_cjs
12
9
  } from "./chunk-a7k3cdby.js";
@@ -14,15 +11,20 @@ import {
14
11
  require_client
15
12
  } from "./chunk-frw3va9v.js";
16
13
  import"./chunk-saqpg5nd.js";
14
+ import {
15
+ require_dist_cjs as require_dist_cjs2
16
+ } from "./chunk-2m04vhea.js";
17
17
  import {
18
18
  __toESM
19
19
  } from "./chunk-9v6qtbez.js";
20
20
 
21
21
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js
22
22
  var import_client = __toESM(require_client(), 1);
23
+ var import_property_provider3 = __toESM(require_dist_cjs2(), 1);
23
24
  import fs from "node:fs/promises";
24
25
 
25
26
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/checkUrl.js
27
+ var import_property_provider = __toESM(require_dist_cjs2(), 1);
26
28
  var ECS_CONTAINER_HOST = "169.254.170.2";
27
29
  var EKS_CONTAINER_HOST_IPv4 = "169.254.170.23";
28
30
  var EKS_CONTAINER_HOST_IPv6 = "[fd00:ec2::23]";
@@ -50,13 +52,14 @@ var checkUrl = (url, logger) => {
50
52
  return;
51
53
  }
52
54
  }
53
- throw new CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
55
+ throw new import_property_provider.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
54
56
  - loopback CIDR 127.0.0.0/8 or [::1/128]
55
57
  - ECS container host 169.254.170.2
56
58
  - EKS container host 169.254.170.23 or [fd00:ec2::23]`, { logger });
57
59
  };
58
60
 
59
61
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/requestHelpers.js
62
+ var import_property_provider2 = __toESM(require_dist_cjs2(), 1);
60
63
  var import_util_stream = __toESM(require_dist_cjs(), 1);
61
64
  function createGetRequest(url) {
62
65
  return new HttpRequest({
@@ -77,7 +80,7 @@ async function getCredentials(response, logger) {
77
80
  if (response.statusCode === 200) {
78
81
  const parsed = JSON.parse(str);
79
82
  if (typeof parsed.AccessKeyId !== "string" || typeof parsed.SecretAccessKey !== "string" || typeof parsed.Token !== "string" || typeof parsed.Expiration !== "string") {
80
- throw new CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
83
+ throw new import_property_provider2.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: " + "{ AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }", { logger });
81
84
  }
82
85
  return {
83
86
  accessKeyId: parsed.AccessKeyId,
@@ -91,12 +94,12 @@ async function getCredentials(response, logger) {
91
94
  try {
92
95
  parsedBody = JSON.parse(str);
93
96
  } catch (e) {}
94
- throw Object.assign(new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
97
+ throw Object.assign(new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger }), {
95
98
  Code: parsedBody.Code,
96
99
  Message: parsedBody.Message
97
100
  });
98
101
  }
99
- throw new CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
102
+ throw new import_property_provider2.CredentialsProviderError(`Server responded with status: ${response.statusCode}`, { logger });
100
103
  }
101
104
 
102
105
  // ../../../../node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/retry-wrapper.js
@@ -140,7 +143,7 @@ var fromHttp = (options = {}) => {
140
143
  } else if (relative) {
141
144
  host = `${DEFAULT_LINK_LOCAL_HOST}${relative}`;
142
145
  } else {
143
- throw new CredentialsProviderError(`No HTTP credential provider host provided.
146
+ throw new import_property_provider3.CredentialsProviderError(`No HTTP credential provider host provided.
144
147
  Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`, { logger: options.logger });
145
148
  }
146
149
  const url = new URL(host);
@@ -160,7 +163,7 @@ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
160
163
  const result = await requestHandler.handle(request);
161
164
  return getCredentials(result.response).then((creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_HTTP", "z"));
162
165
  } catch (e) {
163
- throw new CredentialsProviderError(String(e), { logger: options.logger });
166
+ throw new import_property_provider3.CredentialsProviderError(String(e), { logger: options.logger });
164
167
  }
165
168
  }, options.maxRetries ?? 3, options.timeout ?? 1000);
166
169
  };
@@ -3,18 +3,19 @@ import {
3
3
  getProfileName,
4
4
  parseKnownFiles
5
5
  } from "./chunk-bf8bq8pc.js";
6
- import {
7
- CredentialsProviderError
8
- } from "./chunk-zzerxbrm.js";
9
6
  import {
10
7
  require_client
11
8
  } from "./chunk-frw3va9v.js";
12
9
  import"./chunk-saqpg5nd.js";
10
+ import {
11
+ require_dist_cjs
12
+ } from "./chunk-2m04vhea.js";
13
13
  import {
14
14
  __toESM
15
15
  } from "./chunk-9v6qtbez.js";
16
16
 
17
17
  // ../../../../node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js
18
+ var import_property_provider = __toESM(require_dist_cjs(), 1);
18
19
  import { exec } from "node:child_process";
19
20
  import { promisify } from "node:util";
20
21
 
@@ -67,13 +68,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
67
68
  }
68
69
  return getValidatedProcessCredentials(profileName, data, profiles);
69
70
  } catch (error) {
70
- throw new CredentialsProviderError(error.message, { logger });
71
+ throw new import_property_provider.CredentialsProviderError(error.message, { logger });
71
72
  }
72
73
  } else {
73
- throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
74
+ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
74
75
  }
75
76
  } else {
76
- throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
77
+ throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
77
78
  logger
78
79
  });
79
80
  }
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  loadConfig,
3
3
  parseUrl
4
- } from "./chunk-7s5qcjkt.js";
4
+ } from "./chunk-bh25aaf7.js";
5
5
  import {
6
6
  CONFIG_PREFIX_SEPARATOR
7
7
  } from "./chunk-bf8bq8pc.js";
@@ -10,21 +10,18 @@ import {
10
10
  HttpResponse,
11
11
  NoOpLogger
12
12
  } from "./chunk-xt9exr2c.js";
13
- import {
14
- memoize
15
- } from "./chunk-zzerxbrm.js";
16
13
  import {
17
14
  require_dist,
18
- require_dist_cjs2 as require_dist_cjs4,
19
- require_dist_cjs5
20
- } from "./chunk-veja9rez.js";
21
- import {
22
- require_dist_cjs1 as require_dist_cjs2,
23
- require_dist_cjs3
24
- } from "./chunk-a7k3cdby.js";
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";
25
19
  import {
26
20
  require_dist_cjs
27
21
  } from "./chunk-saqpg5nd.js";
22
+ import {
23
+ require_dist_cjs as require_dist_cjs4
24
+ } from "./chunk-2m04vhea.js";
28
25
  import {
29
26
  __require,
30
27
  __toESM
@@ -143,7 +140,7 @@ var getRecursionDetectionPlugin = (options) => ({
143
140
  });
144
141
 
145
142
  // ../../../../node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js
146
- var import_core = __toESM(require_dist_cjs4(), 1);
143
+ var import_core = __toESM(require_dist_cjs3(), 1);
147
144
  var DEFAULT_UA_APP_ID = undefined;
148
145
  function isValidUserAgentAppId(appId) {
149
146
  if (appId === undefined) {
@@ -1155,16 +1152,10 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
1155
1152
  configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG),
1156
1153
  default: false
1157
1154
  };
1158
- // ../../../../node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js
1159
- var import_types12 = __toESM(require_dist_cjs(), 1);
1160
- var getSmithyContext = (context) => context[import_types12.SMITHY_CONTEXT_KEY] || (context[import_types12.SMITHY_CONTEXT_KEY] = {});
1161
- // ../../../../node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js
1162
- var normalizeProvider2 = (input) => {
1163
- if (typeof input === "function")
1164
- return input;
1165
- const promisified = Promise.resolve(input);
1166
- return () => promisified;
1167
- };
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);
1168
1159
  // ../../../../node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js
1169
1160
  var REGION_ENV_NAME = "AWS_REGION";
1170
1161
  var REGION_INI_NAME = "region";
@@ -1283,7 +1274,8 @@ function getSerdePlugin(config2, serializer, deserializer) {
1283
1274
  };
1284
1275
  }
1285
1276
  // ../../../../node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js
1286
- var import_core3 = __toESM(require_dist_cjs4(), 1);
1277
+ var import_core3 = __toESM(require_dist_cjs3(), 1);
1278
+ var import_util_middleware3 = __toESM(require_dist_cjs2(), 1);
1287
1279
 
1288
1280
  // ../../../../node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js
1289
1281
  var resolveParamsForS3 = async (endpointParams) => {
@@ -1472,7 +1464,7 @@ var endpointMiddleware = ({ config: config2, instructions }) => {
1472
1464
  if (authScheme) {
1473
1465
  context["signing_region"] = authScheme.signingRegion;
1474
1466
  context["signing_service"] = authScheme.signingName;
1475
- const smithyContext = getSmithyContext(context);
1467
+ const smithyContext = import_util_middleware3.getSmithyContext(context);
1476
1468
  const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption;
1477
1469
  if (httpAuthOption) {
1478
1470
  httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, {
@@ -1509,17 +1501,18 @@ var getEndpointPlugin = (config2, instructions) => ({
1509
1501
  });
1510
1502
 
1511
1503
  // ../../../../node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js
1504
+ var import_util_middleware4 = __toESM(require_dist_cjs2(), 1);
1512
1505
  var resolveEndpointConfig = (input) => {
1513
1506
  const tls = input.tls ?? true;
1514
1507
  const { endpoint, useDualstackEndpoint, useFipsEndpoint } = input;
1515
- const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider2(endpoint)()) : undefined;
1508
+ const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await import_util_middleware4.normalizeProvider(endpoint)()) : undefined;
1516
1509
  const isCustomEndpoint = !!endpoint;
1517
1510
  const resolvedConfig = Object.assign(input, {
1518
1511
  endpoint: customEndpointProvider,
1519
1512
  tls,
1520
1513
  isCustomEndpoint,
1521
- useDualstackEndpoint: normalizeProvider2(useDualstackEndpoint ?? false),
1522
- useFipsEndpoint: normalizeProvider2(useFipsEndpoint ?? false)
1514
+ useDualstackEndpoint: import_util_middleware4.normalizeProvider(useDualstackEndpoint ?? false),
1515
+ useFipsEndpoint: import_util_middleware4.normalizeProvider(useFipsEndpoint ?? false)
1523
1516
  });
1524
1517
  let configuredEndpointPromise = undefined;
1525
1518
  resolvedConfig.serviceConfiguredEndpoint = async () => {
@@ -1530,6 +1523,9 @@ var resolveEndpointConfig = (input) => {
1530
1523
  };
1531
1524
  return resolvedConfig;
1532
1525
  };
1526
+ // ../../../../node_modules/@smithy/middleware-retry/dist-es/configurations.js
1527
+ var import_util_middleware5 = __toESM(require_dist_cjs2(), 1);
1528
+
1533
1529
  // ../../../../node_modules/@smithy/util-retry/dist-es/config.js
1534
1530
  var RETRY_MODES;
1535
1531
  (function(RETRY_MODES2) {
@@ -1821,14 +1817,14 @@ var NODE_MAX_ATTEMPT_CONFIG_OPTIONS = {
1821
1817
  };
1822
1818
  var resolveRetryConfig = (input) => {
1823
1819
  const { retryStrategy, retryMode: _retryMode, maxAttempts: _maxAttempts } = input;
1824
- const maxAttempts = normalizeProvider2(_maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
1820
+ const maxAttempts = import_util_middleware5.normalizeProvider(_maxAttempts ?? DEFAULT_MAX_ATTEMPTS);
1825
1821
  return Object.assign(input, {
1826
1822
  maxAttempts,
1827
1823
  retryStrategy: async () => {
1828
1824
  if (retryStrategy) {
1829
1825
  return retryStrategy;
1830
1826
  }
1831
- const retryMode = await normalizeProvider2(_retryMode)();
1827
+ const retryMode = await import_util_middleware5.normalizeProvider(_retryMode)();
1832
1828
  if (retryMode === RETRY_MODES.ADAPTIVE) {
1833
1829
  return new AdaptiveRetryStrategy(maxAttempts);
1834
1830
  }
@@ -2024,11 +2020,13 @@ var NODE_APP_ID_CONFIG_OPTIONS = {
2024
2020
  configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME] ?? profile[UA_APP_ID_INI_NAME_DEPRECATED],
2025
2021
  default: DEFAULT_UA_APP_ID
2026
2022
  };
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
+
2027
2026
  // ../../../../node_modules/@smithy/util-buffer-from/dist-es/index.js
2028
- var import_is_array_buffer = __toESM(require_dist_cjs2(), 1);
2029
2027
  import { Buffer as Buffer2 } from "node:buffer";
2030
2028
  var fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => {
2031
- if (!import_is_array_buffer.isArrayBuffer(input)) {
2029
+ if (!isArrayBuffer(input)) {
2032
2030
  throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`);
2033
2031
  }
2034
2032
  return Buffer2.from(input, offset, length);
@@ -2040,8 +2038,32 @@ var fromString = (input, encoding) => {
2040
2038
  return encoding ? Buffer2.from(input, encoding) : Buffer2.from(input);
2041
2039
  };
2042
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
+ };
2043
2066
  // ../../../../node_modules/@smithy/hash-node/dist-es/index.js
2044
- var import_util_utf8 = __toESM(require_dist_cjs3(), 1);
2045
2067
  import { Buffer as Buffer3 } from "node:buffer";
2046
2068
  import { createHash, createHmac } from "node:crypto";
2047
2069
 
@@ -2052,7 +2074,7 @@ class Hash {
2052
2074
  this.reset();
2053
2075
  }
2054
2076
  update(toHash, encoding) {
2055
- this.hash.update(import_util_utf8.toUint8Array(castSourceData(toHash, encoding)));
2077
+ this.hash.update(toUint8Array(castSourceData(toHash, encoding)));
2056
2078
  }
2057
2079
  digest() {
2058
2080
  return Promise.resolve(this.hash.digest());
@@ -2095,6 +2117,9 @@ var calculateBodyLength = (body) => {
2095
2117
  }
2096
2118
  throw new Error(`Body Length computation failed for ${body}`);
2097
2119
  };
2120
+ // ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
2121
+ var import_property_provider = __toESM(require_dist_cjs4(), 1);
2122
+
2098
2123
  // ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js
2099
2124
  var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
2100
2125
  var AWS_REGION_ENV = "AWS_REGION";
@@ -2117,7 +2142,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
2117
2142
  };
2118
2143
 
2119
2144
  // ../../../../node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js
2120
- var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
2145
+ var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => import_property_provider.memoize(async () => {
2121
2146
  const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
2122
2147
  switch (mode?.toLowerCase()) {
2123
2148
  case "auto":
@@ -2155,7 +2180,7 @@ var inferPhysicalRegion = async () => {
2155
2180
  }
2156
2181
  if (!process.env[ENV_IMDS_DISABLED]) {
2157
2182
  try {
2158
- const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-t5em30ak.js");
2183
+ const { getInstanceMetadataEndpoint, httpRequest } = await import("./chunk-9menqd9a.js");
2159
2184
  const endpoint = await getInstanceMetadataEndpoint();
2160
2185
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
2161
2186
  } catch (e) {}
@@ -2177,4 +2202,30 @@ var resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) =
2177
2202
  region: awsRegionExtensionConfiguration.region()
2178
2203
  };
2179
2204
  };
2180
- 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 };
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 };
@@ -1,16 +1,17 @@
1
1
  // @bun
2
- import {
3
- CredentialsProviderError
4
- } from "./chunk-zzerxbrm.js";
5
2
  import {
6
3
  require_client
7
4
  } from "./chunk-frw3va9v.js";
5
+ import {
6
+ require_dist_cjs
7
+ } from "./chunk-2m04vhea.js";
8
8
  import {
9
9
  __toESM
10
10
  } from "./chunk-9v6qtbez.js";
11
11
 
12
12
  // ../../../../node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js
13
13
  var import_client = __toESM(require_client(), 1);
14
+ var import_property_provider = __toESM(require_dist_cjs(), 1);
14
15
  var ENV_KEY = "AWS_ACCESS_KEY_ID";
15
16
  var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
16
17
  var ENV_SESSION = "AWS_SESSION_TOKEN";
@@ -37,7 +38,7 @@ var fromEnv = (init) => async () => {
37
38
  import_client.setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
38
39
  return credentials;
39
40
  }
40
- throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
41
+ throw new import_property_provider.CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
41
42
  };
42
43
  export {
43
44
  fromEnv,
@@ -2,19 +2,22 @@
2
2
  import {
3
3
  loadConfig,
4
4
  parseUrl
5
- } from "./chunk-7s5qcjkt.js";
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"./chunk-9v6qtbez.js";
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
- class InstanceMetadataV1FallbackError extends CredentialsProviderError {
155
+ var import_property_provider3 = __toESM(require_dist_cjs(), 1);
156
+
157
+ class InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
150
158
  constructor(message, tryNextLink = true) {
151
159
  super(message, tryNextLink);
152
160
  this.tryNextLink = tryNextLink;
@@ -264,7 +272,7 @@ var getInstanceMetadataProvider = (init = {}) => {
264
272
  const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
265
273
  fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
266
274
  if (envValue === undefined) {
267
- throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
275
+ throw new import_property_provider4.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
268
276
  }
269
277
  return fallbackBlockedFromProcessEnv;
270
278
  },
@@ -358,7 +366,7 @@ var getCredentialsFromProfile = async (profile, options, init) => {
358
366
  path: IMDS_PATH + profile
359
367
  })).toString());
360
368
  if (!isImdsCredentials(credentialsResponse)) {
361
- throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
369
+ throw new import_property_provider4.CredentialsProviderError("Invalid response received from instance metadata service.", {
362
370
  logger: init.logger
363
371
  });
364
372
  }
@@ -1,23 +1,23 @@
1
1
  // @bun
2
2
  import {
3
3
  route
4
- } from "./chunk-8qbv8f54.js";
5
- import"./chunk-kz2maxj4.js";
4
+ } from "./chunk-x1ny4wwh.js";
5
+ import"./chunk-fsa32kvk.js";
6
6
  import"./chunk-mdj7x1vs.js";
7
7
  import"./chunk-p0c688mg.js";
8
- import"./chunk-qkm8e752.js";
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-6r2cfyvs.js";
13
- import"./chunk-7s5qcjkt.js";
12
+ import"./chunk-74nzt2f7.js";
13
+ import"./chunk-bh25aaf7.js";
14
14
  import"./chunk-bf8bq8pc.js";
15
15
  import"./chunk-xt9exr2c.js";
16
- import"./chunk-zzerxbrm.js";
17
- import"./chunk-veja9rez.js";
16
+ import"./chunk-0crtxf8d.js";
18
17
  import"./chunk-a7k3cdby.js";
19
18
  import"./chunk-frw3va9v.js";
20
19
  import"./chunk-saqpg5nd.js";
20
+ import"./chunk-2m04vhea.js";
21
21
  import"./chunk-2dvnt46s.js";
22
22
  import"./chunk-w6fdq4hk.js";
23
23
  import"./chunk-wkwtsvym.js";
@@ -19,15 +19,15 @@ import {
19
19
  require_dist_cjs8 as require_dist_cjs18,
20
20
  require_dist_cjs9 as require_dist_cjs19,
21
21
  require_package
22
- } from "./chunk-38cnnp2b.js";
22
+ } from "./chunk-2jssg98j.js";
23
23
  import {
24
24
  require_dist_cjs,
25
25
  require_dist_cjs1 as require_dist_cjs2,
26
26
  require_dist_cjs2 as require_dist_cjs7,
27
- require_dist_cjs4 as require_dist_cjs8,
28
- require_dist_cjs5 as require_dist_cjs9,
27
+ require_dist_cjs3 as require_dist_cjs8,
28
+ require_dist_cjs4 as require_dist_cjs9,
29
29
  require_tslib
30
- } from "./chunk-veja9rez.js";
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";