@aws-sdk/client-sqs 3.354.0 → 3.357.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.
|
@@ -263,7 +263,7 @@ const de_AddPermissionCommand = async (output, context) => {
|
|
|
263
263
|
if (output.statusCode >= 300) {
|
|
264
264
|
return de_AddPermissionCommandError(output, context);
|
|
265
265
|
}
|
|
266
|
-
await collectBody(output.body, context);
|
|
266
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
267
267
|
const response = {
|
|
268
268
|
$metadata: deserializeMetadata(output),
|
|
269
269
|
};
|
|
@@ -329,7 +329,7 @@ const de_ChangeMessageVisibilityCommand = async (output, context) => {
|
|
|
329
329
|
if (output.statusCode >= 300) {
|
|
330
330
|
return de_ChangeMessageVisibilityCommandError(output, context);
|
|
331
331
|
}
|
|
332
|
-
await collectBody(output.body, context);
|
|
332
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
333
333
|
const response = {
|
|
334
334
|
$metadata: deserializeMetadata(output),
|
|
335
335
|
};
|
|
@@ -440,7 +440,7 @@ const de_DeleteMessageCommand = async (output, context) => {
|
|
|
440
440
|
if (output.statusCode >= 300) {
|
|
441
441
|
return de_DeleteMessageCommandError(output, context);
|
|
442
442
|
}
|
|
443
|
-
await collectBody(output.body, context);
|
|
443
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
444
444
|
const response = {
|
|
445
445
|
$metadata: deserializeMetadata(output),
|
|
446
446
|
};
|
|
@@ -515,7 +515,7 @@ const de_DeleteQueueCommand = async (output, context) => {
|
|
|
515
515
|
if (output.statusCode >= 300) {
|
|
516
516
|
return de_DeleteQueueCommandError(output, context);
|
|
517
517
|
}
|
|
518
|
-
await collectBody(output.body, context);
|
|
518
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
519
519
|
const response = {
|
|
520
520
|
$metadata: deserializeMetadata(output),
|
|
521
521
|
};
|
|
@@ -728,7 +728,7 @@ const de_PurgeQueueCommand = async (output, context) => {
|
|
|
728
728
|
if (output.statusCode >= 300) {
|
|
729
729
|
return de_PurgeQueueCommandError(output, context);
|
|
730
730
|
}
|
|
731
|
-
await collectBody(output.body, context);
|
|
731
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
732
732
|
const response = {
|
|
733
733
|
$metadata: deserializeMetadata(output),
|
|
734
734
|
};
|
|
@@ -794,7 +794,7 @@ const de_RemovePermissionCommand = async (output, context) => {
|
|
|
794
794
|
if (output.statusCode >= 300) {
|
|
795
795
|
return de_RemovePermissionCommandError(output, context);
|
|
796
796
|
}
|
|
797
|
-
await collectBody(output.body, context);
|
|
797
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
798
798
|
const response = {
|
|
799
799
|
$metadata: deserializeMetadata(output),
|
|
800
800
|
};
|
|
@@ -902,7 +902,7 @@ const de_SetQueueAttributesCommand = async (output, context) => {
|
|
|
902
902
|
if (output.statusCode >= 300) {
|
|
903
903
|
return de_SetQueueAttributesCommandError(output, context);
|
|
904
904
|
}
|
|
905
|
-
await collectBody(output.body, context);
|
|
905
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
906
906
|
const response = {
|
|
907
907
|
$metadata: deserializeMetadata(output),
|
|
908
908
|
};
|
|
@@ -968,7 +968,7 @@ const de_TagQueueCommand = async (output, context) => {
|
|
|
968
968
|
if (output.statusCode >= 300) {
|
|
969
969
|
return de_TagQueueCommandError(output, context);
|
|
970
970
|
}
|
|
971
|
-
await collectBody(output.body, context);
|
|
971
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
972
972
|
const response = {
|
|
973
973
|
$metadata: deserializeMetadata(output),
|
|
974
974
|
};
|
|
@@ -992,7 +992,7 @@ const de_UntagQueueCommand = async (output, context) => {
|
|
|
992
992
|
if (output.statusCode >= 300) {
|
|
993
993
|
return de_UntagQueueCommandError(output, context);
|
|
994
994
|
}
|
|
995
|
-
await collectBody(output.body, context);
|
|
995
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
996
996
|
const response = {
|
|
997
997
|
$metadata: deserializeMetadata(output),
|
|
998
998
|
};
|
|
@@ -2299,13 +2299,7 @@ const deserializeMetadata = (output) => ({
|
|
|
2299
2299
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2300
2300
|
cfId: output.headers["x-amz-cf-id"],
|
|
2301
2301
|
});
|
|
2302
|
-
const
|
|
2303
|
-
if (streamBody instanceof Uint8Array) {
|
|
2304
|
-
return Promise.resolve(streamBody);
|
|
2305
|
-
}
|
|
2306
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2307
|
-
};
|
|
2308
|
-
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2302
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2309
2303
|
const throwDefaultError = (0, smithy_client_1.withBaseException)(SQSServiceException_1.SQSServiceException);
|
|
2310
2304
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
2311
2305
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { decorateServiceException as __decorateServiceException, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
1
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, getValueFromTextNode as __getValueFromTextNode, parseBoolean as __parseBoolean, strictParseInt32 as __strictParseInt32, strictParseLong as __strictParseLong, withBaseException, } from "@aws-sdk/smithy-client";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { XMLParser } from "fast-xml-parser";
|
|
4
4
|
import { BatchEntryIdsNotDistinct, BatchRequestTooLong, EmptyBatchRequest, InvalidAttributeName, InvalidBatchEntryId, InvalidIdFormat, InvalidMessageContents, MessageNotInflight, OverLimit, PurgeQueueInProgress, QueueDeletedRecently, QueueDoesNotExist, QueueNameExists, ReceiptHandleIsInvalid, ResourceNotFoundException, TooManyEntriesInBatchRequest, UnsupportedOperation, } from "../models/models_0";
|
|
@@ -2250,12 +2250,6 @@ const deserializeMetadata = (output) => ({
|
|
|
2250
2250
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2251
2251
|
cfId: output.headers["x-amz-cf-id"],
|
|
2252
2252
|
});
|
|
2253
|
-
const collectBody = (streamBody = new Uint8Array(), context) => {
|
|
2254
|
-
if (streamBody instanceof Uint8Array) {
|
|
2255
|
-
return Promise.resolve(streamBody);
|
|
2256
|
-
}
|
|
2257
|
-
return context.streamCollector(streamBody) || Promise.resolve(new Uint8Array());
|
|
2258
|
-
};
|
|
2259
2253
|
const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
2260
2254
|
const throwDefaultError = withBaseException(__BaseException);
|
|
2261
2255
|
const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => {
|
|
@@ -96,7 +96,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
|
|
|
96
96
|
*/
|
|
97
97
|
runtime?: string;
|
|
98
98
|
/**
|
|
99
|
-
* Disable
|
|
99
|
+
* Disable dynamically changing the endpoint of the client based on the hostPrefix
|
|
100
100
|
* trait of an operation.
|
|
101
101
|
*/
|
|
102
102
|
disableHostPrefix?: boolean;
|
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.357.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",
|
|
@@ -21,38 +21,38 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
24
|
-
"@aws-sdk/client-sts": "3.
|
|
25
|
-
"@aws-sdk/config-resolver": "3.
|
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
27
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
28
|
-
"@aws-sdk/hash-node": "3.
|
|
29
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
30
|
-
"@aws-sdk/md5-js": "3.
|
|
31
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
32
|
-
"@aws-sdk/middleware-endpoint": "3.
|
|
33
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
34
|
-
"@aws-sdk/middleware-logger": "3.
|
|
35
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
36
|
-
"@aws-sdk/middleware-retry": "3.
|
|
37
|
-
"@aws-sdk/middleware-sdk-sqs": "3.
|
|
38
|
-
"@aws-sdk/middleware-serde": "3.
|
|
39
|
-
"@aws-sdk/middleware-signing": "3.
|
|
40
|
-
"@aws-sdk/middleware-stack": "3.
|
|
41
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
42
|
-
"@aws-sdk/node-config-provider": "3.
|
|
43
|
-
"@aws-sdk/node-http-handler": "3.
|
|
44
|
-
"@aws-sdk/smithy-client": "3.
|
|
45
|
-
"@aws-sdk/types": "3.
|
|
46
|
-
"@aws-sdk/url-parser": "3.
|
|
24
|
+
"@aws-sdk/client-sts": "3.357.0",
|
|
25
|
+
"@aws-sdk/config-resolver": "3.357.0",
|
|
26
|
+
"@aws-sdk/credential-provider-node": "3.357.0",
|
|
27
|
+
"@aws-sdk/fetch-http-handler": "3.357.0",
|
|
28
|
+
"@aws-sdk/hash-node": "3.357.0",
|
|
29
|
+
"@aws-sdk/invalid-dependency": "3.357.0",
|
|
30
|
+
"@aws-sdk/md5-js": "3.357.0",
|
|
31
|
+
"@aws-sdk/middleware-content-length": "3.357.0",
|
|
32
|
+
"@aws-sdk/middleware-endpoint": "3.357.0",
|
|
33
|
+
"@aws-sdk/middleware-host-header": "3.357.0",
|
|
34
|
+
"@aws-sdk/middleware-logger": "3.357.0",
|
|
35
|
+
"@aws-sdk/middleware-recursion-detection": "3.357.0",
|
|
36
|
+
"@aws-sdk/middleware-retry": "3.357.0",
|
|
37
|
+
"@aws-sdk/middleware-sdk-sqs": "3.357.0",
|
|
38
|
+
"@aws-sdk/middleware-serde": "3.357.0",
|
|
39
|
+
"@aws-sdk/middleware-signing": "3.357.0",
|
|
40
|
+
"@aws-sdk/middleware-stack": "3.357.0",
|
|
41
|
+
"@aws-sdk/middleware-user-agent": "3.357.0",
|
|
42
|
+
"@aws-sdk/node-config-provider": "3.357.0",
|
|
43
|
+
"@aws-sdk/node-http-handler": "3.357.0",
|
|
44
|
+
"@aws-sdk/smithy-client": "3.357.0",
|
|
45
|
+
"@aws-sdk/types": "3.357.0",
|
|
46
|
+
"@aws-sdk/url-parser": "3.357.0",
|
|
47
47
|
"@aws-sdk/util-base64": "3.310.0",
|
|
48
48
|
"@aws-sdk/util-body-length-browser": "3.310.0",
|
|
49
49
|
"@aws-sdk/util-body-length-node": "3.310.0",
|
|
50
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
51
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
52
|
-
"@aws-sdk/util-endpoints": "3.
|
|
53
|
-
"@aws-sdk/util-retry": "3.
|
|
54
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
55
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
50
|
+
"@aws-sdk/util-defaults-mode-browser": "3.357.0",
|
|
51
|
+
"@aws-sdk/util-defaults-mode-node": "3.357.0",
|
|
52
|
+
"@aws-sdk/util-endpoints": "3.357.0",
|
|
53
|
+
"@aws-sdk/util-retry": "3.357.0",
|
|
54
|
+
"@aws-sdk/util-user-agent-browser": "3.357.0",
|
|
55
|
+
"@aws-sdk/util-user-agent-node": "3.357.0",
|
|
56
56
|
"@aws-sdk/util-utf8": "3.310.0",
|
|
57
57
|
"@smithy/protocol-http": "^1.0.1",
|
|
58
58
|
"@smithy/types": "^1.0.0",
|