@stacksjs/actions 0.70.15 → 0.70.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/build.js CHANGED
@@ -2,25 +2,25 @@
2
2
  import {
3
3
  generateTypes
4
4
  } from "./generate/index.js";
5
- import"./chunk-vyprc4qf.js";
5
+ import"./chunk-cv02w7e2.js";
6
6
  import"./helpers/vscode-custom-data.js";
7
7
  import"./chunk-494jp8d5.js";
8
- import"./chunk-4abmhfp5.js";
8
+ import"./chunk-kz10a3s9.js";
9
9
  import"./chunk-mdj7x1vs.js";
10
10
  import"./chunk-p0c688mg.js";
11
- import"./chunk-qkm8e752.js";
11
+ import"./chunk-8dsect0a.js";
12
12
  import"./chunk-a13x0e43.js";
13
13
  import"./chunk-mdqphqep.js";
14
14
  import"./chunk-qhh0v93n.js";
15
- import"./chunk-63btjfd6.js";
16
- import"./chunk-7s5qcjkt.js";
15
+ import"./chunk-jdqxwpvc.js";
16
+ import"./chunk-bh25aaf7.js";
17
17
  import"./chunk-bf8bq8pc.js";
18
18
  import"./chunk-b5g5w1hh.js";
19
- import"./chunk-zzerxbrm.js";
20
- import"./chunk-veja9rez.js";
19
+ import"./chunk-0crtxf8d.js";
21
20
  import"./chunk-a7k3cdby.js";
22
21
  import"./chunk-frw3va9v.js";
23
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";
@@ -12,13 +12,16 @@ import {
12
12
  import {
13
13
  require_dist_cjs
14
14
  } from "./chunk-saqpg5nd.js";
15
+ import {
16
+ require_dist_cjs as require_dist_cjs7
17
+ } from "./chunk-2m04vhea.js";
15
18
  import {
16
19
  __commonJS,
17
20
  __require
18
21
  } from "./chunk-9v6qtbez.js";
19
22
 
20
23
  // ../../../../node_modules/@smithy/middleware-serde/dist-cjs/index.js
21
- var require_dist_cjs7 = __commonJS((exports, module) => {
24
+ var require_dist_cjs8 = __commonJS((exports, module) => {
22
25
  var __defProp = Object.defineProperty;
23
26
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
24
27
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -114,7 +117,7 @@ var require_dist_cjs7 = __commonJS((exports, module) => {
114
117
  });
115
118
 
116
119
  // ../../../../node_modules/@smithy/util-middleware/dist-cjs/index.js
117
- var require_dist_cjs8 = __commonJS((exports, module) => {
120
+ var require_dist_cjs9 = __commonJS((exports, module) => {
118
121
  var __defProp = Object.defineProperty;
119
122
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
120
123
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -150,7 +153,7 @@ var require_dist_cjs8 = __commonJS((exports, module) => {
150
153
  });
151
154
 
152
155
  // ../../../../node_modules/@smithy/core/dist-cjs/index.js
153
- var require_dist_cjs9 = __commonJS((exports, module) => {
156
+ var require_dist_cjs10 = __commonJS((exports, module) => {
154
157
  var __defProp = Object.defineProperty;
155
158
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
156
159
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -197,7 +200,7 @@ var require_dist_cjs9 = __commonJS((exports, module) => {
197
200
  module.exports = __toCommonJS(src_exports);
198
201
  var import_types = require_dist_cjs();
199
202
  var getSmithyContext = /* @__PURE__ */ __name((context) => context[import_types.SMITHY_CONTEXT_KEY] || (context[import_types.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
200
- var import_util_middleware = require_dist_cjs8();
203
+ var import_util_middleware = require_dist_cjs9();
201
204
  function convertHttpAuthSchemesToMap(httpAuthSchemes) {
202
205
  const map = /* @__PURE__ */ new Map;
203
206
  for (const scheme of httpAuthSchemes) {
@@ -257,7 +260,7 @@ var require_dist_cjs9 = __commonJS((exports, module) => {
257
260
  }), httpAuthSchemeEndpointRuleSetMiddlewareOptions);
258
261
  }
259
262
  }), "getHttpAuthSchemeEndpointRuleSetPlugin");
260
- var import_middleware_serde = require_dist_cjs7();
263
+ var import_middleware_serde = require_dist_cjs8();
261
264
  var httpAuthSchemeMiddlewareOptions = {
262
265
  step: "serialize",
263
266
  tags: ["HTTP_AUTH_SCHEME"],
@@ -496,7 +499,7 @@ var require_dist_cjs9 = __commonJS((exports, module) => {
496
499
  });
497
500
 
498
501
  // ../../../../node_modules/@smithy/middleware-stack/dist-cjs/index.js
499
- var require_dist_cjs10 = __commonJS((exports, module) => {
502
+ var require_dist_cjs11 = __commonJS((exports, module) => {
500
503
  var __defProp = Object.defineProperty;
501
504
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
502
505
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -786,7 +789,7 @@ var require_dist_cjs10 = __commonJS((exports, module) => {
786
789
  });
787
790
 
788
791
  // ../../../../node_modules/@smithy/smithy-client/dist-cjs/index.js
789
- var require_dist_cjs11 = __commonJS((exports, module) => {
792
+ var require_dist_cjs12 = __commonJS((exports, module) => {
790
793
  var __defProp = Object.defineProperty;
791
794
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
792
795
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -870,7 +873,7 @@ var require_dist_cjs11 = __commonJS((exports, module) => {
870
873
  withBaseException: () => withBaseException
871
874
  });
872
875
  module.exports = __toCommonJS(src_exports);
873
- var import_middleware_stack = require_dist_cjs10();
876
+ var import_middleware_stack = require_dist_cjs11();
874
877
  var Client = class {
875
878
  constructor(config) {
876
879
  this.config = config;
@@ -2467,146 +2470,6 @@ var require_tslib = __commonJS((exports, module) => {
2467
2470
  });
2468
2471
  });
2469
2472
 
2470
- // ../../../../node_modules/@smithy/property-provider/dist-cjs/index.js
2471
- var require_dist_cjs12 = __commonJS((exports, module) => {
2472
- var __defProp = Object.defineProperty;
2473
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
2474
- var __getOwnPropNames = Object.getOwnPropertyNames;
2475
- var __hasOwnProp = Object.prototype.hasOwnProperty;
2476
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
2477
- var __export = (target, all) => {
2478
- for (var name in all)
2479
- __defProp(target, name, { get: all[name], enumerable: true });
2480
- };
2481
- var __copyProps = (to, from, except, desc) => {
2482
- if (from && typeof from === "object" || typeof from === "function") {
2483
- for (let key of __getOwnPropNames(from))
2484
- if (!__hasOwnProp.call(to, key) && key !== except)
2485
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
2486
- }
2487
- return to;
2488
- };
2489
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
2490
- var src_exports = {};
2491
- __export(src_exports, {
2492
- CredentialsProviderError: () => CredentialsProviderError,
2493
- ProviderError: () => ProviderError,
2494
- TokenProviderError: () => TokenProviderError,
2495
- chain: () => chain,
2496
- fromStatic: () => fromStatic,
2497
- memoize: () => memoize
2498
- });
2499
- module.exports = __toCommonJS(src_exports);
2500
- var ProviderError = class _ProviderError extends Error {
2501
- constructor(message, options = true) {
2502
- let logger;
2503
- let tryNextLink = true;
2504
- if (typeof options === "boolean") {
2505
- logger = undefined;
2506
- tryNextLink = options;
2507
- } else if (options != null && typeof options === "object") {
2508
- logger = options.logger;
2509
- tryNextLink = options.tryNextLink ?? true;
2510
- }
2511
- super(message);
2512
- this.name = "ProviderError";
2513
- this.tryNextLink = tryNextLink;
2514
- Object.setPrototypeOf(this, _ProviderError.prototype);
2515
- logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
2516
- }
2517
- static {
2518
- __name(this, "ProviderError");
2519
- }
2520
- static from(error, options = true) {
2521
- return Object.assign(new this(error.message, options), error);
2522
- }
2523
- };
2524
- var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
2525
- constructor(message, options = true) {
2526
- super(message, options);
2527
- this.name = "CredentialsProviderError";
2528
- Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
2529
- }
2530
- static {
2531
- __name(this, "CredentialsProviderError");
2532
- }
2533
- };
2534
- var TokenProviderError = class _TokenProviderError extends ProviderError {
2535
- constructor(message, options = true) {
2536
- super(message, options);
2537
- this.name = "TokenProviderError";
2538
- Object.setPrototypeOf(this, _TokenProviderError.prototype);
2539
- }
2540
- static {
2541
- __name(this, "TokenProviderError");
2542
- }
2543
- };
2544
- var chain = /* @__PURE__ */ __name((...providers) => async () => {
2545
- if (providers.length === 0) {
2546
- throw new ProviderError("No providers in chain");
2547
- }
2548
- let lastProviderError;
2549
- for (const provider of providers) {
2550
- try {
2551
- const credentials = await provider();
2552
- return credentials;
2553
- } catch (err) {
2554
- lastProviderError = err;
2555
- if (err?.tryNextLink) {
2556
- continue;
2557
- }
2558
- throw err;
2559
- }
2560
- }
2561
- throw lastProviderError;
2562
- }, "chain");
2563
- var fromStatic = /* @__PURE__ */ __name((staticValue) => () => Promise.resolve(staticValue), "fromStatic");
2564
- var memoize = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {
2565
- let resolved;
2566
- let pending;
2567
- let hasResult;
2568
- let isConstant = false;
2569
- const coalesceProvider = /* @__PURE__ */ __name(async () => {
2570
- if (!pending) {
2571
- pending = provider();
2572
- }
2573
- try {
2574
- resolved = await pending;
2575
- hasResult = true;
2576
- isConstant = false;
2577
- } finally {
2578
- pending = undefined;
2579
- }
2580
- return resolved;
2581
- }, "coalesceProvider");
2582
- if (isExpired === undefined) {
2583
- return async (options) => {
2584
- if (!hasResult || options?.forceRefresh) {
2585
- resolved = await coalesceProvider();
2586
- }
2587
- return resolved;
2588
- };
2589
- }
2590
- return async (options) => {
2591
- if (!hasResult || options?.forceRefresh) {
2592
- resolved = await coalesceProvider();
2593
- }
2594
- if (isConstant) {
2595
- return resolved;
2596
- }
2597
- if (requiresRefresh && !requiresRefresh(resolved)) {
2598
- isConstant = true;
2599
- return resolved;
2600
- }
2601
- if (isExpired(resolved)) {
2602
- await coalesceProvider();
2603
- return resolved;
2604
- }
2605
- return resolved;
2606
- };
2607
- }, "memoize");
2608
- });
2609
-
2610
2473
  // ../../../../node_modules/@smithy/signature-v4/dist-cjs/index.js
2611
2474
  var require_dist_cjs13 = __commonJS((exports, module) => {
2612
2475
  var __defProp = Object.defineProperty;
@@ -2640,7 +2503,7 @@ var require_dist_cjs13 = __commonJS((exports, module) => {
2640
2503
  prepareRequest: () => prepareRequest
2641
2504
  });
2642
2505
  module.exports = __toCommonJS(src_exports);
2643
- var import_util_middleware = require_dist_cjs8();
2506
+ var import_util_middleware = require_dist_cjs9();
2644
2507
  var import_util_utf84 = require_dist_cjs4();
2645
2508
  var ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm";
2646
2509
  var CREDENTIAL_QUERY_PARAM = "X-Amz-Credential";
@@ -3263,8 +3126,8 @@ var require_httpAuthSchemes = __commonJS((exports, module) => {
3263
3126
  return signedRequest;
3264
3127
  }
3265
3128
  };
3266
- var import_core = require_dist_cjs9();
3267
- var import_property_provider = require_dist_cjs12();
3129
+ var import_core = require_dist_cjs10();
3130
+ var import_property_provider = require_dist_cjs7();
3268
3131
  var resolveAwsSdkSigV4AConfig = /* @__PURE__ */ __name((config) => {
3269
3132
  config.sigv4aSigningRegionSet = (0, import_core.normalizeProvider)(config.sigv4aSigningRegionSet);
3270
3133
  return config;
@@ -3289,7 +3152,7 @@ var require_httpAuthSchemes = __commonJS((exports, module) => {
3289
3152
  default: undefined
3290
3153
  };
3291
3154
  var import_client = require_client();
3292
- var import_core2 = require_dist_cjs9();
3155
+ var import_core2 = require_dist_cjs10();
3293
3156
  var import_signature_v4 = require_dist_cjs13();
3294
3157
  var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
3295
3158
  let inputCredentials = config.credentials;
@@ -5162,7 +5025,7 @@ var require_protocols2 = __commonJS((exports, module) => {
5162
5025
  }
5163
5026
  return val2;
5164
5027
  }, "_toNum");
5165
- var import_smithy_client = require_dist_cjs11();
5028
+ var import_smithy_client = require_dist_cjs12();
5166
5029
  var awsExpectUnion = /* @__PURE__ */ __name((value) => {
5167
5030
  if (value == null) {
5168
5031
  return;
@@ -5172,7 +5035,7 @@ var require_protocols2 = __commonJS((exports, module) => {
5172
5035
  }
5173
5036
  return (0, import_smithy_client.expectUnion)(value);
5174
5037
  }, "awsExpectUnion");
5175
- var import_smithy_client2 = require_dist_cjs11();
5038
+ var import_smithy_client2 = require_dist_cjs12();
5176
5039
  var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client2.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
5177
5040
  var parseJsonBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5178
5041
  if (encoded.length) {
@@ -5223,7 +5086,7 @@ var require_protocols2 = __commonJS((exports, module) => {
5223
5086
  return sanitizeErrorCode(data["__type"]);
5224
5087
  }
5225
5088
  }, "loadRestJsonErrorCode");
5226
- var import_smithy_client3 = require_dist_cjs11();
5089
+ var import_smithy_client3 = require_dist_cjs12();
5227
5090
  var import_fast_xml_parser = require_fxp();
5228
5091
  var parseXmlBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
5229
5092
  if (encoded.length) {
@@ -5761,4 +5624,4 @@ var require_dist = __commonJS((exports) => {
5761
5624
  }
5762
5625
  });
5763
5626
 
5764
- export { require_dist_cjs8 as require_dist_cjs, require_dist_cjs7 as require_dist_cjs1, require_dist_cjs9 as require_dist_cjs2, require_tslib, require_dist_cjs12 as require_dist_cjs3, require_dist_cjs11 as require_dist_cjs4, require_dist_cjs14 as require_dist_cjs5, require_dist };
5627
+ export { require_dist_cjs9 as require_dist_cjs, require_dist_cjs8 as require_dist_cjs1, require_dist_cjs10 as require_dist_cjs2, require_tslib, require_dist_cjs12 as require_dist_cjs3, require_dist_cjs14 as require_dist_cjs4, require_dist };
@@ -0,0 +1,145 @@
1
+ import {
2
+ __commonJS
3
+ } from "./chunk-9v6qtbez.js";
4
+
5
+ // ../../../../node_modules/@smithy/property-provider/dist-cjs/index.js
6
+ var require_dist_cjs = __commonJS((exports, module) => {
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
12
+ var __export = (target, all) => {
13
+ for (var name in all)
14
+ __defProp(target, name, { get: all[name], enumerable: true });
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
25
+ var src_exports = {};
26
+ __export(src_exports, {
27
+ CredentialsProviderError: () => CredentialsProviderError,
28
+ ProviderError: () => ProviderError,
29
+ TokenProviderError: () => TokenProviderError,
30
+ chain: () => chain,
31
+ fromStatic: () => fromStatic,
32
+ memoize: () => memoize
33
+ });
34
+ module.exports = __toCommonJS(src_exports);
35
+ var ProviderError = class _ProviderError extends Error {
36
+ constructor(message, options = true) {
37
+ let logger;
38
+ let tryNextLink = true;
39
+ if (typeof options === "boolean") {
40
+ logger = undefined;
41
+ tryNextLink = options;
42
+ } else if (options != null && typeof options === "object") {
43
+ logger = options.logger;
44
+ tryNextLink = options.tryNextLink ?? true;
45
+ }
46
+ super(message);
47
+ this.name = "ProviderError";
48
+ this.tryNextLink = tryNextLink;
49
+ Object.setPrototypeOf(this, _ProviderError.prototype);
50
+ logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
51
+ }
52
+ static {
53
+ __name(this, "ProviderError");
54
+ }
55
+ static from(error, options = true) {
56
+ return Object.assign(new this(error.message, options), error);
57
+ }
58
+ };
59
+ var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
60
+ constructor(message, options = true) {
61
+ super(message, options);
62
+ this.name = "CredentialsProviderError";
63
+ Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
64
+ }
65
+ static {
66
+ __name(this, "CredentialsProviderError");
67
+ }
68
+ };
69
+ var TokenProviderError = class _TokenProviderError extends ProviderError {
70
+ constructor(message, options = true) {
71
+ super(message, options);
72
+ this.name = "TokenProviderError";
73
+ Object.setPrototypeOf(this, _TokenProviderError.prototype);
74
+ }
75
+ static {
76
+ __name(this, "TokenProviderError");
77
+ }
78
+ };
79
+ var chain = /* @__PURE__ */ __name((...providers) => async () => {
80
+ if (providers.length === 0) {
81
+ throw new ProviderError("No providers in chain");
82
+ }
83
+ let lastProviderError;
84
+ for (const provider of providers) {
85
+ try {
86
+ const credentials = await provider();
87
+ return credentials;
88
+ } catch (err) {
89
+ lastProviderError = err;
90
+ if (err?.tryNextLink) {
91
+ continue;
92
+ }
93
+ throw err;
94
+ }
95
+ }
96
+ throw lastProviderError;
97
+ }, "chain");
98
+ var fromStatic = /* @__PURE__ */ __name((staticValue) => () => Promise.resolve(staticValue), "fromStatic");
99
+ var memoize = /* @__PURE__ */ __name((provider, isExpired, requiresRefresh) => {
100
+ let resolved;
101
+ let pending;
102
+ let hasResult;
103
+ let isConstant = false;
104
+ const coalesceProvider = /* @__PURE__ */ __name(async () => {
105
+ if (!pending) {
106
+ pending = provider();
107
+ }
108
+ try {
109
+ resolved = await pending;
110
+ hasResult = true;
111
+ isConstant = false;
112
+ } finally {
113
+ pending = undefined;
114
+ }
115
+ return resolved;
116
+ }, "coalesceProvider");
117
+ if (isExpired === undefined) {
118
+ return async (options) => {
119
+ if (!hasResult || options?.forceRefresh) {
120
+ resolved = await coalesceProvider();
121
+ }
122
+ return resolved;
123
+ };
124
+ }
125
+ return async (options) => {
126
+ if (!hasResult || options?.forceRefresh) {
127
+ resolved = await coalesceProvider();
128
+ }
129
+ if (isConstant) {
130
+ return resolved;
131
+ }
132
+ if (requiresRefresh && !requiresRefresh(resolved)) {
133
+ isConstant = true;
134
+ return resolved;
135
+ }
136
+ if (isExpired(resolved)) {
137
+ await coalesceProvider();
138
+ return resolved;
139
+ }
140
+ return resolved;
141
+ };
142
+ }, "memoize");
143
+ });
144
+
145
+ export { require_dist_cjs };
@@ -3,47 +3,51 @@ import {
3
3
  getProfileName,
4
4
  parseKnownFiles
5
5
  } from "./chunk-bf8bq8pc.js";
6
- import {
7
- CredentialsProviderError,
8
- chain
9
- } from "./chunk-zzerxbrm.js";
10
6
  import {
11
7
  require_client
12
8
  } from "./chunk-frw3va9v.js";
13
9
  import"./chunk-saqpg5nd.js";
10
+ import {
11
+ require_dist_cjs
12
+ } from "./chunk-2m04vhea.js";
14
13
  import {
15
14
  __require,
16
15
  __toESM
17
16
  } from "./chunk-9v6qtbez.js";
18
17
 
18
+ // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js
19
+ var import_property_provider3 = __toESM(require_dist_cjs(), 1);
20
+
19
21
  // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
20
22
  var import_client2 = __toESM(require_client(), 1);
23
+ var import_property_provider2 = __toESM(require_dist_cjs(), 1);
21
24
 
22
25
  // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js
23
26
  var import_client = __toESM(require_client(), 1);
27
+ var import_property_provider = __toESM(require_dist_cjs(), 1);
24
28
  var resolveCredentialSource = (credentialSource, profileName, logger) => {
25
29
  const sourceProvidersMap = {
26
30
  EcsContainer: async (options) => {
27
- const { fromHttp } = await import("./chunk-q81mf99q.js");
28
- const { fromContainerMetadata } = await import("./chunk-t5em30ak.js");
31
+ const { fromHttp } = await import("./chunk-wvzpmd54.js");
32
+ const { fromContainerMetadata } = await import("./chunk-9menqd9a.js");
29
33
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
30
- return async () => chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
34
+ return async () => import_property_provider.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
31
35
  },
32
36
  Ec2InstanceMetadata: async (options) => {
33
37
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
34
- const { fromInstanceMetadata } = await import("./chunk-t5em30ak.js");
38
+ const { fromInstanceMetadata } = await import("./chunk-9menqd9a.js");
35
39
  return async () => fromInstanceMetadata(options)().then(setNamedProvider);
36
40
  },
37
41
  Environment: async (options) => {
38
42
  logger?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");
39
- const { fromEnv } = await import("./chunk-qkm8e752.js");
43
+ const { fromEnv } = await import("./chunk-8dsect0a.js");
40
44
  return async () => fromEnv(options)().then(setNamedProvider);
41
45
  }
42
46
  };
43
47
  if (credentialSource in sourceProvidersMap) {
44
48
  return sourceProvidersMap[credentialSource];
45
49
  } else {
46
- throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
50
+ throw new import_property_provider.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, expected EcsContainer or Ec2InstanceMetadata or Environment.`, { logger });
47
51
  }
48
52
  };
49
53
  var setNamedProvider = (creds) => import_client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_NAMED_PROVIDER", "p");
@@ -71,7 +75,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
71
75
  const profileData = profiles[profileName];
72
76
  const { source_profile, region } = profileData;
73
77
  if (!options.roleAssumer) {
74
- const { getDefaultRoleAssumer } = await import("./chunk-9exgwfkw.js");
78
+ const { getDefaultRoleAssumer } = await import("./chunk-gdzs9jf4.js");
75
79
  options.roleAssumer = getDefaultRoleAssumer({
76
80
  ...options.clientConfig,
77
81
  credentialProviderLogger: options.logger,
@@ -82,7 +86,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
82
86
  }, options.clientPlugins);
83
87
  }
84
88
  if (source_profile && source_profile in visitedProfiles) {
85
- throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
89
+ throw new import_property_provider2.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${getProfileName(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "), { logger: options.logger });
86
90
  }
87
91
  options.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`);
88
92
  const sourceCredsProvider = source_profile ? resolveProfileData(source_profile, profiles, options, {
@@ -101,7 +105,7 @@ var resolveAssumeRoleCredentials = async (profileName, profiles, options, visite
101
105
  const { mfa_serial } = profileData;
102
106
  if (mfa_serial) {
103
107
  if (!options.mfaCodeProvider) {
104
- throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
108
+ throw new import_property_provider2.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
105
109
  }
106
110
  params.SerialNumber = mfa_serial;
107
111
  params.TokenCode = await options.mfaCodeProvider(mfa_serial);
@@ -117,7 +121,7 @@ var isCredentialSourceWithoutRoleArn = (section) => {
117
121
  // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js
118
122
  var import_client3 = __toESM(require_client(), 1);
119
123
  var isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string";
120
- var resolveProcessCredentials = async (options, profile) => import("./chunk-76zhb40c.js").then(({ fromProcess }) => fromProcess({
124
+ var resolveProcessCredentials = async (options, profile) => import("./chunk-6xeh1279.js").then(({ fromProcess }) => fromProcess({
121
125
  ...options,
122
126
  profile
123
127
  })().then((creds) => import_client3.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v")));
@@ -125,7 +129,7 @@ var resolveProcessCredentials = async (options, profile) => import("./chunk-76zh
125
129
  // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js
126
130
  var import_client4 = __toESM(require_client(), 1);
127
131
  var resolveSsoCredentials = async (profile, profileData, options = {}) => {
128
- const { fromSSO } = await import("./chunk-1ntvvbhr.js");
132
+ const { fromSSO } = await import("./chunk-wn25qps4.js");
129
133
  return fromSSO({
130
134
  profile,
131
135
  logger: options.logger,
@@ -159,7 +163,7 @@ var resolveStaticCredentials = async (profile, options) => {
159
163
  // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js
160
164
  var import_client6 = __toESM(require_client(), 1);
161
165
  var isWebIdentityProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1;
162
- var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-zsm2c35w.js").then(({ fromTokenFile }) => fromTokenFile({
166
+ var resolveWebIdentityCredentials = async (profile, options) => import("./chunk-f1cxwjkf.js").then(({ fromTokenFile }) => fromTokenFile({
163
167
  webIdentityTokenFile: profile.web_identity_token_file,
164
168
  roleArn: profile.role_arn,
165
169
  roleSessionName: profile.role_session_name,
@@ -189,7 +193,7 @@ var resolveProfileData = async (profileName, profiles, options, visitedProfiles
189
193
  if (isSsoProfile(data)) {
190
194
  return await resolveSsoCredentials(profileName, data, options);
191
195
  }
192
- throw new CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
196
+ throw new import_property_provider3.CredentialsProviderError(`Could not resolve credentials using profile: [${profileName}] in configuration/credentials file(s).`, { logger: options.logger });
193
197
  };
194
198
 
195
199
  // ../../../../node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js
@@ -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,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,