@aws-sdk/client-docdb 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.
Files changed (81) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist-cjs/protocols/Aws_query.js +8 -4
  3. package/dist-es/DocDB.js +214 -221
  4. package/dist-es/DocDBClient.js +22 -28
  5. package/dist-es/commands/AddSourceIdentifierToSubscriptionCommand.js +21 -28
  6. package/dist-es/commands/AddTagsToResourceCommand.js +22 -29
  7. package/dist-es/commands/ApplyPendingMaintenanceActionCommand.js +21 -28
  8. package/dist-es/commands/CopyDBClusterParameterGroupCommand.js +21 -28
  9. package/dist-es/commands/CopyDBClusterSnapshotCommand.js +21 -28
  10. package/dist-es/commands/CreateDBClusterCommand.js +21 -28
  11. package/dist-es/commands/CreateDBClusterParameterGroupCommand.js +21 -28
  12. package/dist-es/commands/CreateDBClusterSnapshotCommand.js +21 -28
  13. package/dist-es/commands/CreateDBInstanceCommand.js +21 -28
  14. package/dist-es/commands/CreateDBSubnetGroupCommand.js +21 -28
  15. package/dist-es/commands/CreateEventSubscriptionCommand.js +21 -28
  16. package/dist-es/commands/CreateGlobalClusterCommand.js +21 -28
  17. package/dist-es/commands/DeleteDBClusterCommand.js +21 -28
  18. package/dist-es/commands/DeleteDBClusterParameterGroupCommand.js +22 -29
  19. package/dist-es/commands/DeleteDBClusterSnapshotCommand.js +21 -28
  20. package/dist-es/commands/DeleteDBInstanceCommand.js +21 -28
  21. package/dist-es/commands/DeleteDBSubnetGroupCommand.js +22 -29
  22. package/dist-es/commands/DeleteEventSubscriptionCommand.js +21 -28
  23. package/dist-es/commands/DeleteGlobalClusterCommand.js +21 -28
  24. package/dist-es/commands/DescribeCertificatesCommand.js +21 -28
  25. package/dist-es/commands/DescribeDBClusterParameterGroupsCommand.js +21 -28
  26. package/dist-es/commands/DescribeDBClusterParametersCommand.js +21 -28
  27. package/dist-es/commands/DescribeDBClusterSnapshotAttributesCommand.js +21 -28
  28. package/dist-es/commands/DescribeDBClusterSnapshotsCommand.js +21 -28
  29. package/dist-es/commands/DescribeDBClustersCommand.js +21 -28
  30. package/dist-es/commands/DescribeDBEngineVersionsCommand.js +21 -28
  31. package/dist-es/commands/DescribeDBInstancesCommand.js +21 -28
  32. package/dist-es/commands/DescribeDBSubnetGroupsCommand.js +21 -28
  33. package/dist-es/commands/DescribeEngineDefaultClusterParametersCommand.js +21 -28
  34. package/dist-es/commands/DescribeEventCategoriesCommand.js +21 -28
  35. package/dist-es/commands/DescribeEventSubscriptionsCommand.js +21 -28
  36. package/dist-es/commands/DescribeEventsCommand.js +21 -28
  37. package/dist-es/commands/DescribeGlobalClustersCommand.js +21 -28
  38. package/dist-es/commands/DescribeOrderableDBInstanceOptionsCommand.js +21 -28
  39. package/dist-es/commands/DescribePendingMaintenanceActionsCommand.js +21 -28
  40. package/dist-es/commands/FailoverDBClusterCommand.js +21 -28
  41. package/dist-es/commands/ListTagsForResourceCommand.js +21 -28
  42. package/dist-es/commands/ModifyDBClusterCommand.js +21 -28
  43. package/dist-es/commands/ModifyDBClusterParameterGroupCommand.js +21 -28
  44. package/dist-es/commands/ModifyDBClusterSnapshotAttributeCommand.js +21 -28
  45. package/dist-es/commands/ModifyDBInstanceCommand.js +21 -28
  46. package/dist-es/commands/ModifyDBSubnetGroupCommand.js +21 -28
  47. package/dist-es/commands/ModifyEventSubscriptionCommand.js +21 -28
  48. package/dist-es/commands/ModifyGlobalClusterCommand.js +21 -28
  49. package/dist-es/commands/RebootDBInstanceCommand.js +21 -28
  50. package/dist-es/commands/RemoveFromGlobalClusterCommand.js +21 -28
  51. package/dist-es/commands/RemoveSourceIdentifierFromSubscriptionCommand.js +21 -28
  52. package/dist-es/commands/RemoveTagsFromResourceCommand.js +22 -29
  53. package/dist-es/commands/ResetDBClusterParameterGroupCommand.js +21 -28
  54. package/dist-es/commands/RestoreDBClusterFromSnapshotCommand.js +21 -28
  55. package/dist-es/commands/RestoreDBClusterToPointInTimeCommand.js +21 -28
  56. package/dist-es/commands/StartDBClusterCommand.js +21 -28
  57. package/dist-es/commands/StopDBClusterCommand.js +21 -28
  58. package/dist-es/endpoints.js +8 -8
  59. package/dist-es/models/DocDBServiceException.js +5 -10
  60. package/dist-es/models/models_0.js +1083 -818
  61. package/dist-es/pagination/DescribeCertificatesPaginator.js +25 -68
  62. package/dist-es/pagination/DescribeDBClusterParameterGroupsPaginator.js +25 -68
  63. package/dist-es/pagination/DescribeDBClusterParametersPaginator.js +25 -68
  64. package/dist-es/pagination/DescribeDBClusterSnapshotsPaginator.js +25 -68
  65. package/dist-es/pagination/DescribeDBClustersPaginator.js +25 -68
  66. package/dist-es/pagination/DescribeDBEngineVersionsPaginator.js +25 -68
  67. package/dist-es/pagination/DescribeDBInstancesPaginator.js +25 -68
  68. package/dist-es/pagination/DescribeDBSubnetGroupsPaginator.js +25 -68
  69. package/dist-es/pagination/DescribeEventSubscriptionsPaginator.js +25 -68
  70. package/dist-es/pagination/DescribeEventsPaginator.js +25 -68
  71. package/dist-es/pagination/DescribeGlobalClustersPaginator.js +25 -68
  72. package/dist-es/pagination/DescribeOrderableDBInstanceOptionsPaginator.js +25 -68
  73. package/dist-es/pagination/DescribePendingMaintenanceActionsPaginator.js +25 -68
  74. package/dist-es/protocols/Aws_query.js +4064 -5266
  75. package/dist-es/runtimeConfig.browser.js +26 -12
  76. package/dist-es/runtimeConfig.js +30 -12
  77. package/dist-es/runtimeConfig.native.js +8 -5
  78. package/dist-es/runtimeConfig.shared.js +8 -11
  79. package/dist-es/waiters/waitForDBInstanceAvailable.js +106 -187
  80. package/dist-es/waiters/waitForDBInstanceDeleted.js +94 -165
  81. package/package.json +36 -37
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-docdb
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-docdb
@@ -5,7 +5,6 @@ exports.deserializeAws_queryRemoveSourceIdentifierFromSubscriptionCommand = expo
5
5
  exports.deserializeAws_queryStopDBClusterCommand = exports.deserializeAws_queryStartDBClusterCommand = exports.deserializeAws_queryRestoreDBClusterToPointInTimeCommand = exports.deserializeAws_queryRestoreDBClusterFromSnapshotCommand = exports.deserializeAws_queryResetDBClusterParameterGroupCommand = exports.deserializeAws_queryRemoveTagsFromResourceCommand = void 0;
6
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
7
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
8
- const entities_1 = require("entities");
9
8
  const fast_xml_parser_1 = require("fast-xml-parser");
10
9
  const DocDBServiceException_1 = require("../models/DocDBServiceException");
11
10
  const models_0_1 = require("../models/models_0");
@@ -7151,13 +7150,18 @@ const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, bod
7151
7150
  };
7152
7151
  const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
7153
7152
  if (encoded.length) {
7154
- const parsedObj = (0, fast_xml_parser_1.parse)(encoded, {
7153
+ const parser = new fast_xml_parser_1.XMLParser({
7155
7154
  attributeNamePrefix: "",
7155
+ htmlEntities: true,
7156
7156
  ignoreAttributes: false,
7157
- parseNodeValue: false,
7157
+ ignoreDeclaration: true,
7158
+ parseTagValue: false,
7158
7159
  trimValues: false,
7159
- tagValueProcessor: (val) => (val.trim() === "" && val.includes("\n") ? "" : (0, entities_1.decodeHTML)(val)),
7160
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
7160
7161
  });
7162
+ parser.addEntity("#xD", "\r");
7163
+ parser.addEntity("#10", "\n");
7164
+ const parsedObj = parser.parse(encoded);
7161
7165
  const textNodeName = "#text";
7162
7166
  const key = Object.keys(parsedObj)[0];
7163
7167
  const parsedObjToReturn = parsedObj[key];