@aws-sdk/client-sts 3.141.0 → 3.142.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [3.142.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.141.0...v3.142.0) (2022-08-02)
7
+
8
+
9
+ ### Features
10
+
11
+ * **codegen:** general data mapping function ([#3830](https://github.com/aws/aws-sdk-js-v3/issues/3830)) ([9417eae](https://github.com/aws/aws-sdk-js-v3/commit/9417eae722806799fb4c15c07921574268c1165c))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.141.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.140.0...v3.141.0) (2022-08-01)
7
18
 
8
19
 
@@ -130,7 +130,6 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
130
130
  ...output,
131
131
  body: await parseBody(output.body, context),
132
132
  };
133
- let response;
134
133
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
135
134
  switch (errorCode) {
136
135
  case "ExpiredTokenException":
@@ -147,14 +146,12 @@ const deserializeAws_queryAssumeRoleCommandError = async (output, context) => {
147
146
  throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
148
147
  default:
149
148
  const parsedBody = parsedOutput.body;
150
- const $metadata = deserializeMetadata(output);
151
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
152
- response = new STSServiceException_1.STSServiceException({
153
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
154
- $fault: "client",
155
- $metadata,
149
+ (0, smithy_client_1.throwDefaultError)({
150
+ output,
151
+ parsedBody: parsedBody.Error,
152
+ exceptionCtor: STSServiceException_1.STSServiceException,
153
+ errorCode,
156
154
  });
157
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
158
155
  }
159
156
  };
160
157
  const deserializeAws_queryAssumeRoleWithSAMLCommand = async (output, context) => {
@@ -176,7 +173,6 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
176
173
  ...output,
177
174
  body: await parseBody(output.body, context),
178
175
  };
179
- let response;
180
176
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
181
177
  switch (errorCode) {
182
178
  case "ExpiredTokenException":
@@ -199,14 +195,12 @@ const deserializeAws_queryAssumeRoleWithSAMLCommandError = async (output, contex
199
195
  throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
200
196
  default:
201
197
  const parsedBody = parsedOutput.body;
202
- const $metadata = deserializeMetadata(output);
203
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
204
- response = new STSServiceException_1.STSServiceException({
205
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
206
- $fault: "client",
207
- $metadata,
198
+ (0, smithy_client_1.throwDefaultError)({
199
+ output,
200
+ parsedBody: parsedBody.Error,
201
+ exceptionCtor: STSServiceException_1.STSServiceException,
202
+ errorCode,
208
203
  });
209
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
210
204
  }
211
205
  };
212
206
  const deserializeAws_queryAssumeRoleWithWebIdentityCommand = async (output, context) => {
@@ -228,7 +222,6 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
228
222
  ...output,
229
223
  body: await parseBody(output.body, context),
230
224
  };
231
- let response;
232
225
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
233
226
  switch (errorCode) {
234
227
  case "ExpiredTokenException":
@@ -254,14 +247,12 @@ const deserializeAws_queryAssumeRoleWithWebIdentityCommandError = async (output,
254
247
  throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
255
248
  default:
256
249
  const parsedBody = parsedOutput.body;
257
- const $metadata = deserializeMetadata(output);
258
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
259
- response = new STSServiceException_1.STSServiceException({
260
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
261
- $fault: "client",
262
- $metadata,
250
+ (0, smithy_client_1.throwDefaultError)({
251
+ output,
252
+ parsedBody: parsedBody.Error,
253
+ exceptionCtor: STSServiceException_1.STSServiceException,
254
+ errorCode,
263
255
  });
264
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
265
256
  }
266
257
  };
267
258
  const deserializeAws_queryDecodeAuthorizationMessageCommand = async (output, context) => {
@@ -283,7 +274,6 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
283
274
  ...output,
284
275
  body: await parseBody(output.body, context),
285
276
  };
286
- let response;
287
277
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
288
278
  switch (errorCode) {
289
279
  case "InvalidAuthorizationMessageException":
@@ -291,14 +281,12 @@ const deserializeAws_queryDecodeAuthorizationMessageCommandError = async (output
291
281
  throw await deserializeAws_queryInvalidAuthorizationMessageExceptionResponse(parsedOutput, context);
292
282
  default:
293
283
  const parsedBody = parsedOutput.body;
294
- const $metadata = deserializeMetadata(output);
295
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
296
- response = new STSServiceException_1.STSServiceException({
297
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
298
- $fault: "client",
299
- $metadata,
284
+ (0, smithy_client_1.throwDefaultError)({
285
+ output,
286
+ parsedBody: parsedBody.Error,
287
+ exceptionCtor: STSServiceException_1.STSServiceException,
288
+ errorCode,
300
289
  });
301
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
302
290
  }
303
291
  };
304
292
  const deserializeAws_queryGetAccessKeyInfoCommand = async (output, context) => {
@@ -320,20 +308,14 @@ const deserializeAws_queryGetAccessKeyInfoCommandError = async (output, context)
320
308
  ...output,
321
309
  body: await parseBody(output.body, context),
322
310
  };
323
- let response;
324
311
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
325
- switch (errorCode) {
326
- default:
327
- const parsedBody = parsedOutput.body;
328
- const $metadata = deserializeMetadata(output);
329
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
330
- response = new STSServiceException_1.STSServiceException({
331
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
332
- $fault: "client",
333
- $metadata,
334
- });
335
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
336
- }
312
+ const parsedBody = parsedOutput.body;
313
+ (0, smithy_client_1.throwDefaultError)({
314
+ output,
315
+ parsedBody: parsedBody.Error,
316
+ exceptionCtor: STSServiceException_1.STSServiceException,
317
+ errorCode,
318
+ });
337
319
  };
338
320
  const deserializeAws_queryGetCallerIdentityCommand = async (output, context) => {
339
321
  if (output.statusCode >= 300) {
@@ -354,20 +336,14 @@ const deserializeAws_queryGetCallerIdentityCommandError = async (output, context
354
336
  ...output,
355
337
  body: await parseBody(output.body, context),
356
338
  };
357
- let response;
358
339
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
359
- switch (errorCode) {
360
- default:
361
- const parsedBody = parsedOutput.body;
362
- const $metadata = deserializeMetadata(output);
363
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
364
- response = new STSServiceException_1.STSServiceException({
365
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
366
- $fault: "client",
367
- $metadata,
368
- });
369
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
370
- }
340
+ const parsedBody = parsedOutput.body;
341
+ (0, smithy_client_1.throwDefaultError)({
342
+ output,
343
+ parsedBody: parsedBody.Error,
344
+ exceptionCtor: STSServiceException_1.STSServiceException,
345
+ errorCode,
346
+ });
371
347
  };
372
348
  const deserializeAws_queryGetFederationTokenCommand = async (output, context) => {
373
349
  if (output.statusCode >= 300) {
@@ -388,7 +364,6 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
388
364
  ...output,
389
365
  body: await parseBody(output.body, context),
390
366
  };
391
- let response;
392
367
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
393
368
  switch (errorCode) {
394
369
  case "MalformedPolicyDocumentException":
@@ -402,14 +377,12 @@ const deserializeAws_queryGetFederationTokenCommandError = async (output, contex
402
377
  throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
403
378
  default:
404
379
  const parsedBody = parsedOutput.body;
405
- const $metadata = deserializeMetadata(output);
406
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
407
- response = new STSServiceException_1.STSServiceException({
408
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
409
- $fault: "client",
410
- $metadata,
380
+ (0, smithy_client_1.throwDefaultError)({
381
+ output,
382
+ parsedBody: parsedBody.Error,
383
+ exceptionCtor: STSServiceException_1.STSServiceException,
384
+ errorCode,
411
385
  });
412
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
413
386
  }
414
387
  };
415
388
  const deserializeAws_queryGetSessionTokenCommand = async (output, context) => {
@@ -431,7 +404,6 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
431
404
  ...output,
432
405
  body: await parseBody(output.body, context),
433
406
  };
434
- let response;
435
407
  const errorCode = loadQueryErrorCode(output, parsedOutput.body);
436
408
  switch (errorCode) {
437
409
  case "RegionDisabledException":
@@ -439,14 +411,12 @@ const deserializeAws_queryGetSessionTokenCommandError = async (output, context)
439
411
  throw await deserializeAws_queryRegionDisabledExceptionResponse(parsedOutput, context);
440
412
  default:
441
413
  const parsedBody = parsedOutput.body;
442
- const $metadata = deserializeMetadata(output);
443
- const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
444
- response = new STSServiceException_1.STSServiceException({
445
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
446
- $fault: "client",
447
- $metadata,
414
+ (0, smithy_client_1.throwDefaultError)({
415
+ output,
416
+ parsedBody: parsedBody.Error,
417
+ exceptionCtor: STSServiceException_1.STSServiceException,
418
+ errorCode,
448
419
  });
449
- throw (0, smithy_client_1.decorateServiceException)(response, parsedBody.Error);
450
420
  }
451
421
  };
452
422
  const deserializeAws_queryExpiredTokenExceptionResponse = async (parsedOutput, context) => {
@@ -523,118 +493,118 @@ const deserializeAws_queryRegionDisabledExceptionResponse = async (parsedOutput,
523
493
  };
524
494
  const serializeAws_queryAssumeRoleRequest = (input, context) => {
525
495
  const entries = {};
526
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
496
+ if (input.RoleArn != null) {
527
497
  entries["RoleArn"] = input.RoleArn;
528
498
  }
529
- if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) {
499
+ if (input.RoleSessionName != null) {
530
500
  entries["RoleSessionName"] = input.RoleSessionName;
531
501
  }
532
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
502
+ if (input.PolicyArns != null) {
533
503
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
534
504
  Object.entries(memberEntries).forEach(([key, value]) => {
535
505
  const loc = `PolicyArns.${key}`;
536
506
  entries[loc] = value;
537
507
  });
538
508
  }
539
- if (input.Policy !== undefined && input.Policy !== null) {
509
+ if (input.Policy != null) {
540
510
  entries["Policy"] = input.Policy;
541
511
  }
542
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
512
+ if (input.DurationSeconds != null) {
543
513
  entries["DurationSeconds"] = input.DurationSeconds;
544
514
  }
545
- if (input.Tags !== undefined && input.Tags !== null) {
515
+ if (input.Tags != null) {
546
516
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
547
517
  Object.entries(memberEntries).forEach(([key, value]) => {
548
518
  const loc = `Tags.${key}`;
549
519
  entries[loc] = value;
550
520
  });
551
521
  }
552
- if (input.TransitiveTagKeys !== undefined && input.TransitiveTagKeys !== null) {
522
+ if (input.TransitiveTagKeys != null) {
553
523
  const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
554
524
  Object.entries(memberEntries).forEach(([key, value]) => {
555
525
  const loc = `TransitiveTagKeys.${key}`;
556
526
  entries[loc] = value;
557
527
  });
558
528
  }
559
- if (input.ExternalId !== undefined && input.ExternalId !== null) {
529
+ if (input.ExternalId != null) {
560
530
  entries["ExternalId"] = input.ExternalId;
561
531
  }
562
- if (input.SerialNumber !== undefined && input.SerialNumber !== null) {
532
+ if (input.SerialNumber != null) {
563
533
  entries["SerialNumber"] = input.SerialNumber;
564
534
  }
565
- if (input.TokenCode !== undefined && input.TokenCode !== null) {
535
+ if (input.TokenCode != null) {
566
536
  entries["TokenCode"] = input.TokenCode;
567
537
  }
568
- if (input.SourceIdentity !== undefined && input.SourceIdentity !== null) {
538
+ if (input.SourceIdentity != null) {
569
539
  entries["SourceIdentity"] = input.SourceIdentity;
570
540
  }
571
541
  return entries;
572
542
  };
573
543
  const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
574
544
  const entries = {};
575
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
545
+ if (input.RoleArn != null) {
576
546
  entries["RoleArn"] = input.RoleArn;
577
547
  }
578
- if (input.PrincipalArn !== undefined && input.PrincipalArn !== null) {
548
+ if (input.PrincipalArn != null) {
579
549
  entries["PrincipalArn"] = input.PrincipalArn;
580
550
  }
581
- if (input.SAMLAssertion !== undefined && input.SAMLAssertion !== null) {
551
+ if (input.SAMLAssertion != null) {
582
552
  entries["SAMLAssertion"] = input.SAMLAssertion;
583
553
  }
584
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
554
+ if (input.PolicyArns != null) {
585
555
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
586
556
  Object.entries(memberEntries).forEach(([key, value]) => {
587
557
  const loc = `PolicyArns.${key}`;
588
558
  entries[loc] = value;
589
559
  });
590
560
  }
591
- if (input.Policy !== undefined && input.Policy !== null) {
561
+ if (input.Policy != null) {
592
562
  entries["Policy"] = input.Policy;
593
563
  }
594
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
564
+ if (input.DurationSeconds != null) {
595
565
  entries["DurationSeconds"] = input.DurationSeconds;
596
566
  }
597
567
  return entries;
598
568
  };
599
569
  const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
600
570
  const entries = {};
601
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
571
+ if (input.RoleArn != null) {
602
572
  entries["RoleArn"] = input.RoleArn;
603
573
  }
604
- if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) {
574
+ if (input.RoleSessionName != null) {
605
575
  entries["RoleSessionName"] = input.RoleSessionName;
606
576
  }
607
- if (input.WebIdentityToken !== undefined && input.WebIdentityToken !== null) {
577
+ if (input.WebIdentityToken != null) {
608
578
  entries["WebIdentityToken"] = input.WebIdentityToken;
609
579
  }
610
- if (input.ProviderId !== undefined && input.ProviderId !== null) {
580
+ if (input.ProviderId != null) {
611
581
  entries["ProviderId"] = input.ProviderId;
612
582
  }
613
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
583
+ if (input.PolicyArns != null) {
614
584
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
615
585
  Object.entries(memberEntries).forEach(([key, value]) => {
616
586
  const loc = `PolicyArns.${key}`;
617
587
  entries[loc] = value;
618
588
  });
619
589
  }
620
- if (input.Policy !== undefined && input.Policy !== null) {
590
+ if (input.Policy != null) {
621
591
  entries["Policy"] = input.Policy;
622
592
  }
623
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
593
+ if (input.DurationSeconds != null) {
624
594
  entries["DurationSeconds"] = input.DurationSeconds;
625
595
  }
626
596
  return entries;
627
597
  };
628
598
  const serializeAws_queryDecodeAuthorizationMessageRequest = (input, context) => {
629
599
  const entries = {};
630
- if (input.EncodedMessage !== undefined && input.EncodedMessage !== null) {
600
+ if (input.EncodedMessage != null) {
631
601
  entries["EncodedMessage"] = input.EncodedMessage;
632
602
  }
633
603
  return entries;
634
604
  };
635
605
  const serializeAws_queryGetAccessKeyInfoRequest = (input, context) => {
636
606
  const entries = {};
637
- if (input.AccessKeyId !== undefined && input.AccessKeyId !== null) {
607
+ if (input.AccessKeyId != null) {
638
608
  entries["AccessKeyId"] = input.AccessKeyId;
639
609
  }
640
610
  return entries;
@@ -645,23 +615,23 @@ const serializeAws_queryGetCallerIdentityRequest = (input, context) => {
645
615
  };
646
616
  const serializeAws_queryGetFederationTokenRequest = (input, context) => {
647
617
  const entries = {};
648
- if (input.Name !== undefined && input.Name !== null) {
618
+ if (input.Name != null) {
649
619
  entries["Name"] = input.Name;
650
620
  }
651
- if (input.Policy !== undefined && input.Policy !== null) {
621
+ if (input.Policy != null) {
652
622
  entries["Policy"] = input.Policy;
653
623
  }
654
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
624
+ if (input.PolicyArns != null) {
655
625
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
656
626
  Object.entries(memberEntries).forEach(([key, value]) => {
657
627
  const loc = `PolicyArns.${key}`;
658
628
  entries[loc] = value;
659
629
  });
660
630
  }
661
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
631
+ if (input.DurationSeconds != null) {
662
632
  entries["DurationSeconds"] = input.DurationSeconds;
663
633
  }
664
- if (input.Tags !== undefined && input.Tags !== null) {
634
+ if (input.Tags != null) {
665
635
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
666
636
  Object.entries(memberEntries).forEach(([key, value]) => {
667
637
  const loc = `Tags.${key}`;
@@ -672,13 +642,13 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
672
642
  };
673
643
  const serializeAws_queryGetSessionTokenRequest = (input, context) => {
674
644
  const entries = {};
675
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
645
+ if (input.DurationSeconds != null) {
676
646
  entries["DurationSeconds"] = input.DurationSeconds;
677
647
  }
678
- if (input.SerialNumber !== undefined && input.SerialNumber !== null) {
648
+ if (input.SerialNumber != null) {
679
649
  entries["SerialNumber"] = input.SerialNumber;
680
650
  }
681
- if (input.TokenCode !== undefined && input.TokenCode !== null) {
651
+ if (input.TokenCode != null) {
682
652
  entries["TokenCode"] = input.TokenCode;
683
653
  }
684
654
  return entries;
@@ -700,17 +670,17 @@ const serializeAws_querypolicyDescriptorListType = (input, context) => {
700
670
  };
701
671
  const serializeAws_queryPolicyDescriptorType = (input, context) => {
702
672
  const entries = {};
703
- if (input.arn !== undefined && input.arn !== null) {
673
+ if (input.arn != null) {
704
674
  entries["arn"] = input.arn;
705
675
  }
706
676
  return entries;
707
677
  };
708
678
  const serializeAws_queryTag = (input, context) => {
709
679
  const entries = {};
710
- if (input.Key !== undefined && input.Key !== null) {
680
+ if (input.Key != null) {
711
681
  entries["Key"] = input.Key;
712
682
  }
713
- if (input.Value !== undefined && input.Value !== null) {
683
+ if (input.Value != null) {
714
684
  entries["Value"] = input.Value;
715
685
  }
716
686
  return entries;
@@ -1,6 +1,6 @@
1
1
  import { __assign, __awaiter, __generator, __read, __values } from "tslib";
2
2
  import { HttpRequest as __HttpRequest } from "@aws-sdk/protocol-http";
3
- import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, } from "@aws-sdk/smithy-client";
3
+ import { decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTime as __parseRfc3339DateTime, strictParseInt32 as __strictParseInt32, throwDefaultError, } from "@aws-sdk/smithy-client";
4
4
  import { decodeHTML } from "entities";
5
5
  import { parse as xmlParse } from "fast-xml-parser";
6
6
  import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0";
@@ -104,7 +104,7 @@ export var deserializeAws_queryAssumeRoleCommand = function (output, context) {
104
104
  });
105
105
  }); };
106
106
  var deserializeAws_queryAssumeRoleCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
107
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
107
+ var parsedOutput, _a, errorCode, _b, parsedBody;
108
108
  var _c;
109
109
  return __generator(this, function (_d) {
110
110
  switch (_d.label) {
@@ -137,14 +137,14 @@ var deserializeAws_queryAssumeRoleCommandError = function (output, context) { re
137
137
  case 9: throw _d.sent();
138
138
  case 10:
139
139
  parsedBody = parsedOutput.body;
140
- $metadata = deserializeMetadata(output);
141
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
142
- response = new __BaseException({
143
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
144
- $fault: "client",
145
- $metadata: $metadata,
140
+ throwDefaultError({
141
+ output: output,
142
+ parsedBody: parsedBody.Error,
143
+ exceptionCtor: __BaseException,
144
+ errorCode: errorCode,
146
145
  });
147
- throw __decorateServiceException(response, parsedBody.Error);
146
+ _d.label = 11;
147
+ case 11: return [2];
148
148
  }
149
149
  });
150
150
  }); };
@@ -167,7 +167,7 @@ export var deserializeAws_queryAssumeRoleWithSAMLCommand = function (output, con
167
167
  });
168
168
  }); };
169
169
  var deserializeAws_queryAssumeRoleWithSAMLCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
170
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
170
+ var parsedOutput, _a, errorCode, _b, parsedBody;
171
171
  var _c;
172
172
  return __generator(this, function (_d) {
173
173
  switch (_d.label) {
@@ -208,14 +208,14 @@ var deserializeAws_queryAssumeRoleWithSAMLCommandError = function (output, conte
208
208
  case 13: throw _d.sent();
209
209
  case 14:
210
210
  parsedBody = parsedOutput.body;
211
- $metadata = deserializeMetadata(output);
212
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
213
- response = new __BaseException({
214
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
215
- $fault: "client",
216
- $metadata: $metadata,
211
+ throwDefaultError({
212
+ output: output,
213
+ parsedBody: parsedBody.Error,
214
+ exceptionCtor: __BaseException,
215
+ errorCode: errorCode,
217
216
  });
218
- throw __decorateServiceException(response, parsedBody.Error);
217
+ _d.label = 15;
218
+ case 15: return [2];
219
219
  }
220
220
  });
221
221
  }); };
@@ -238,7 +238,7 @@ export var deserializeAws_queryAssumeRoleWithWebIdentityCommand = function (outp
238
238
  });
239
239
  }); };
240
240
  var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
241
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
241
+ var parsedOutput, _a, errorCode, _b, parsedBody;
242
242
  var _c;
243
243
  return __generator(this, function (_d) {
244
244
  switch (_d.label) {
@@ -283,14 +283,14 @@ var deserializeAws_queryAssumeRoleWithWebIdentityCommandError = function (output
283
283
  case 15: throw _d.sent();
284
284
  case 16:
285
285
  parsedBody = parsedOutput.body;
286
- $metadata = deserializeMetadata(output);
287
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
288
- response = new __BaseException({
289
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
290
- $fault: "client",
291
- $metadata: $metadata,
286
+ throwDefaultError({
287
+ output: output,
288
+ parsedBody: parsedBody.Error,
289
+ exceptionCtor: __BaseException,
290
+ errorCode: errorCode,
292
291
  });
293
- throw __decorateServiceException(response, parsedBody.Error);
292
+ _d.label = 17;
293
+ case 17: return [2];
294
294
  }
295
295
  });
296
296
  }); };
@@ -313,7 +313,7 @@ export var deserializeAws_queryDecodeAuthorizationMessageCommand = function (out
313
313
  });
314
314
  }); };
315
315
  var deserializeAws_queryDecodeAuthorizationMessageCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
316
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
316
+ var parsedOutput, _a, errorCode, _b, parsedBody;
317
317
  var _c;
318
318
  return __generator(this, function (_d) {
319
319
  switch (_d.label) {
@@ -334,14 +334,14 @@ var deserializeAws_queryDecodeAuthorizationMessageCommandError = function (outpu
334
334
  case 3: throw _d.sent();
335
335
  case 4:
336
336
  parsedBody = parsedOutput.body;
337
- $metadata = deserializeMetadata(output);
338
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
339
- response = new __BaseException({
340
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
341
- $fault: "client",
342
- $metadata: $metadata,
337
+ throwDefaultError({
338
+ output: output,
339
+ parsedBody: parsedBody.Error,
340
+ exceptionCtor: __BaseException,
341
+ errorCode: errorCode,
343
342
  });
344
- throw __decorateServiceException(response, parsedBody.Error);
343
+ _d.label = 5;
344
+ case 5: return [2];
345
345
  }
346
346
  });
347
347
  }); };
@@ -364,7 +364,7 @@ export var deserializeAws_queryGetAccessKeyInfoCommand = function (output, conte
364
364
  });
365
365
  }); };
366
366
  var deserializeAws_queryGetAccessKeyInfoCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
367
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
367
+ var parsedOutput, _a, errorCode, parsedBody;
368
368
  var _b;
369
369
  return __generator(this, function (_c) {
370
370
  switch (_c.label) {
@@ -375,18 +375,13 @@ var deserializeAws_queryGetAccessKeyInfoCommandError = function (output, context
375
375
  case 1:
376
376
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
377
377
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
378
- switch (errorCode) {
379
- default:
380
- parsedBody = parsedOutput.body;
381
- $metadata = deserializeMetadata(output);
382
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
383
- response = new __BaseException({
384
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
385
- $fault: "client",
386
- $metadata: $metadata,
387
- });
388
- throw __decorateServiceException(response, parsedBody.Error);
389
- }
378
+ parsedBody = parsedOutput.body;
379
+ throwDefaultError({
380
+ output: output,
381
+ parsedBody: parsedBody.Error,
382
+ exceptionCtor: __BaseException,
383
+ errorCode: errorCode,
384
+ });
390
385
  return [2];
391
386
  }
392
387
  });
@@ -410,7 +405,7 @@ export var deserializeAws_queryGetCallerIdentityCommand = function (output, cont
410
405
  });
411
406
  }); };
412
407
  var deserializeAws_queryGetCallerIdentityCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
413
- var parsedOutput, _a, response, errorCode, parsedBody, $metadata, statusCode;
408
+ var parsedOutput, _a, errorCode, parsedBody;
414
409
  var _b;
415
410
  return __generator(this, function (_c) {
416
411
  switch (_c.label) {
@@ -421,18 +416,13 @@ var deserializeAws_queryGetCallerIdentityCommandError = function (output, contex
421
416
  case 1:
422
417
  parsedOutput = __assign.apply(void 0, _a.concat([(_b.body = _c.sent(), _b)]));
423
418
  errorCode = loadQueryErrorCode(output, parsedOutput.body);
424
- switch (errorCode) {
425
- default:
426
- parsedBody = parsedOutput.body;
427
- $metadata = deserializeMetadata(output);
428
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
429
- response = new __BaseException({
430
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
431
- $fault: "client",
432
- $metadata: $metadata,
433
- });
434
- throw __decorateServiceException(response, parsedBody.Error);
435
- }
419
+ parsedBody = parsedOutput.body;
420
+ throwDefaultError({
421
+ output: output,
422
+ parsedBody: parsedBody.Error,
423
+ exceptionCtor: __BaseException,
424
+ errorCode: errorCode,
425
+ });
436
426
  return [2];
437
427
  }
438
428
  });
@@ -456,7 +446,7 @@ export var deserializeAws_queryGetFederationTokenCommand = function (output, con
456
446
  });
457
447
  }); };
458
448
  var deserializeAws_queryGetFederationTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
459
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
449
+ var parsedOutput, _a, errorCode, _b, parsedBody;
460
450
  var _c;
461
451
  return __generator(this, function (_d) {
462
452
  switch (_d.label) {
@@ -485,14 +475,14 @@ var deserializeAws_queryGetFederationTokenCommandError = function (output, conte
485
475
  case 7: throw _d.sent();
486
476
  case 8:
487
477
  parsedBody = parsedOutput.body;
488
- $metadata = deserializeMetadata(output);
489
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
490
- response = new __BaseException({
491
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
492
- $fault: "client",
493
- $metadata: $metadata,
478
+ throwDefaultError({
479
+ output: output,
480
+ parsedBody: parsedBody.Error,
481
+ exceptionCtor: __BaseException,
482
+ errorCode: errorCode,
494
483
  });
495
- throw __decorateServiceException(response, parsedBody.Error);
484
+ _d.label = 9;
485
+ case 9: return [2];
496
486
  }
497
487
  });
498
488
  }); };
@@ -515,7 +505,7 @@ export var deserializeAws_queryGetSessionTokenCommand = function (output, contex
515
505
  });
516
506
  }); };
517
507
  var deserializeAws_queryGetSessionTokenCommandError = function (output, context) { return __awaiter(void 0, void 0, void 0, function () {
518
- var parsedOutput, _a, response, errorCode, _b, parsedBody, $metadata, statusCode;
508
+ var parsedOutput, _a, errorCode, _b, parsedBody;
519
509
  var _c;
520
510
  return __generator(this, function (_d) {
521
511
  switch (_d.label) {
@@ -536,14 +526,14 @@ var deserializeAws_queryGetSessionTokenCommandError = function (output, context)
536
526
  case 3: throw _d.sent();
537
527
  case 4:
538
528
  parsedBody = parsedOutput.body;
539
- $metadata = deserializeMetadata(output);
540
- statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined;
541
- response = new __BaseException({
542
- name: parsedBody.Error.code || parsedBody.Error.Code || errorCode || statusCode || "UnknowError",
543
- $fault: "client",
544
- $metadata: $metadata,
529
+ throwDefaultError({
530
+ output: output,
531
+ parsedBody: parsedBody.Error,
532
+ exceptionCtor: __BaseException,
533
+ errorCode: errorCode,
545
534
  });
546
- throw __decorateServiceException(response, parsedBody.Error);
535
+ _d.label = 5;
536
+ case 5: return [2];
547
537
  }
548
538
  });
549
539
  }); };
@@ -621,13 +611,13 @@ var deserializeAws_queryRegionDisabledExceptionResponse = function (parsedOutput
621
611
  }); };
622
612
  var serializeAws_queryAssumeRoleRequest = function (input, context) {
623
613
  var entries = {};
624
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
614
+ if (input.RoleArn != null) {
625
615
  entries["RoleArn"] = input.RoleArn;
626
616
  }
627
- if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) {
617
+ if (input.RoleSessionName != null) {
628
618
  entries["RoleSessionName"] = input.RoleSessionName;
629
619
  }
630
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
620
+ if (input.PolicyArns != null) {
631
621
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
632
622
  Object.entries(memberEntries).forEach(function (_a) {
633
623
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -635,13 +625,13 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
635
625
  entries[loc] = value;
636
626
  });
637
627
  }
638
- if (input.Policy !== undefined && input.Policy !== null) {
628
+ if (input.Policy != null) {
639
629
  entries["Policy"] = input.Policy;
640
630
  }
641
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
631
+ if (input.DurationSeconds != null) {
642
632
  entries["DurationSeconds"] = input.DurationSeconds;
643
633
  }
644
- if (input.Tags !== undefined && input.Tags !== null) {
634
+ if (input.Tags != null) {
645
635
  var memberEntries = serializeAws_querytagListType(input.Tags, context);
646
636
  Object.entries(memberEntries).forEach(function (_a) {
647
637
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -649,7 +639,7 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
649
639
  entries[loc] = value;
650
640
  });
651
641
  }
652
- if (input.TransitiveTagKeys !== undefined && input.TransitiveTagKeys !== null) {
642
+ if (input.TransitiveTagKeys != null) {
653
643
  var memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
654
644
  Object.entries(memberEntries).forEach(function (_a) {
655
645
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -657,32 +647,32 @@ var serializeAws_queryAssumeRoleRequest = function (input, context) {
657
647
  entries[loc] = value;
658
648
  });
659
649
  }
660
- if (input.ExternalId !== undefined && input.ExternalId !== null) {
650
+ if (input.ExternalId != null) {
661
651
  entries["ExternalId"] = input.ExternalId;
662
652
  }
663
- if (input.SerialNumber !== undefined && input.SerialNumber !== null) {
653
+ if (input.SerialNumber != null) {
664
654
  entries["SerialNumber"] = input.SerialNumber;
665
655
  }
666
- if (input.TokenCode !== undefined && input.TokenCode !== null) {
656
+ if (input.TokenCode != null) {
667
657
  entries["TokenCode"] = input.TokenCode;
668
658
  }
669
- if (input.SourceIdentity !== undefined && input.SourceIdentity !== null) {
659
+ if (input.SourceIdentity != null) {
670
660
  entries["SourceIdentity"] = input.SourceIdentity;
671
661
  }
672
662
  return entries;
673
663
  };
674
664
  var serializeAws_queryAssumeRoleWithSAMLRequest = function (input, context) {
675
665
  var entries = {};
676
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
666
+ if (input.RoleArn != null) {
677
667
  entries["RoleArn"] = input.RoleArn;
678
668
  }
679
- if (input.PrincipalArn !== undefined && input.PrincipalArn !== null) {
669
+ if (input.PrincipalArn != null) {
680
670
  entries["PrincipalArn"] = input.PrincipalArn;
681
671
  }
682
- if (input.SAMLAssertion !== undefined && input.SAMLAssertion !== null) {
672
+ if (input.SAMLAssertion != null) {
683
673
  entries["SAMLAssertion"] = input.SAMLAssertion;
684
674
  }
685
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
675
+ if (input.PolicyArns != null) {
686
676
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
687
677
  Object.entries(memberEntries).forEach(function (_a) {
688
678
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -690,29 +680,29 @@ var serializeAws_queryAssumeRoleWithSAMLRequest = function (input, context) {
690
680
  entries[loc] = value;
691
681
  });
692
682
  }
693
- if (input.Policy !== undefined && input.Policy !== null) {
683
+ if (input.Policy != null) {
694
684
  entries["Policy"] = input.Policy;
695
685
  }
696
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
686
+ if (input.DurationSeconds != null) {
697
687
  entries["DurationSeconds"] = input.DurationSeconds;
698
688
  }
699
689
  return entries;
700
690
  };
701
691
  var serializeAws_queryAssumeRoleWithWebIdentityRequest = function (input, context) {
702
692
  var entries = {};
703
- if (input.RoleArn !== undefined && input.RoleArn !== null) {
693
+ if (input.RoleArn != null) {
704
694
  entries["RoleArn"] = input.RoleArn;
705
695
  }
706
- if (input.RoleSessionName !== undefined && input.RoleSessionName !== null) {
696
+ if (input.RoleSessionName != null) {
707
697
  entries["RoleSessionName"] = input.RoleSessionName;
708
698
  }
709
- if (input.WebIdentityToken !== undefined && input.WebIdentityToken !== null) {
699
+ if (input.WebIdentityToken != null) {
710
700
  entries["WebIdentityToken"] = input.WebIdentityToken;
711
701
  }
712
- if (input.ProviderId !== undefined && input.ProviderId !== null) {
702
+ if (input.ProviderId != null) {
713
703
  entries["ProviderId"] = input.ProviderId;
714
704
  }
715
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
705
+ if (input.PolicyArns != null) {
716
706
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
717
707
  Object.entries(memberEntries).forEach(function (_a) {
718
708
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -720,24 +710,24 @@ var serializeAws_queryAssumeRoleWithWebIdentityRequest = function (input, contex
720
710
  entries[loc] = value;
721
711
  });
722
712
  }
723
- if (input.Policy !== undefined && input.Policy !== null) {
713
+ if (input.Policy != null) {
724
714
  entries["Policy"] = input.Policy;
725
715
  }
726
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
716
+ if (input.DurationSeconds != null) {
727
717
  entries["DurationSeconds"] = input.DurationSeconds;
728
718
  }
729
719
  return entries;
730
720
  };
731
721
  var serializeAws_queryDecodeAuthorizationMessageRequest = function (input, context) {
732
722
  var entries = {};
733
- if (input.EncodedMessage !== undefined && input.EncodedMessage !== null) {
723
+ if (input.EncodedMessage != null) {
734
724
  entries["EncodedMessage"] = input.EncodedMessage;
735
725
  }
736
726
  return entries;
737
727
  };
738
728
  var serializeAws_queryGetAccessKeyInfoRequest = function (input, context) {
739
729
  var entries = {};
740
- if (input.AccessKeyId !== undefined && input.AccessKeyId !== null) {
730
+ if (input.AccessKeyId != null) {
741
731
  entries["AccessKeyId"] = input.AccessKeyId;
742
732
  }
743
733
  return entries;
@@ -748,13 +738,13 @@ var serializeAws_queryGetCallerIdentityRequest = function (input, context) {
748
738
  };
749
739
  var serializeAws_queryGetFederationTokenRequest = function (input, context) {
750
740
  var entries = {};
751
- if (input.Name !== undefined && input.Name !== null) {
741
+ if (input.Name != null) {
752
742
  entries["Name"] = input.Name;
753
743
  }
754
- if (input.Policy !== undefined && input.Policy !== null) {
744
+ if (input.Policy != null) {
755
745
  entries["Policy"] = input.Policy;
756
746
  }
757
- if (input.PolicyArns !== undefined && input.PolicyArns !== null) {
747
+ if (input.PolicyArns != null) {
758
748
  var memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
759
749
  Object.entries(memberEntries).forEach(function (_a) {
760
750
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -762,10 +752,10 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
762
752
  entries[loc] = value;
763
753
  });
764
754
  }
765
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
755
+ if (input.DurationSeconds != null) {
766
756
  entries["DurationSeconds"] = input.DurationSeconds;
767
757
  }
768
- if (input.Tags !== undefined && input.Tags !== null) {
758
+ if (input.Tags != null) {
769
759
  var memberEntries = serializeAws_querytagListType(input.Tags, context);
770
760
  Object.entries(memberEntries).forEach(function (_a) {
771
761
  var _b = __read(_a, 2), key = _b[0], value = _b[1];
@@ -777,13 +767,13 @@ var serializeAws_queryGetFederationTokenRequest = function (input, context) {
777
767
  };
778
768
  var serializeAws_queryGetSessionTokenRequest = function (input, context) {
779
769
  var entries = {};
780
- if (input.DurationSeconds !== undefined && input.DurationSeconds !== null) {
770
+ if (input.DurationSeconds != null) {
781
771
  entries["DurationSeconds"] = input.DurationSeconds;
782
772
  }
783
- if (input.SerialNumber !== undefined && input.SerialNumber !== null) {
773
+ if (input.SerialNumber != null) {
784
774
  entries["SerialNumber"] = input.SerialNumber;
785
775
  }
786
- if (input.TokenCode !== undefined && input.TokenCode !== null) {
776
+ if (input.TokenCode != null) {
787
777
  entries["TokenCode"] = input.TokenCode;
788
778
  }
789
779
  return entries;
@@ -817,17 +807,17 @@ var serializeAws_querypolicyDescriptorListType = function (input, context) {
817
807
  };
818
808
  var serializeAws_queryPolicyDescriptorType = function (input, context) {
819
809
  var entries = {};
820
- if (input.arn !== undefined && input.arn !== null) {
810
+ if (input.arn != null) {
821
811
  entries["arn"] = input.arn;
822
812
  }
823
813
  return entries;
824
814
  };
825
815
  var serializeAws_queryTag = function (input, context) {
826
816
  var entries = {};
827
- if (input.Key !== undefined && input.Key !== null) {
817
+ if (input.Key != null) {
828
818
  entries["Key"] = input.Key;
829
819
  }
830
- if (input.Value !== undefined && input.Value !== null) {
820
+ if (input.Value != null) {
831
821
  entries["Value"] = input.Value;
832
822
  }
833
823
  return entries;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sts",
3
3
  "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
4
- "version": "3.141.0",
4
+ "version": "3.142.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -19,7 +19,7 @@
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
21
  "@aws-sdk/config-resolver": "3.130.0",
22
- "@aws-sdk/credential-provider-node": "3.141.0",
22
+ "@aws-sdk/credential-provider-node": "3.142.0",
23
23
  "@aws-sdk/fetch-http-handler": "3.131.0",
24
24
  "@aws-sdk/hash-node": "3.127.0",
25
25
  "@aws-sdk/invalid-dependency": "3.127.0",
@@ -36,15 +36,15 @@
36
36
  "@aws-sdk/node-config-provider": "3.127.0",
37
37
  "@aws-sdk/node-http-handler": "3.127.0",
38
38
  "@aws-sdk/protocol-http": "3.127.0",
39
- "@aws-sdk/smithy-client": "3.137.0",
39
+ "@aws-sdk/smithy-client": "3.142.0",
40
40
  "@aws-sdk/types": "3.127.0",
41
41
  "@aws-sdk/url-parser": "3.127.0",
42
42
  "@aws-sdk/util-base64-browser": "3.109.0",
43
43
  "@aws-sdk/util-base64-node": "3.55.0",
44
44
  "@aws-sdk/util-body-length-browser": "3.55.0",
45
45
  "@aws-sdk/util-body-length-node": "3.55.0",
46
- "@aws-sdk/util-defaults-mode-browser": "3.137.0",
47
- "@aws-sdk/util-defaults-mode-node": "3.137.0",
46
+ "@aws-sdk/util-defaults-mode-browser": "3.142.0",
47
+ "@aws-sdk/util-defaults-mode-node": "3.142.0",
48
48
  "@aws-sdk/util-user-agent-browser": "3.127.0",
49
49
  "@aws-sdk/util-user-agent-node": "3.127.0",
50
50
  "@aws-sdk/util-utf8-browser": "3.109.0",