@aws-sdk/client-sqs 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 +11 -0
- package/dist-cjs/protocols/Aws_query.js +39 -0
- package/dist-es/protocols/Aws_query.js +39 -0
- package/package.json +4 -4
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
|
|
|
@@ -1097,6 +1097,9 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1097
1097
|
}
|
|
1098
1098
|
if (input.AWSAccountIds != null) {
|
|
1099
1099
|
const memberEntries = serializeAws_queryAWSAccountIdList(input.AWSAccountIds, context);
|
|
1100
|
+
if (input.AWSAccountIds?.length === 0) {
|
|
1101
|
+
entries.AWSAccountId = [];
|
|
1102
|
+
}
|
|
1100
1103
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1101
1104
|
const loc = `AWSAccountId.${key.substring(key.indexOf(".") + 1)}`;
|
|
1102
1105
|
entries[loc] = value;
|
|
@@ -1104,6 +1107,9 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1104
1107
|
}
|
|
1105
1108
|
if (input.Actions != null) {
|
|
1106
1109
|
const memberEntries = serializeAws_queryActionNameList(input.Actions, context);
|
|
1110
|
+
if (input.Actions?.length === 0) {
|
|
1111
|
+
entries.ActionName = [];
|
|
1112
|
+
}
|
|
1107
1113
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1108
1114
|
const loc = `ActionName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1109
1115
|
entries[loc] = value;
|
|
@@ -1154,6 +1160,9 @@ const serializeAws_queryChangeMessageVisibilityBatchRequest = (input, context) =
|
|
|
1154
1160
|
}
|
|
1155
1161
|
if (input.Entries != null) {
|
|
1156
1162
|
const memberEntries = serializeAws_queryChangeMessageVisibilityBatchRequestEntryList(input.Entries, context);
|
|
1163
|
+
if (input.Entries?.length === 0) {
|
|
1164
|
+
entries.ChangeMessageVisibilityBatchRequestEntry = [];
|
|
1165
|
+
}
|
|
1157
1166
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1158
1167
|
const loc = `ChangeMessageVisibilityBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
1159
1168
|
entries[loc] = value;
|
|
@@ -1230,6 +1239,9 @@ const serializeAws_queryDeleteMessageBatchRequest = (input, context) => {
|
|
|
1230
1239
|
}
|
|
1231
1240
|
if (input.Entries != null) {
|
|
1232
1241
|
const memberEntries = serializeAws_queryDeleteMessageBatchRequestEntryList(input.Entries, context);
|
|
1242
|
+
if (input.Entries?.length === 0) {
|
|
1243
|
+
entries.DeleteMessageBatchRequestEntry = [];
|
|
1244
|
+
}
|
|
1233
1245
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1234
1246
|
const loc = `DeleteMessageBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
1235
1247
|
entries[loc] = value;
|
|
@@ -1286,6 +1298,9 @@ const serializeAws_queryGetQueueAttributesRequest = (input, context) => {
|
|
|
1286
1298
|
}
|
|
1287
1299
|
if (input.AttributeNames != null) {
|
|
1288
1300
|
const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
|
|
1301
|
+
if (input.AttributeNames?.length === 0) {
|
|
1302
|
+
entries.AttributeName = [];
|
|
1303
|
+
}
|
|
1289
1304
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1290
1305
|
const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1291
1306
|
entries[loc] = value;
|
|
@@ -1358,6 +1373,9 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1358
1373
|
}
|
|
1359
1374
|
if (input.StringListValues != null) {
|
|
1360
1375
|
const memberEntries = serializeAws_queryStringList(input.StringListValues, context);
|
|
1376
|
+
if (input.StringListValues?.length === 0) {
|
|
1377
|
+
entries.StringListValue = [];
|
|
1378
|
+
}
|
|
1361
1379
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1362
1380
|
const loc = `StringListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1363
1381
|
entries[loc] = value;
|
|
@@ -1365,6 +1383,9 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1365
1383
|
}
|
|
1366
1384
|
if (input.BinaryListValues != null) {
|
|
1367
1385
|
const memberEntries = serializeAws_queryBinaryList(input.BinaryListValues, context);
|
|
1386
|
+
if (input.BinaryListValues?.length === 0) {
|
|
1387
|
+
entries.BinaryListValue = [];
|
|
1388
|
+
}
|
|
1368
1389
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1369
1390
|
const loc = `BinaryListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1370
1391
|
entries[loc] = value;
|
|
@@ -1415,6 +1436,9 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1415
1436
|
}
|
|
1416
1437
|
if (input.StringListValues != null) {
|
|
1417
1438
|
const memberEntries = serializeAws_queryStringList(input.StringListValues, context);
|
|
1439
|
+
if (input.StringListValues?.length === 0) {
|
|
1440
|
+
entries.StringListValue = [];
|
|
1441
|
+
}
|
|
1418
1442
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1419
1443
|
const loc = `StringListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1420
1444
|
entries[loc] = value;
|
|
@@ -1422,6 +1446,9 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1422
1446
|
}
|
|
1423
1447
|
if (input.BinaryListValues != null) {
|
|
1424
1448
|
const memberEntries = serializeAws_queryBinaryList(input.BinaryListValues, context);
|
|
1449
|
+
if (input.BinaryListValues?.length === 0) {
|
|
1450
|
+
entries.BinaryListValue = [];
|
|
1451
|
+
}
|
|
1425
1452
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1426
1453
|
const loc = `BinaryListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1427
1454
|
entries[loc] = value;
|
|
@@ -1458,6 +1485,9 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1458
1485
|
}
|
|
1459
1486
|
if (input.AttributeNames != null) {
|
|
1460
1487
|
const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
|
|
1488
|
+
if (input.AttributeNames?.length === 0) {
|
|
1489
|
+
entries.AttributeName = [];
|
|
1490
|
+
}
|
|
1461
1491
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1462
1492
|
const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1463
1493
|
entries[loc] = value;
|
|
@@ -1465,6 +1495,9 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1465
1495
|
}
|
|
1466
1496
|
if (input.MessageAttributeNames != null) {
|
|
1467
1497
|
const memberEntries = serializeAws_queryMessageAttributeNameList(input.MessageAttributeNames, context);
|
|
1498
|
+
if (input.MessageAttributeNames?.length === 0) {
|
|
1499
|
+
entries.MessageAttributeName = [];
|
|
1500
|
+
}
|
|
1468
1501
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1469
1502
|
const loc = `MessageAttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1470
1503
|
entries[loc] = value;
|
|
@@ -1501,6 +1534,9 @@ const serializeAws_querySendMessageBatchRequest = (input, context) => {
|
|
|
1501
1534
|
}
|
|
1502
1535
|
if (input.Entries != null) {
|
|
1503
1536
|
const memberEntries = serializeAws_querySendMessageBatchRequestEntryList(input.Entries, context);
|
|
1537
|
+
if (input.Entries?.length === 0) {
|
|
1538
|
+
entries.SendMessageBatchRequestEntry = [];
|
|
1539
|
+
}
|
|
1504
1540
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1505
1541
|
const loc = `SendMessageBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
1506
1542
|
entries[loc] = value;
|
|
@@ -1660,6 +1696,9 @@ const serializeAws_queryUntagQueueRequest = (input, context) => {
|
|
|
1660
1696
|
}
|
|
1661
1697
|
if (input.TagKeys != null) {
|
|
1662
1698
|
const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
|
|
1699
|
+
if (input.TagKeys?.length === 0) {
|
|
1700
|
+
entries.TagKey = [];
|
|
1701
|
+
}
|
|
1663
1702
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1664
1703
|
const loc = `TagKey.${key.substring(key.indexOf(".") + 1)}`;
|
|
1665
1704
|
entries[loc] = value;
|
|
@@ -1054,6 +1054,9 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1054
1054
|
}
|
|
1055
1055
|
if (input.AWSAccountIds != null) {
|
|
1056
1056
|
const memberEntries = serializeAws_queryAWSAccountIdList(input.AWSAccountIds, context);
|
|
1057
|
+
if (input.AWSAccountIds?.length === 0) {
|
|
1058
|
+
entries.AWSAccountId = [];
|
|
1059
|
+
}
|
|
1057
1060
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1058
1061
|
const loc = `AWSAccountId.${key.substring(key.indexOf(".") + 1)}`;
|
|
1059
1062
|
entries[loc] = value;
|
|
@@ -1061,6 +1064,9 @@ const serializeAws_queryAddPermissionRequest = (input, context) => {
|
|
|
1061
1064
|
}
|
|
1062
1065
|
if (input.Actions != null) {
|
|
1063
1066
|
const memberEntries = serializeAws_queryActionNameList(input.Actions, context);
|
|
1067
|
+
if (input.Actions?.length === 0) {
|
|
1068
|
+
entries.ActionName = [];
|
|
1069
|
+
}
|
|
1064
1070
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1065
1071
|
const loc = `ActionName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1066
1072
|
entries[loc] = value;
|
|
@@ -1111,6 +1117,9 @@ const serializeAws_queryChangeMessageVisibilityBatchRequest = (input, context) =
|
|
|
1111
1117
|
}
|
|
1112
1118
|
if (input.Entries != null) {
|
|
1113
1119
|
const memberEntries = serializeAws_queryChangeMessageVisibilityBatchRequestEntryList(input.Entries, context);
|
|
1120
|
+
if (input.Entries?.length === 0) {
|
|
1121
|
+
entries.ChangeMessageVisibilityBatchRequestEntry = [];
|
|
1122
|
+
}
|
|
1114
1123
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1115
1124
|
const loc = `ChangeMessageVisibilityBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
1116
1125
|
entries[loc] = value;
|
|
@@ -1187,6 +1196,9 @@ const serializeAws_queryDeleteMessageBatchRequest = (input, context) => {
|
|
|
1187
1196
|
}
|
|
1188
1197
|
if (input.Entries != null) {
|
|
1189
1198
|
const memberEntries = serializeAws_queryDeleteMessageBatchRequestEntryList(input.Entries, context);
|
|
1199
|
+
if (input.Entries?.length === 0) {
|
|
1200
|
+
entries.DeleteMessageBatchRequestEntry = [];
|
|
1201
|
+
}
|
|
1190
1202
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1191
1203
|
const loc = `DeleteMessageBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
1192
1204
|
entries[loc] = value;
|
|
@@ -1243,6 +1255,9 @@ const serializeAws_queryGetQueueAttributesRequest = (input, context) => {
|
|
|
1243
1255
|
}
|
|
1244
1256
|
if (input.AttributeNames != null) {
|
|
1245
1257
|
const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
|
|
1258
|
+
if (input.AttributeNames?.length === 0) {
|
|
1259
|
+
entries.AttributeName = [];
|
|
1260
|
+
}
|
|
1246
1261
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1247
1262
|
const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1248
1263
|
entries[loc] = value;
|
|
@@ -1315,6 +1330,9 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1315
1330
|
}
|
|
1316
1331
|
if (input.StringListValues != null) {
|
|
1317
1332
|
const memberEntries = serializeAws_queryStringList(input.StringListValues, context);
|
|
1333
|
+
if (input.StringListValues?.length === 0) {
|
|
1334
|
+
entries.StringListValue = [];
|
|
1335
|
+
}
|
|
1318
1336
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1319
1337
|
const loc = `StringListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1320
1338
|
entries[loc] = value;
|
|
@@ -1322,6 +1340,9 @@ const serializeAws_queryMessageAttributeValue = (input, context) => {
|
|
|
1322
1340
|
}
|
|
1323
1341
|
if (input.BinaryListValues != null) {
|
|
1324
1342
|
const memberEntries = serializeAws_queryBinaryList(input.BinaryListValues, context);
|
|
1343
|
+
if (input.BinaryListValues?.length === 0) {
|
|
1344
|
+
entries.BinaryListValue = [];
|
|
1345
|
+
}
|
|
1325
1346
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1326
1347
|
const loc = `BinaryListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1327
1348
|
entries[loc] = value;
|
|
@@ -1372,6 +1393,9 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1372
1393
|
}
|
|
1373
1394
|
if (input.StringListValues != null) {
|
|
1374
1395
|
const memberEntries = serializeAws_queryStringList(input.StringListValues, context);
|
|
1396
|
+
if (input.StringListValues?.length === 0) {
|
|
1397
|
+
entries.StringListValue = [];
|
|
1398
|
+
}
|
|
1375
1399
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1376
1400
|
const loc = `StringListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1377
1401
|
entries[loc] = value;
|
|
@@ -1379,6 +1403,9 @@ const serializeAws_queryMessageSystemAttributeValue = (input, context) => {
|
|
|
1379
1403
|
}
|
|
1380
1404
|
if (input.BinaryListValues != null) {
|
|
1381
1405
|
const memberEntries = serializeAws_queryBinaryList(input.BinaryListValues, context);
|
|
1406
|
+
if (input.BinaryListValues?.length === 0) {
|
|
1407
|
+
entries.BinaryListValue = [];
|
|
1408
|
+
}
|
|
1382
1409
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1383
1410
|
const loc = `BinaryListValue.${key.substring(key.indexOf(".") + 1)}`;
|
|
1384
1411
|
entries[loc] = value;
|
|
@@ -1415,6 +1442,9 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1415
1442
|
}
|
|
1416
1443
|
if (input.AttributeNames != null) {
|
|
1417
1444
|
const memberEntries = serializeAws_queryAttributeNameList(input.AttributeNames, context);
|
|
1445
|
+
if (input.AttributeNames?.length === 0) {
|
|
1446
|
+
entries.AttributeName = [];
|
|
1447
|
+
}
|
|
1418
1448
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1419
1449
|
const loc = `AttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1420
1450
|
entries[loc] = value;
|
|
@@ -1422,6 +1452,9 @@ const serializeAws_queryReceiveMessageRequest = (input, context) => {
|
|
|
1422
1452
|
}
|
|
1423
1453
|
if (input.MessageAttributeNames != null) {
|
|
1424
1454
|
const memberEntries = serializeAws_queryMessageAttributeNameList(input.MessageAttributeNames, context);
|
|
1455
|
+
if (input.MessageAttributeNames?.length === 0) {
|
|
1456
|
+
entries.MessageAttributeName = [];
|
|
1457
|
+
}
|
|
1425
1458
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1426
1459
|
const loc = `MessageAttributeName.${key.substring(key.indexOf(".") + 1)}`;
|
|
1427
1460
|
entries[loc] = value;
|
|
@@ -1458,6 +1491,9 @@ const serializeAws_querySendMessageBatchRequest = (input, context) => {
|
|
|
1458
1491
|
}
|
|
1459
1492
|
if (input.Entries != null) {
|
|
1460
1493
|
const memberEntries = serializeAws_querySendMessageBatchRequestEntryList(input.Entries, context);
|
|
1494
|
+
if (input.Entries?.length === 0) {
|
|
1495
|
+
entries.SendMessageBatchRequestEntry = [];
|
|
1496
|
+
}
|
|
1461
1497
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1462
1498
|
const loc = `SendMessageBatchRequestEntry.${key.substring(key.indexOf(".") + 1)}`;
|
|
1463
1499
|
entries[loc] = value;
|
|
@@ -1617,6 +1653,9 @@ const serializeAws_queryUntagQueueRequest = (input, context) => {
|
|
|
1617
1653
|
}
|
|
1618
1654
|
if (input.TagKeys != null) {
|
|
1619
1655
|
const memberEntries = serializeAws_queryTagKeyList(input.TagKeys, context);
|
|
1656
|
+
if (input.TagKeys?.length === 0) {
|
|
1657
|
+
entries.TagKey = [];
|
|
1658
|
+
}
|
|
1620
1659
|
Object.entries(memberEntries).forEach(([key, value]) => {
|
|
1621
1660
|
const loc = `TagKey.${key.substring(key.indexOf(".") + 1)}`;
|
|
1622
1661
|
entries[loc] = value;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sqs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sqs Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
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.
|
|
22
|
+
"@aws-sdk/client-sts": "3.202.0",
|
|
23
23
|
"@aws-sdk/config-resolver": "3.201.0",
|
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
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",
|
|
@@ -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.
|
|
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",
|