@aws-sdk/client-sns 3.186.0 → 3.188.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 +8 -0
- package/dist-cjs/protocols/Aws_query.js +8 -4
- package/dist-es/SNS.js +170 -177
- package/dist-es/SNSClient.js +22 -28
- package/dist-es/commands/AddPermissionCommand.js +22 -29
- package/dist-es/commands/CheckIfPhoneNumberIsOptedOutCommand.js +21 -28
- package/dist-es/commands/ConfirmSubscriptionCommand.js +21 -28
- package/dist-es/commands/CreatePlatformApplicationCommand.js +21 -28
- package/dist-es/commands/CreatePlatformEndpointCommand.js +21 -28
- package/dist-es/commands/CreateSMSSandboxPhoneNumberCommand.js +21 -28
- package/dist-es/commands/CreateTopicCommand.js +21 -28
- package/dist-es/commands/DeleteEndpointCommand.js +22 -29
- package/dist-es/commands/DeletePlatformApplicationCommand.js +22 -29
- package/dist-es/commands/DeleteSMSSandboxPhoneNumberCommand.js +21 -28
- package/dist-es/commands/DeleteTopicCommand.js +22 -29
- package/dist-es/commands/GetDataProtectionPolicyCommand.js +21 -28
- package/dist-es/commands/GetEndpointAttributesCommand.js +21 -28
- package/dist-es/commands/GetPlatformApplicationAttributesCommand.js +21 -28
- package/dist-es/commands/GetSMSAttributesCommand.js +21 -28
- package/dist-es/commands/GetSMSSandboxAccountStatusCommand.js +21 -28
- package/dist-es/commands/GetSubscriptionAttributesCommand.js +21 -28
- package/dist-es/commands/GetTopicAttributesCommand.js +21 -28
- package/dist-es/commands/ListEndpointsByPlatformApplicationCommand.js +21 -28
- package/dist-es/commands/ListOriginationNumbersCommand.js +21 -28
- package/dist-es/commands/ListPhoneNumbersOptedOutCommand.js +21 -28
- package/dist-es/commands/ListPlatformApplicationsCommand.js +21 -28
- package/dist-es/commands/ListSMSSandboxPhoneNumbersCommand.js +21 -28
- package/dist-es/commands/ListSubscriptionsByTopicCommand.js +21 -28
- package/dist-es/commands/ListSubscriptionsCommand.js +21 -28
- package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
- package/dist-es/commands/ListTopicsCommand.js +21 -28
- package/dist-es/commands/OptInPhoneNumberCommand.js +21 -28
- package/dist-es/commands/PublishBatchCommand.js +21 -28
- package/dist-es/commands/PublishCommand.js +21 -28
- package/dist-es/commands/PutDataProtectionPolicyCommand.js +22 -29
- package/dist-es/commands/RemovePermissionCommand.js +22 -29
- package/dist-es/commands/SetEndpointAttributesCommand.js +22 -29
- package/dist-es/commands/SetPlatformApplicationAttributesCommand.js +22 -29
- package/dist-es/commands/SetSMSAttributesCommand.js +21 -28
- package/dist-es/commands/SetSubscriptionAttributesCommand.js +22 -29
- package/dist-es/commands/SetTopicAttributesCommand.js +22 -29
- package/dist-es/commands/SubscribeCommand.js +21 -28
- package/dist-es/commands/TagResourceCommand.js +21 -28
- package/dist-es/commands/UnsubscribeCommand.js +22 -29
- package/dist-es/commands/UntagResourceCommand.js +21 -28
- package/dist-es/commands/VerifySMSSandboxPhoneNumberCommand.js +21 -28
- package/dist-es/endpoints.js +8 -8
- package/dist-es/models/SNSServiceException.js +5 -10
- package/dist-es/models/models_0.js +639 -472
- package/dist-es/pagination/ListEndpointsByPlatformApplicationPaginator.js +24 -67
- package/dist-es/pagination/ListOriginationNumbersPaginator.js +25 -68
- package/dist-es/pagination/ListPhoneNumbersOptedOutPaginator.js +24 -67
- package/dist-es/pagination/ListPlatformApplicationsPaginator.js +24 -67
- package/dist-es/pagination/ListSMSSandboxPhoneNumbersPaginator.js +25 -68
- package/dist-es/pagination/ListSubscriptionsByTopicPaginator.js +24 -67
- package/dist-es/pagination/ListSubscriptionsPaginator.js +24 -67
- package/dist-es/pagination/ListTopicsPaginator.js +24 -67
- package/dist-es/protocols/Aws_query.js +3120 -4109
- package/dist-es/runtimeConfig.browser.js +26 -12
- package/dist-es/runtimeConfig.js +30 -12
- package/dist-es/runtimeConfig.native.js +8 -5
- package/dist-es/runtimeConfig.shared.js +8 -11
- package/package.json +34 -35
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.188.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.187.0...v3.188.0) (2022-10-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-sdk/client-sns
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
# [3.186.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.185.0...v3.186.0) (2022-10-06)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @aws-sdk/client-sns
|
|
@@ -4,7 +4,6 @@ exports.deserializeAws_queryDeleteEndpointCommand = exports.deserializeAws_query
|
|
|
4
4
|
exports.deserializeAws_queryVerifySMSSandboxPhoneNumberCommand = exports.deserializeAws_queryUntagResourceCommand = exports.deserializeAws_queryUnsubscribeCommand = exports.deserializeAws_queryTagResourceCommand = exports.deserializeAws_querySubscribeCommand = exports.deserializeAws_querySetTopicAttributesCommand = exports.deserializeAws_querySetSubscriptionAttributesCommand = exports.deserializeAws_querySetSMSAttributesCommand = exports.deserializeAws_querySetPlatformApplicationAttributesCommand = exports.deserializeAws_querySetEndpointAttributesCommand = exports.deserializeAws_queryRemovePermissionCommand = exports.deserializeAws_queryPutDataProtectionPolicyCommand = exports.deserializeAws_queryPublishBatchCommand = exports.deserializeAws_queryPublishCommand = exports.deserializeAws_queryOptInPhoneNumberCommand = exports.deserializeAws_queryListTopicsCommand = exports.deserializeAws_queryListTagsForResourceCommand = exports.deserializeAws_queryListSubscriptionsByTopicCommand = exports.deserializeAws_queryListSubscriptionsCommand = exports.deserializeAws_queryListSMSSandboxPhoneNumbersCommand = exports.deserializeAws_queryListPlatformApplicationsCommand = exports.deserializeAws_queryListPhoneNumbersOptedOutCommand = exports.deserializeAws_queryListOriginationNumbersCommand = exports.deserializeAws_queryListEndpointsByPlatformApplicationCommand = exports.deserializeAws_queryGetTopicAttributesCommand = exports.deserializeAws_queryGetSubscriptionAttributesCommand = exports.deserializeAws_queryGetSMSSandboxAccountStatusCommand = exports.deserializeAws_queryGetSMSAttributesCommand = exports.deserializeAws_queryGetPlatformApplicationAttributesCommand = exports.deserializeAws_queryGetEndpointAttributesCommand = exports.deserializeAws_queryGetDataProtectionPolicyCommand = exports.deserializeAws_queryDeleteTopicCommand = exports.deserializeAws_queryDeleteSMSSandboxPhoneNumberCommand = exports.deserializeAws_queryDeletePlatformApplicationCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
-
const entities_1 = require("entities");
|
|
8
7
|
const fast_xml_parser_1 = require("fast-xml-parser");
|
|
9
8
|
const models_0_1 = require("../models/models_0");
|
|
10
9
|
const SNSServiceException_1 = require("../models/SNSServiceException");
|
|
@@ -4367,13 +4366,18 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
|
|
|
4367
4366
|
};
|
|
4368
4367
|
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4369
4368
|
if (encoded.length) {
|
|
4370
|
-
const
|
|
4369
|
+
const parser = new fast_xml_parser_1.XMLParser({
|
|
4371
4370
|
attributeNamePrefix: "",
|
|
4371
|
+
htmlEntities: true,
|
|
4372
4372
|
ignoreAttributes: false,
|
|
4373
|
-
|
|
4373
|
+
ignoreDeclaration: true,
|
|
4374
|
+
parseTagValue: false,
|
|
4374
4375
|
trimValues: false,
|
|
4375
|
-
tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" :
|
|
4376
|
+
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
4376
4377
|
});
|
|
4378
|
+
parser.addEntity("#xD", "\r");
|
|
4379
|
+
parser.addEntity("#10", "\n");
|
|
4380
|
+
const parsedObj = parser.parse(encoded);
|
|
4377
4381
|
const textNodeName = "#text";
|
|
4378
4382
|
const key = Object.keys(parsedObj)[0];
|
|
4379
4383
|
const parsedObjToReturn = parsedObj[key];
|