@aws-sdk/client-sts 3.201.0 → 3.202.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.202.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.201.0...v3.202.0) (2022-11-02)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **codegen:** aws-query protocol, distinguish explicit empty list ([#4003](https://github.com/aws/aws-sdk-js-v3/issues/4003)) ([8e10769](https://github.com/aws/aws-sdk-js-v3/commit/8e10769b6146f93c0674686fa547290292714917))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.201.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.200.0...v3.201.0) (2022-11-01)
7
18
 
8
19
 
@@ -500,6 +500,9 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
500
500
  }
501
501
  if (input.PolicyArns != null) {
502
502
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
503
+ if (input.PolicyArns?.length === 0) {
504
+ entries.PolicyArns = [];
505
+ }
503
506
  Object.entries(memberEntries).forEach(([key, value]) => {
504
507
  const loc = `PolicyArns.${key}`;
505
508
  entries[loc] = value;
@@ -513,6 +516,9 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
513
516
  }
514
517
  if (input.Tags != null) {
515
518
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
519
+ if (input.Tags?.length === 0) {
520
+ entries.Tags = [];
521
+ }
516
522
  Object.entries(memberEntries).forEach(([key, value]) => {
517
523
  const loc = `Tags.${key}`;
518
524
  entries[loc] = value;
@@ -520,6 +526,9 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
520
526
  }
521
527
  if (input.TransitiveTagKeys != null) {
522
528
  const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
529
+ if (input.TransitiveTagKeys?.length === 0) {
530
+ entries.TransitiveTagKeys = [];
531
+ }
523
532
  Object.entries(memberEntries).forEach(([key, value]) => {
524
533
  const loc = `TransitiveTagKeys.${key}`;
525
534
  entries[loc] = value;
@@ -552,6 +561,9 @@ const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
552
561
  }
553
562
  if (input.PolicyArns != null) {
554
563
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
564
+ if (input.PolicyArns?.length === 0) {
565
+ entries.PolicyArns = [];
566
+ }
555
567
  Object.entries(memberEntries).forEach(([key, value]) => {
556
568
  const loc = `PolicyArns.${key}`;
557
569
  entries[loc] = value;
@@ -581,6 +593,9 @@ const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
581
593
  }
582
594
  if (input.PolicyArns != null) {
583
595
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
596
+ if (input.PolicyArns?.length === 0) {
597
+ entries.PolicyArns = [];
598
+ }
584
599
  Object.entries(memberEntries).forEach(([key, value]) => {
585
600
  const loc = `PolicyArns.${key}`;
586
601
  entries[loc] = value;
@@ -622,6 +637,9 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
622
637
  }
623
638
  if (input.PolicyArns != null) {
624
639
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
640
+ if (input.PolicyArns?.length === 0) {
641
+ entries.PolicyArns = [];
642
+ }
625
643
  Object.entries(memberEntries).forEach(([key, value]) => {
626
644
  const loc = `PolicyArns.${key}`;
627
645
  entries[loc] = value;
@@ -632,6 +650,9 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
632
650
  }
633
651
  if (input.Tags != null) {
634
652
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
653
+ if (input.Tags?.length === 0) {
654
+ entries.Tags = [];
655
+ }
635
656
  Object.entries(memberEntries).forEach(([key, value]) => {
636
657
  const loc = `Tags.${key}`;
637
658
  entries[loc] = value;
@@ -481,6 +481,9 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
481
481
  }
482
482
  if (input.PolicyArns != null) {
483
483
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
484
+ if (input.PolicyArns?.length === 0) {
485
+ entries.PolicyArns = [];
486
+ }
484
487
  Object.entries(memberEntries).forEach(([key, value]) => {
485
488
  const loc = `PolicyArns.${key}`;
486
489
  entries[loc] = value;
@@ -494,6 +497,9 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
494
497
  }
495
498
  if (input.Tags != null) {
496
499
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
500
+ if (input.Tags?.length === 0) {
501
+ entries.Tags = [];
502
+ }
497
503
  Object.entries(memberEntries).forEach(([key, value]) => {
498
504
  const loc = `Tags.${key}`;
499
505
  entries[loc] = value;
@@ -501,6 +507,9 @@ const serializeAws_queryAssumeRoleRequest = (input, context) => {
501
507
  }
502
508
  if (input.TransitiveTagKeys != null) {
503
509
  const memberEntries = serializeAws_querytagKeyListType(input.TransitiveTagKeys, context);
510
+ if (input.TransitiveTagKeys?.length === 0) {
511
+ entries.TransitiveTagKeys = [];
512
+ }
504
513
  Object.entries(memberEntries).forEach(([key, value]) => {
505
514
  const loc = `TransitiveTagKeys.${key}`;
506
515
  entries[loc] = value;
@@ -533,6 +542,9 @@ const serializeAws_queryAssumeRoleWithSAMLRequest = (input, context) => {
533
542
  }
534
543
  if (input.PolicyArns != null) {
535
544
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
545
+ if (input.PolicyArns?.length === 0) {
546
+ entries.PolicyArns = [];
547
+ }
536
548
  Object.entries(memberEntries).forEach(([key, value]) => {
537
549
  const loc = `PolicyArns.${key}`;
538
550
  entries[loc] = value;
@@ -562,6 +574,9 @@ const serializeAws_queryAssumeRoleWithWebIdentityRequest = (input, context) => {
562
574
  }
563
575
  if (input.PolicyArns != null) {
564
576
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
577
+ if (input.PolicyArns?.length === 0) {
578
+ entries.PolicyArns = [];
579
+ }
565
580
  Object.entries(memberEntries).forEach(([key, value]) => {
566
581
  const loc = `PolicyArns.${key}`;
567
582
  entries[loc] = value;
@@ -603,6 +618,9 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
603
618
  }
604
619
  if (input.PolicyArns != null) {
605
620
  const memberEntries = serializeAws_querypolicyDescriptorListType(input.PolicyArns, context);
621
+ if (input.PolicyArns?.length === 0) {
622
+ entries.PolicyArns = [];
623
+ }
606
624
  Object.entries(memberEntries).forEach(([key, value]) => {
607
625
  const loc = `PolicyArns.${key}`;
608
626
  entries[loc] = value;
@@ -613,6 +631,9 @@ const serializeAws_queryGetFederationTokenRequest = (input, context) => {
613
631
  }
614
632
  if (input.Tags != null) {
615
633
  const memberEntries = serializeAws_querytagListType(input.Tags, context);
634
+ if (input.Tags?.length === 0) {
635
+ entries.Tags = [];
636
+ }
616
637
  Object.entries(memberEntries).forEach(([key, value]) => {
617
638
  const loc = `Tags.${key}`;
618
639
  entries[loc] = value;
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.201.0",
4
+ "version": "3.202.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",
@@ -22,7 +22,7 @@
22
22
  "@aws-crypto/sha256-browser": "2.0.0",
23
23
  "@aws-crypto/sha256-js": "2.0.0",
24
24
  "@aws-sdk/config-resolver": "3.201.0",
25
- "@aws-sdk/credential-provider-node": "3.201.0",
25
+ "@aws-sdk/credential-provider-node": "3.202.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.201.0",
27
27
  "@aws-sdk/hash-node": "3.201.0",
28
28
  "@aws-sdk/invalid-dependency": "3.201.0",
@@ -49,7 +49,7 @@
49
49
  "@aws-sdk/util-body-length-node": "3.201.0",
50
50
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
51
51
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
52
- "@aws-sdk/util-endpoints": "3.201.0",
52
+ "@aws-sdk/util-endpoints": "3.202.0",
53
53
  "@aws-sdk/util-user-agent-browser": "3.201.0",
54
54
  "@aws-sdk/util-user-agent-node": "3.201.0",
55
55
  "@aws-sdk/util-utf8-browser": "3.188.0",