@aws-sdk/client-sns 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
 
@@ -2798,6 +2798,9 @@ const serializeAws_queryAddPermissionInput = (input, context) => {
2798
2798
  }
2799
2799
  if (input.AWSAccountId != null) {
2800
2800
  const memberEntries = serializeAws_queryDelegatesList(input.AWSAccountId, context);
2801
+ if (input.AWSAccountId?.length === 0) {
2802
+ entries.AWSAccountId = [];
2803
+ }
2801
2804
  Object.entries(memberEntries).forEach(([key, value]) => {
2802
2805
  const loc = `AWSAccountId.${key}`;
2803
2806
  entries[loc] = value;
@@ -2805,6 +2808,9 @@ const serializeAws_queryAddPermissionInput = (input, context) => {
2805
2808
  }
2806
2809
  if (input.ActionName != null) {
2807
2810
  const memberEntries = serializeAws_queryActionsList(input.ActionName, context);
2811
+ if (input.ActionName?.length === 0) {
2812
+ entries.ActionName = [];
2813
+ }
2808
2814
  Object.entries(memberEntries).forEach(([key, value]) => {
2809
2815
  const loc = `ActionName.${key}`;
2810
2816
  entries[loc] = value;
@@ -2893,6 +2899,9 @@ const serializeAws_queryCreateTopicInput = (input, context) => {
2893
2899
  }
2894
2900
  if (input.Tags != null) {
2895
2901
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2902
+ if (input.Tags?.length === 0) {
2903
+ entries.Tags = [];
2904
+ }
2896
2905
  Object.entries(memberEntries).forEach(([key, value]) => {
2897
2906
  const loc = `Tags.${key}`;
2898
2907
  entries[loc] = value;
@@ -2968,6 +2977,9 @@ const serializeAws_queryGetSMSAttributesInput = (input, context) => {
2968
2977
  const entries = {};
2969
2978
  if (input.attributes != null) {
2970
2979
  const memberEntries = serializeAws_queryListString(input.attributes, context);
2980
+ if (input.attributes?.length === 0) {
2981
+ entries.attributes = [];
2982
+ }
2971
2983
  Object.entries(memberEntries).forEach(([key, value]) => {
2972
2984
  const loc = `attributes.${key}`;
2973
2985
  entries[loc] = value;
@@ -3134,6 +3146,9 @@ const serializeAws_queryPublishBatchInput = (input, context) => {
3134
3146
  }
3135
3147
  if (input.PublishBatchRequestEntries != null) {
3136
3148
  const memberEntries = serializeAws_queryPublishBatchRequestEntryList(input.PublishBatchRequestEntries, context);
3149
+ if (input.PublishBatchRequestEntries?.length === 0) {
3150
+ entries.PublishBatchRequestEntries = [];
3151
+ }
3137
3152
  Object.entries(memberEntries).forEach(([key, value]) => {
3138
3153
  const loc = `PublishBatchRequestEntries.${key}`;
3139
3154
  entries[loc] = value;
@@ -3384,6 +3399,9 @@ const serializeAws_queryTagResourceRequest = (input, context) => {
3384
3399
  }
3385
3400
  if (input.Tags != null) {
3386
3401
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
3402
+ if (input.Tags?.length === 0) {
3403
+ entries.Tags = [];
3404
+ }
3387
3405
  Object.entries(memberEntries).forEach(([key, value]) => {
3388
3406
  const loc = `Tags.${key}`;
3389
3407
  entries[loc] = value;
@@ -3417,6 +3435,9 @@ const serializeAws_queryUntagResourceRequest = (input, context) => {
3417
3435
  }
3418
3436
  if (input.TagKeys != null) {
3419
3437
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
3438
+ if (input.TagKeys?.length === 0) {
3439
+ entries.TagKeys = [];
3440
+ }
3420
3441
  Object.entries(memberEntries).forEach(([key, value]) => {
3421
3442
  const loc = `TagKeys.${key}`;
3422
3443
  entries[loc] = value;
@@ -2710,6 +2710,9 @@ const serializeAws_queryAddPermissionInput = (input, context) => {
2710
2710
  }
2711
2711
  if (input.AWSAccountId != null) {
2712
2712
  const memberEntries = serializeAws_queryDelegatesList(input.AWSAccountId, context);
2713
+ if (input.AWSAccountId?.length === 0) {
2714
+ entries.AWSAccountId = [];
2715
+ }
2713
2716
  Object.entries(memberEntries).forEach(([key, value]) => {
2714
2717
  const loc = `AWSAccountId.${key}`;
2715
2718
  entries[loc] = value;
@@ -2717,6 +2720,9 @@ const serializeAws_queryAddPermissionInput = (input, context) => {
2717
2720
  }
2718
2721
  if (input.ActionName != null) {
2719
2722
  const memberEntries = serializeAws_queryActionsList(input.ActionName, context);
2723
+ if (input.ActionName?.length === 0) {
2724
+ entries.ActionName = [];
2725
+ }
2720
2726
  Object.entries(memberEntries).forEach(([key, value]) => {
2721
2727
  const loc = `ActionName.${key}`;
2722
2728
  entries[loc] = value;
@@ -2805,6 +2811,9 @@ const serializeAws_queryCreateTopicInput = (input, context) => {
2805
2811
  }
2806
2812
  if (input.Tags != null) {
2807
2813
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
2814
+ if (input.Tags?.length === 0) {
2815
+ entries.Tags = [];
2816
+ }
2808
2817
  Object.entries(memberEntries).forEach(([key, value]) => {
2809
2818
  const loc = `Tags.${key}`;
2810
2819
  entries[loc] = value;
@@ -2880,6 +2889,9 @@ const serializeAws_queryGetSMSAttributesInput = (input, context) => {
2880
2889
  const entries = {};
2881
2890
  if (input.attributes != null) {
2882
2891
  const memberEntries = serializeAws_queryListString(input.attributes, context);
2892
+ if (input.attributes?.length === 0) {
2893
+ entries.attributes = [];
2894
+ }
2883
2895
  Object.entries(memberEntries).forEach(([key, value]) => {
2884
2896
  const loc = `attributes.${key}`;
2885
2897
  entries[loc] = value;
@@ -3046,6 +3058,9 @@ const serializeAws_queryPublishBatchInput = (input, context) => {
3046
3058
  }
3047
3059
  if (input.PublishBatchRequestEntries != null) {
3048
3060
  const memberEntries = serializeAws_queryPublishBatchRequestEntryList(input.PublishBatchRequestEntries, context);
3061
+ if (input.PublishBatchRequestEntries?.length === 0) {
3062
+ entries.PublishBatchRequestEntries = [];
3063
+ }
3049
3064
  Object.entries(memberEntries).forEach(([key, value]) => {
3050
3065
  const loc = `PublishBatchRequestEntries.${key}`;
3051
3066
  entries[loc] = value;
@@ -3296,6 +3311,9 @@ const serializeAws_queryTagResourceRequest = (input, context) => {
3296
3311
  }
3297
3312
  if (input.Tags != null) {
3298
3313
  const memberEntries = serializeAws_queryTagList(input.Tags, context);
3314
+ if (input.Tags?.length === 0) {
3315
+ entries.Tags = [];
3316
+ }
3299
3317
  Object.entries(memberEntries).forEach(([key, value]) => {
3300
3318
  const loc = `Tags.${key}`;
3301
3319
  entries[loc] = value;
@@ -3329,6 +3347,9 @@ const serializeAws_queryUntagResourceRequest = (input, context) => {
3329
3347
  }
3330
3348
  if (input.TagKeys != null) {
3331
3349
  const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
3350
+ if (input.TagKeys?.length === 0) {
3351
+ entries.TagKeys = [];
3352
+ }
3332
3353
  Object.entries(memberEntries).forEach(([key, value]) => {
3333
3354
  const loc = `TagKeys.${key}`;
3334
3355
  entries[loc] = value;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-sns",
3
3
  "description": "AWS SDK for JavaScript Sns 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",
@@ -19,9 +19,9 @@
19
19
  "dependencies": {
20
20
  "@aws-crypto/sha256-browser": "2.0.0",
21
21
  "@aws-crypto/sha256-js": "2.0.0",
22
- "@aws-sdk/client-sts": "3.201.0",
22
+ "@aws-sdk/client-sts": "3.202.0",
23
23
  "@aws-sdk/config-resolver": "3.201.0",
24
- "@aws-sdk/credential-provider-node": "3.201.0",
24
+ "@aws-sdk/credential-provider-node": "3.202.0",
25
25
  "@aws-sdk/fetch-http-handler": "3.201.0",
26
26
  "@aws-sdk/hash-node": "3.201.0",
27
27
  "@aws-sdk/invalid-dependency": "3.201.0",
@@ -47,7 +47,7 @@
47
47
  "@aws-sdk/util-body-length-node": "3.201.0",
48
48
  "@aws-sdk/util-defaults-mode-browser": "3.201.0",
49
49
  "@aws-sdk/util-defaults-mode-node": "3.201.0",
50
- "@aws-sdk/util-endpoints": "3.201.0",
50
+ "@aws-sdk/util-endpoints": "3.202.0",
51
51
  "@aws-sdk/util-user-agent-browser": "3.201.0",
52
52
  "@aws-sdk/util-user-agent-node": "3.201.0",
53
53
  "@aws-sdk/util-utf8-browser": "3.188.0",