@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
@@ -1,10 +1,11 @@
1
1
  import {
2
- require_dist_cjs5 as require_dist_cjs2,
3
- require_protocols
4
- } from "./chunk-a7k3cdby.js";
2
+ AlgorithmId,
3
+ SMITHY_CONTEXT_KEY
4
+ } from "./chunk-mbvdyeyw.js";
5
5
  import {
6
- require_dist_cjs
7
- } from "./chunk-saqpg5nd.js";
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
- [import_types.SMITHY_CONTEXT_KEY]: {
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 import_types2.AlgorithmId) {
782
- const algorithmId = import_types2.AlgorithmId[id];
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/protocol-http/dist-es/extensions/httpExtensionConfiguration.js
971
- var getHttpHandlerExtensionConfiguration = (runtimeConfig) => {
972
- return {
973
- setHttpHandler(handler) {
974
- runtimeConfig.httpHandler = handler;
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 = import_util_uri_escape.escapeUri(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}=${import_util_uri_escape.escapeUri(value[i])}`);
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 += `=${import_util_uri_escape.escapeUri(value)}`;
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(httpRequest2, request, maxContinueTimeoutMs = MIN_WAIT_TIME) {
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
- httpRequest2.on("continue", () => {
1112
+ httpRequest.on("continue", () => {
1194
1113
  timing.clearTimeout(timeoutId);
1195
1114
  resolve(true);
1196
1115
  });
1197
- httpRequest2.on("response", () => {
1116
+ httpRequest.on("response", () => {
1198
1117
  timing.clearTimeout(timeoutId);
1199
1118
  resolve(false);
1200
1119
  });
1201
- httpRequest2.on("error", () => {
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(httpRequest2, request.body);
1128
+ writeBody(httpRequest, request.body);
1210
1129
  }
1211
1130
  }
1212
- function writeBody(httpRequest2, body) {
1131
+ function writeBody(httpRequest, body) {
1213
1132
  if (body instanceof Readable) {
1214
- body.pipe(httpRequest2);
1133
+ body.pipe(httpRequest);
1215
1134
  return;
1216
1135
  }
1217
1136
  if (body) {
1218
1137
  if (Buffer.isBuffer(body) || typeof body === "string") {
1219
- httpRequest2.end(body);
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
- httpRequest2.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
1143
+ httpRequest.end(Buffer.from(uint8.buffer, uint8.byteOffset, uint8.byteLength));
1225
1144
  return;
1226
1145
  }
1227
- httpRequest2.end(Buffer.from(body));
1146
+ httpRequest.end(Buffer.from(body));
1228
1147
  return;
1229
1148
  }
1230
- httpRequest2.end();
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 httpResponse2 = new HttpResponse({
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: httpResponse2 });
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 { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig, HttpRequest, HttpResponse, 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 };
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 };
@@ -1,10 +1,10 @@
1
1
  // @bun
2
+ import {
3
+ CredentialsProviderError
4
+ } from "./chunk-zzerxbrm.js";
2
5
  import {
3
6
  require_client
4
7
  } from "./chunk-frw3va9v.js";
5
- import {
6
- require_dist_cjs
7
- } from "./chunk-2m04vhea.js";
8
8
  import {
9
9
  __require,
10
10
  __toESM
@@ -12,7 +12,6 @@ import {
12
12
 
13
13
  // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js
14
14
  var import_client = __toESM(require_client(), 1);
15
- var import_property_provider = __toESM(require_dist_cjs(), 1);
16
15
  import { readFileSync } from "node:fs";
17
16
 
18
17
  // ../../../../node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js
@@ -21,7 +20,7 @@ var fromWebToken = (init) => async (awsIdentityProperties) => {
21
20
  const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
22
21
  let { roleAssumerWithWebIdentity } = init;
23
22
  if (!roleAssumerWithWebIdentity) {
24
- const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-6egz2b52.js");
23
+ const { getDefaultRoleAssumerWithWebIdentity } = await import("./chunk-qka5w6cv.js");
25
24
  roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
26
25
  ...init.clientConfig,
27
26
  credentialProviderLogger: init.logger,
@@ -52,7 +51,7 @@ var fromTokenFile = (init = {}) => async () => {
52
51
  const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN];
53
52
  const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME];
54
53
  if (!webIdentityTokenFile || !roleArn) {
55
- throw new import_property_provider.CredentialsProviderError("Web identity configuration not specified", {
54
+ throw new CredentialsProviderError("Web identity configuration not specified", {
56
55
  logger: init.logger
57
56
  });
58
57
  }
@@ -19,24 +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-2jssg98j.js";
22
+ } from "./chunk-y08qabyb.js";
23
23
  import {
24
24
  require_dist_cjs,
25
- require_dist_cjs1 as require_dist_cjs2,
25
+ require_dist_cjs1 as require_dist_cjs3,
26
26
  require_dist_cjs2 as require_dist_cjs7,
27
- require_dist_cjs3 as require_dist_cjs8,
28
- require_dist_cjs4 as require_dist_cjs9,
27
+ require_dist_cjs4 as require_dist_cjs8,
28
+ require_dist_cjs5 as require_dist_cjs9,
29
29
  require_tslib
30
- } from "./chunk-0crtxf8d.js";
30
+ } from "./chunk-atahpwz7.js";
31
31
  import {
32
- require_dist_cjs as require_dist_cjs3,
33
- require_dist_cjs3 as require_dist_cjs4,
34
- require_dist_cjs4 as require_dist_cjs5,
35
- require_dist_cjs6
36
- } from "./chunk-a7k3cdby.js";
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
- import"./chunk-2m04vhea.js";
40
38
  import {
41
39
  __commonJS
42
40
  } from "./chunk-9v6qtbez.js";
@@ -312,7 +310,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
312
310
  };
313
311
  var import_runtimeConfig = require_runtimeConfig();
314
312
  var import_region_config_resolver = require_dist_cjs27();
315
- var import_protocol_http = require_dist_cjs3();
313
+ var import_protocol_http = require_dist_cjs2();
316
314
  var import_smithy_client = require_dist_cjs8();
317
315
  var getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
318
316
  const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
@@ -394,7 +392,7 @@ var require_sso_oidc = __commonJS((exports, module) => {
394
392
  };
395
393
  var import_smithy_client7 = require_dist_cjs8();
396
394
  var import_middleware_endpoint2 = require_dist_cjs20();
397
- var import_middleware_serde = require_dist_cjs2();
395
+ var import_middleware_serde = require_dist_cjs3();
398
396
  var import_smithy_client6 = require_dist_cjs8();
399
397
  var import_smithy_client4 = require_dist_cjs8();
400
398
  var import_smithy_client3 = require_dist_cjs8();
@@ -2,20 +2,19 @@
2
2
  import {
3
3
  getProfileName,
4
4
  parseKnownFiles
5
- } from "./chunk-bf8bq8pc.js";
5
+ } from "./chunk-yyvh669b.js";
6
+ import"./chunk-mbvdyeyw.js";
7
+ import {
8
+ CredentialsProviderError
9
+ } from "./chunk-zzerxbrm.js";
6
10
  import {
7
11
  require_client
8
12
  } from "./chunk-frw3va9v.js";
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);
19
18
  import { exec } from "node:child_process";
20
19
  import { promisify } from "node:util";
21
20
 
@@ -68,13 +67,13 @@ var resolveProcessCredentials = async (profileName, profiles, logger) => {
68
67
  }
69
68
  return getValidatedProcessCredentials(profileName, data, profiles);
70
69
  } catch (error) {
71
- throw new import_property_provider.CredentialsProviderError(error.message, { logger });
70
+ throw new CredentialsProviderError(error.message, { logger });
72
71
  }
73
72
  } else {
74
- throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
73
+ throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`, { logger });
75
74
  }
76
75
  } else {
77
- throw new import_property_provider.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
76
+ throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`, {
78
77
  logger
79
78
  });
80
79
  }
@@ -1,11 +1,121 @@
1
- import {
2
- require_dist_cjs
3
- } from "./chunk-saqpg5nd.js";
4
1
  import {
5
2
  __commonJS,
6
3
  __require
7
4
  } from "./chunk-9v6qtbez.js";
8
5
 
6
+ // ../../../../node_modules/@smithy/types/dist-cjs/index.js
7
+ var require_dist_cjs = __commonJS((exports, module) => {
8
+ var __defProp = Object.defineProperty;
9
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
10
+ var __getOwnPropNames = Object.getOwnPropertyNames;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
13
+ var __export = (target, all) => {
14
+ for (var name in all)
15
+ __defProp(target, name, { get: all[name], enumerable: true });
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
26
+ var src_exports = {};
27
+ __export(src_exports, {
28
+ AlgorithmId: () => AlgorithmId,
29
+ EndpointURLScheme: () => EndpointURLScheme,
30
+ FieldPosition: () => FieldPosition,
31
+ HttpApiKeyAuthLocation: () => HttpApiKeyAuthLocation,
32
+ HttpAuthLocation: () => HttpAuthLocation,
33
+ IniSectionType: () => IniSectionType,
34
+ RequestHandlerProtocol: () => RequestHandlerProtocol,
35
+ SMITHY_CONTEXT_KEY: () => SMITHY_CONTEXT_KEY,
36
+ getDefaultClientConfiguration: () => getDefaultClientConfiguration,
37
+ resolveDefaultRuntimeConfig: () => resolveDefaultRuntimeConfig
38
+ });
39
+ module.exports = __toCommonJS(src_exports);
40
+ var HttpAuthLocation = /* @__PURE__ */ ((HttpAuthLocation2) => {
41
+ HttpAuthLocation2["HEADER"] = "header";
42
+ HttpAuthLocation2["QUERY"] = "query";
43
+ return HttpAuthLocation2;
44
+ })(HttpAuthLocation || {});
45
+ var HttpApiKeyAuthLocation = /* @__PURE__ */ ((HttpApiKeyAuthLocation2) => {
46
+ HttpApiKeyAuthLocation2["HEADER"] = "header";
47
+ HttpApiKeyAuthLocation2["QUERY"] = "query";
48
+ return HttpApiKeyAuthLocation2;
49
+ })(HttpApiKeyAuthLocation || {});
50
+ var EndpointURLScheme = /* @__PURE__ */ ((EndpointURLScheme2) => {
51
+ EndpointURLScheme2["HTTP"] = "http";
52
+ EndpointURLScheme2["HTTPS"] = "https";
53
+ return EndpointURLScheme2;
54
+ })(EndpointURLScheme || {});
55
+ var AlgorithmId = /* @__PURE__ */ ((AlgorithmId2) => {
56
+ AlgorithmId2["MD5"] = "md5";
57
+ AlgorithmId2["CRC32"] = "crc32";
58
+ AlgorithmId2["CRC32C"] = "crc32c";
59
+ AlgorithmId2["SHA1"] = "sha1";
60
+ AlgorithmId2["SHA256"] = "sha256";
61
+ return AlgorithmId2;
62
+ })(AlgorithmId || {});
63
+ var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
64
+ const checksumAlgorithms = [];
65
+ if (runtimeConfig.sha256 !== undefined) {
66
+ checksumAlgorithms.push({
67
+ algorithmId: () => "sha256",
68
+ checksumConstructor: () => runtimeConfig.sha256
69
+ });
70
+ }
71
+ if (runtimeConfig.md5 != null) {
72
+ checksumAlgorithms.push({
73
+ algorithmId: () => "md5",
74
+ checksumConstructor: () => runtimeConfig.md5
75
+ });
76
+ }
77
+ return {
78
+ addChecksumAlgorithm(algo) {
79
+ checksumAlgorithms.push(algo);
80
+ },
81
+ checksumAlgorithms() {
82
+ return checksumAlgorithms;
83
+ }
84
+ };
85
+ }, "getChecksumConfiguration");
86
+ var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
87
+ const runtimeConfig = {};
88
+ clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
89
+ runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
90
+ });
91
+ return runtimeConfig;
92
+ }, "resolveChecksumRuntimeConfig");
93
+ var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
94
+ return getChecksumConfiguration(runtimeConfig);
95
+ }, "getDefaultClientConfiguration");
96
+ var resolveDefaultRuntimeConfig = /* @__PURE__ */ __name((config) => {
97
+ return resolveChecksumRuntimeConfig(config);
98
+ }, "resolveDefaultRuntimeConfig");
99
+ var FieldPosition = /* @__PURE__ */ ((FieldPosition2) => {
100
+ FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
101
+ FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
102
+ return FieldPosition2;
103
+ })(FieldPosition || {});
104
+ var SMITHY_CONTEXT_KEY = "__smithy_context";
105
+ var IniSectionType = /* @__PURE__ */ ((IniSectionType2) => {
106
+ IniSectionType2["PROFILE"] = "profile";
107
+ IniSectionType2["SSO_SESSION"] = "sso-session";
108
+ IniSectionType2["SERVICES"] = "services";
109
+ return IniSectionType2;
110
+ })(IniSectionType || {});
111
+ var RequestHandlerProtocol = /* @__PURE__ */ ((RequestHandlerProtocol2) => {
112
+ RequestHandlerProtocol2["HTTP_0_9"] = "http/0.9";
113
+ RequestHandlerProtocol2["HTTP_1_0"] = "http/1.0";
114
+ RequestHandlerProtocol2["TDS_8_0"] = "tds/8.0";
115
+ return RequestHandlerProtocol2;
116
+ })(RequestHandlerProtocol || {});
117
+ });
118
+
9
119
  // ../../../../node_modules/@smithy/protocol-http/dist-cjs/index.js
10
120
  var require_dist_cjs2 = __commonJS((exports, module) => {
11
121
  var __defProp = Object.defineProperty;
@@ -2263,4 +2373,4 @@ var require_protocols = __commonJS((exports, module) => {
2263
2373
  };
2264
2374
  });
2265
2375
 
2266
- export { require_dist_cjs2 as require_dist_cjs, require_dist_cjs6 as require_dist_cjs1, require_dist_cjs7 as require_dist_cjs2, require_dist_cjs8 as require_dist_cjs3, require_dist_cjs9 as require_dist_cjs4, require_dist_cjs3 as require_dist_cjs5, require_dist_cjs5 as require_dist_cjs6, require_dist_cjs11 as require_dist_cjs7, require_dist_cjs12 as require_dist_cjs8, require_protocols };
2376
+ export { require_dist_cjs, require_dist_cjs2 as require_dist_cjs1, require_dist_cjs6 as require_dist_cjs2, require_dist_cjs7 as require_dist_cjs3, require_dist_cjs8 as require_dist_cjs4, require_dist_cjs9 as require_dist_cjs5, require_dist_cjs3 as require_dist_cjs6, require_dist_cjs5 as require_dist_cjs7, require_dist_cjs11 as require_dist_cjs8, require_dist_cjs12 as require_dist_cjs9, require_protocols };
@@ -2,22 +2,19 @@
2
2
  import {
3
3
  loadConfig,
4
4
  parseUrl
5
- } from "./chunk-bh25aaf7.js";
6
- import"./chunk-bf8bq8pc.js";
7
- import"./chunk-saqpg5nd.js";
5
+ } from "./chunk-hqmjfnnn.js";
6
+ import"./chunk-yyvh669b.js";
7
+ import"./chunk-mbvdyeyw.js";
8
8
  import {
9
- require_dist_cjs
10
- } from "./chunk-2m04vhea.js";
11
- import {
12
- __toESM
13
- } from "./chunk-9v6qtbez.js";
9
+ CredentialsProviderError,
10
+ ProviderError
11
+ } from "./chunk-zzerxbrm.js";
12
+ import"./chunk-9v6qtbez.js";
14
13
 
15
14
  // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js
16
- var import_property_provider2 = __toESM(require_dist_cjs(), 1);
17
15
  import { parse } from "node:url";
18
16
 
19
17
  // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js
20
- var import_property_provider = __toESM(require_dist_cjs(), 1);
21
18
  import { Buffer } from "node:buffer";
22
19
  import { request } from "node:http";
23
20
  function httpRequest(options) {
@@ -28,17 +25,17 @@ function httpRequest(options) {
28
25
  hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
29
26
  });
30
27
  req.on("error", (err) => {
31
- reject(Object.assign(new import_property_provider.ProviderError("Unable to connect to instance metadata service"), err));
28
+ reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err));
32
29
  req.destroy();
33
30
  });
34
31
  req.on("timeout", () => {
35
- reject(new import_property_provider.ProviderError("TimeoutError from instance metadata service"));
32
+ reject(new ProviderError("TimeoutError from instance metadata service"));
36
33
  req.destroy();
37
34
  });
38
35
  req.on("response", (res) => {
39
36
  const { statusCode = 400 } = res;
40
37
  if (statusCode < 200 || 300 <= statusCode) {
41
- reject(Object.assign(new import_property_provider.ProviderError("Error response received from instance metadata service"), { statusCode }));
38
+ reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode }));
42
39
  req.destroy();
43
40
  }
44
41
  const chunks = [];
@@ -88,7 +85,7 @@ var fromContainerMetadata = (init = {}) => {
88
85
  const requestOptions = await getCmdsUri({ logger: init.logger });
89
86
  const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
90
87
  if (!isImdsCredentials(credsResponse)) {
91
- throw new import_property_provider2.CredentialsProviderError("Invalid response received from instance metadata service.", {
88
+ throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
92
89
  logger: init.logger
93
90
  });
94
91
  }
@@ -127,13 +124,13 @@ var getCmdsUri = async ({ logger }) => {
127
124
  if (process.env[ENV_CMDS_FULL_URI]) {
128
125
  const parsed = parse(process.env[ENV_CMDS_FULL_URI]);
129
126
  if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
130
- throw new import_property_provider2.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
127
+ throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
131
128
  tryNextLink: false,
132
129
  logger
133
130
  });
134
131
  }
135
132
  if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
136
- throw new import_property_provider2.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
133
+ throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
137
134
  tryNextLink: false,
138
135
  logger
139
136
  });
@@ -143,18 +140,13 @@ var getCmdsUri = async ({ logger }) => {
143
140
  port: parsed.port ? parseInt(parsed.port, 10) : undefined
144
141
  };
145
142
  }
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", {
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", {
147
144
  tryNextLink: false,
148
145
  logger
149
146
  });
150
147
  };
151
- // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js
152
- var import_property_provider4 = __toESM(require_dist_cjs(), 1);
153
-
154
148
  // ../../../../node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js
155
- var import_property_provider3 = __toESM(require_dist_cjs(), 1);
156
-
157
- class InstanceMetadataV1FallbackError extends import_property_provider3.CredentialsProviderError {
149
+ class InstanceMetadataV1FallbackError extends CredentialsProviderError {
158
150
  constructor(message, tryNextLink = true) {
159
151
  super(message, tryNextLink);
160
152
  this.tryNextLink = tryNextLink;
@@ -272,7 +264,7 @@ var getInstanceMetadataProvider = (init = {}) => {
272
264
  const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
273
265
  fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
274
266
  if (envValue === undefined) {
275
- throw new import_property_provider4.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
267
+ throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
276
268
  }
277
269
  return fallbackBlockedFromProcessEnv;
278
270
  },
@@ -366,7 +358,7 @@ var getCredentialsFromProfile = async (profile, options, init) => {
366
358
  path: IMDS_PATH + profile
367
359
  })).toString());
368
360
  if (!isImdsCredentials(credentialsResponse)) {
369
- throw new import_property_provider4.CredentialsProviderError("Invalid response received from instance metadata service.", {
361
+ throw new CredentialsProviderError("Invalid response received from instance metadata service.", {
370
362
  logger: init.logger
371
363
  });
372
364
  }