@jjrawlins/cdk-iam-policy-builder-helper 0.0.57 → 0.0.59

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 (157) hide show
  1. package/.jsii +3 -3
  2. package/cdk-iam-policy-builder-helper/go.mod +2 -2
  3. package/cdk-iam-policy-builder-helper/jsii/jsii.go +2 -2
  4. package/cdk-iam-policy-builder-helper/version +1 -1
  5. package/node_modules/@aws-sdk/client-iam/package.json +34 -34
  6. package/node_modules/@aws-sdk/client-sso/package.json +32 -32
  7. package/node_modules/@aws-sdk/core/dist-cjs/index.js +6 -6
  8. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +6 -6
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/cbor/AwsSmithyRpcV2CborProtocol.js +1 -1
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsJsonRpcProtocol.js +2 -2
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsRestJsonProtocol.js +1 -1
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/query/AwsQueryProtocol.js +1 -1
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/AwsRestXmlProtocol.js +1 -1
  14. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/ProtocolLib.d.ts +4 -4
  15. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -2
  16. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/ProtocolLib.d.ts +7 -7
  17. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/xml/AwsRestXmlProtocol.d.ts +1 -1
  18. package/node_modules/@aws-sdk/core/package.json +11 -11
  19. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  20. package/node_modules/@aws-sdk/credential-provider-http/package.json +10 -10
  21. package/node_modules/@aws-sdk/credential-provider-ini/package.json +13 -13
  22. package/node_modules/@aws-sdk/credential-provider-node/package.json +12 -12
  23. package/node_modules/@aws-sdk/credential-provider-process/package.json +6 -6
  24. package/node_modules/@aws-sdk/credential-provider-sso/package.json +8 -8
  25. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +7 -7
  26. package/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +35 -63
  27. package/node_modules/@aws-sdk/middleware-host-header/package.json +4 -4
  28. package/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +44 -75
  29. package/node_modules/@aws-sdk/middleware-logger/package.json +3 -3
  30. package/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +19 -48
  31. package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +4 -4
  32. package/node_modules/@aws-sdk/middleware-user-agent/package.json +7 -7
  33. package/node_modules/@aws-sdk/nested-clients/package.json +32 -32
  34. package/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +59 -95
  35. package/node_modules/@aws-sdk/region-config-resolver/package.json +5 -5
  36. package/node_modules/@aws-sdk/token-providers/package.json +7 -7
  37. package/node_modules/@aws-sdk/types/dist-cjs/index.js +18 -290
  38. package/node_modules/@aws-sdk/types/package.json +2 -2
  39. package/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +395 -469
  40. package/node_modules/@aws-sdk/util-endpoints/package.json +5 -5
  41. package/node_modules/@aws-sdk/util-user-agent-browser/package.json +3 -3
  42. package/node_modules/@aws-sdk/util-user-agent-node/package.json +5 -5
  43. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +106 -160
  44. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +4 -1
  45. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  46. package/node_modules/@smithy/abort-controller/package.json +2 -2
  47. package/node_modules/@smithy/config-resolver/package.json +4 -4
  48. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +1 -2
  49. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +3 -3
  50. package/node_modules/@smithy/core/dist-cjs/submodules/schema/index.js +235 -220
  51. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +1 -2
  52. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -4
  53. package/node_modules/@smithy/core/dist-es/submodules/schema/TypeRegistry.js +16 -9
  54. package/node_modules/@smithy/core/dist-es/submodules/schema/index.js +1 -0
  55. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaDeserializationMiddleware.js +4 -6
  56. package/node_modules/@smithy/core/dist-es/submodules/schema/middleware/schemaSerializationMiddleware.js +4 -6
  57. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js +26 -35
  58. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/Schema.js +0 -2
  59. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/SimpleSchema.js +6 -0
  60. package/node_modules/@smithy/core/dist-es/submodules/schema/schemas/operation.js +7 -0
  61. package/node_modules/@smithy/core/dist-types/submodules/schema/TypeRegistry.d.ts +1 -2
  62. package/node_modules/@smithy/core/dist-types/submodules/schema/index.d.ts +1 -0
  63. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  64. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/ListSchema.d.ts +2 -0
  65. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/MapSchema.d.ts +2 -0
  66. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/NormalizedSchema.d.ts +4 -21
  67. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  68. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/Schema.d.ts +1 -0
  69. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  70. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  71. package/node_modules/@smithy/core/dist-types/submodules/schema/schemas/operation.d.ts +7 -0
  72. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/TypeRegistry.d.ts +1 -2
  73. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/index.d.ts +1 -0
  74. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ErrorSchema.d.ts +2 -0
  75. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/ListSchema.d.ts +2 -0
  76. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/MapSchema.d.ts +2 -0
  77. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/NormalizedSchema.d.ts +4 -21
  78. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/OperationSchema.d.ts +2 -0
  79. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/Schema.d.ts +1 -0
  80. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/SimpleSchema.d.ts +7 -0
  81. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/StructureSchema.d.ts +2 -0
  82. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/schema/schemas/operation.d.ts +7 -0
  83. package/node_modules/@smithy/core/package.json +7 -7
  84. package/node_modules/@smithy/credential-provider-imds/package.json +5 -5
  85. package/node_modules/@smithy/fetch-http-handler/package.json +5 -5
  86. package/node_modules/@smithy/hash-node/package.json +2 -2
  87. package/node_modules/@smithy/invalid-dependency/package.json +2 -2
  88. package/node_modules/@smithy/middleware-content-length/package.json +3 -3
  89. package/node_modules/@smithy/middleware-endpoint/package.json +8 -8
  90. package/node_modules/@smithy/middleware-retry/package.json +8 -8
  91. package/node_modules/@smithy/middleware-serde/package.json +3 -3
  92. package/node_modules/@smithy/middleware-stack/package.json +2 -2
  93. package/node_modules/@smithy/node-config-provider/package.json +4 -4
  94. package/node_modules/@smithy/node-http-handler/package.json +5 -5
  95. package/node_modules/@smithy/property-provider/package.json +2 -2
  96. package/node_modules/@smithy/protocol-http/package.json +2 -2
  97. package/node_modules/@smithy/querystring-builder/package.json +2 -2
  98. package/node_modules/@smithy/querystring-parser/package.json +2 -2
  99. package/node_modules/@smithy/service-error-classification/package.json +2 -2
  100. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +2 -1
  101. package/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js +1 -0
  102. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +1 -1
  103. package/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +1 -1
  104. package/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +1 -1
  105. package/node_modules/@smithy/shared-ini-file-loader/dist-types/constants.d.ts +4 -0
  106. package/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +1 -4
  107. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/constants.d.ts +4 -0
  108. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +1 -4
  109. package/node_modules/@smithy/shared-ini-file-loader/package.json +2 -2
  110. package/node_modules/@smithy/signature-v4/package.json +4 -4
  111. package/node_modules/@smithy/smithy-client/package.json +7 -7
  112. package/node_modules/@smithy/types/dist-es/index.js +1 -0
  113. package/node_modules/@smithy/types/dist-es/schema/schema-deprecated.js +1 -0
  114. package/node_modules/@smithy/types/dist-types/index.d.ts +1 -0
  115. package/node_modules/@smithy/types/dist-types/schema/schema-deprecated.d.ts +136 -0
  116. package/node_modules/@smithy/types/dist-types/schema/schema.d.ts +26 -68
  117. package/node_modules/@smithy/types/dist-types/schema/static-schemas.d.ts +8 -8
  118. package/node_modules/@smithy/types/dist-types/serde.d.ts +2 -2
  119. package/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +1 -0
  120. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema-deprecated.d.ts +142 -0
  121. package/node_modules/@smithy/types/dist-types/ts3.4/schema/schema.d.ts +27 -72
  122. package/node_modules/@smithy/types/dist-types/ts3.4/schema/static-schemas.d.ts +10 -10
  123. package/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +2 -2
  124. package/node_modules/@smithy/types/package.json +1 -1
  125. package/node_modules/@smithy/url-parser/package.json +3 -3
  126. package/node_modules/@smithy/util-defaults-mode-browser/package.json +4 -4
  127. package/node_modules/@smithy/util-defaults-mode-node/package.json +7 -7
  128. package/node_modules/@smithy/util-endpoints/dist-cjs/index.js +31 -22
  129. package/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +1 -11
  130. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +15 -2
  131. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +17 -2
  132. package/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +1 -13
  133. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +25 -2
  134. package/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +1 -21
  135. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +1 -2
  136. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +7 -2
  137. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +6 -1
  138. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +1 -3
  139. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +6 -0
  140. package/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +1 -3
  141. package/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +1 -2
  142. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +7 -2
  143. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +6 -1
  144. package/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +1 -3
  145. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +6 -0
  146. package/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +1 -3
  147. package/node_modules/@smithy/util-endpoints/package.json +3 -3
  148. package/node_modules/@smithy/util-middleware/package.json +2 -2
  149. package/node_modules/@smithy/util-retry/package.json +3 -3
  150. package/node_modules/@smithy/util-stream/dist-cjs/index.js +8 -15
  151. package/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +10 -3
  152. package/node_modules/@smithy/util-stream/package.json +4 -4
  153. package/node_modules/@smithy/util-waiter/package.json +3 -3
  154. package/package.json +5 -5
  155. package/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +0 -15
  156. package/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +0 -9
  157. package/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +0 -9
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.901.0",
3
+ "version": "3.910.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@aws-sdk/types": "3.901.0",
29
- "@smithy/types": "^4.6.0",
30
- "@smithy/url-parser": "^4.2.0",
31
- "@smithy/util-endpoints": "^3.2.0",
28
+ "@aws-sdk/types": "3.910.0",
29
+ "@smithy/types": "^4.7.1",
30
+ "@smithy/url-parser": "^4.2.2",
31
+ "@smithy/util-endpoints": "^3.2.2",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-browser",
3
- "version": "3.907.0",
3
+ "version": "3.910.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
@@ -24,8 +24,8 @@
24
24
  "license": "Apache-2.0",
25
25
  "react-native": "dist-es/index.native.js",
26
26
  "dependencies": {
27
- "@aws-sdk/types": "3.901.0",
28
- "@smithy/types": "^4.6.0",
27
+ "@aws-sdk/types": "3.910.0",
28
+ "@smithy/types": "^4.7.1",
29
29
  "bowser": "^2.11.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.908.0",
3
+ "version": "3.911.0",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
6
6
  "build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
@@ -22,10 +22,10 @@
22
22
  },
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
- "@aws-sdk/middleware-user-agent": "3.908.0",
26
- "@aws-sdk/types": "3.901.0",
27
- "@smithy/node-config-provider": "^4.3.0",
28
- "@smithy/types": "^4.6.0",
25
+ "@aws-sdk/middleware-user-agent": "3.911.0",
26
+ "@aws-sdk/types": "3.910.0",
27
+ "@smithy/node-config-provider": "^4.3.2",
28
+ "@smithy/types": "^4.7.1",
29
29
  "tslib": "^2.6.2"
30
30
  },
31
31
  "devDependencies": {
@@ -1,178 +1,124 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
1
+ 'use strict';
20
2
 
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- XmlNode: () => XmlNode,
25
- XmlText: () => XmlText,
26
- parseXML: () => import_xml_parser.parseXML
27
- });
28
- module.exports = __toCommonJS(index_exports);
3
+ var xmlParser = require('./xml-parser');
29
4
 
30
- // src/escape-attribute.ts
31
5
  function escapeAttribute(value) {
32
- return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
6
+ return value.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;");
33
7
  }
34
- __name(escapeAttribute, "escapeAttribute");
35
8
 
36
- // src/escape-element.ts
37
9
  function escapeElement(value) {
38
- return value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/'/g, "&apos;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/\r/g, "&#x0D;").replace(/\n/g, "&#x0A;").replace(/\u0085/g, "&#x85;").replace(/\u2028/, "&#x2028;");
10
+ return value
11
+ .replace(/&/g, "&amp;")
12
+ .replace(/"/g, "&quot;")
13
+ .replace(/'/g, "&apos;")
14
+ .replace(/</g, "&lt;")
15
+ .replace(/>/g, "&gt;")
16
+ .replace(/\r/g, "&#x0D;")
17
+ .replace(/\n/g, "&#x0A;")
18
+ .replace(/\u0085/g, "&#x85;")
19
+ .replace(/\u2028/, "&#x2028;");
39
20
  }
40
- __name(escapeElement, "escapeElement");
41
21
 
42
- // src/XmlText.ts
43
- var XmlText = class {
44
- constructor(value) {
45
- this.value = value;
46
- }
47
- static {
48
- __name(this, "XmlText");
49
- }
50
- toString() {
51
- return escapeElement("" + this.value);
52
- }
53
- };
22
+ class XmlText {
23
+ value;
24
+ constructor(value) {
25
+ this.value = value;
26
+ }
27
+ toString() {
28
+ return escapeElement("" + this.value);
29
+ }
30
+ }
54
31
 
55
- // src/XmlNode.ts
56
- var XmlNode = class _XmlNode {
57
- constructor(name, children = []) {
58
- this.name = name;
59
- this.children = children;
60
- }
61
- static {
62
- __name(this, "XmlNode");
63
- }
64
- attributes = {};
65
- static of(name, childText, withName) {
66
- const node = new _XmlNode(name);
67
- if (childText !== void 0) {
68
- node.addChildNode(new XmlText(childText));
32
+ class XmlNode {
33
+ name;
34
+ children;
35
+ attributes = {};
36
+ static of(name, childText, withName) {
37
+ const node = new XmlNode(name);
38
+ if (childText !== undefined) {
39
+ node.addChildNode(new XmlText(childText));
40
+ }
41
+ if (withName !== undefined) {
42
+ node.withName(withName);
43
+ }
44
+ return node;
69
45
  }
70
- if (withName !== void 0) {
71
- node.withName(withName);
46
+ constructor(name, children = []) {
47
+ this.name = name;
48
+ this.children = children;
72
49
  }
73
- return node;
74
- }
75
- withName(name) {
76
- this.name = name;
77
- return this;
78
- }
79
- addAttribute(name, value) {
80
- this.attributes[name] = value;
81
- return this;
82
- }
83
- addChildNode(child) {
84
- this.children.push(child);
85
- return this;
86
- }
87
- removeAttribute(name) {
88
- delete this.attributes[name];
89
- return this;
90
- }
91
- /**
92
- * @internal
93
- * Alias of {@link XmlNode#withName(string)} for codegen brevity.
94
- */
95
- n(name) {
96
- this.name = name;
97
- return this;
98
- }
99
- /**
100
- * @internal
101
- * Alias of {@link XmlNode#addChildNode(string)} for codegen brevity.
102
- */
103
- c(child) {
104
- this.children.push(child);
105
- return this;
106
- }
107
- /**
108
- * @internal
109
- * Checked version of {@link XmlNode#addAttribute(string)} for codegen brevity.
110
- */
111
- a(name, value) {
112
- if (value != null) {
113
- this.attributes[name] = value;
50
+ withName(name) {
51
+ this.name = name;
52
+ return this;
114
53
  }
115
- return this;
116
- }
117
- /**
118
- * Create a child node.
119
- * Used in serialization of string fields.
120
- * @internal
121
- */
122
- cc(input, field, withName = field) {
123
- if (input[field] != null) {
124
- const node = _XmlNode.of(field, input[field]).withName(withName);
125
- this.c(node);
54
+ addAttribute(name, value) {
55
+ this.attributes[name] = value;
56
+ return this;
126
57
  }
127
- }
128
- /**
129
- * Creates list child nodes.
130
- * @internal
131
- */
132
- l(input, listName, memberName, valueProvider) {
133
- if (input[listName] != null) {
134
- const nodes = valueProvider();
135
- nodes.map((node) => {
136
- node.withName(memberName);
137
- this.c(node);
138
- });
58
+ addChildNode(child) {
59
+ this.children.push(child);
60
+ return this;
139
61
  }
140
- }
141
- /**
142
- * Creates list child nodes with container.
143
- * @internal
144
- */
145
- lc(input, listName, memberName, valueProvider) {
146
- if (input[listName] != null) {
147
- const nodes = valueProvider();
148
- const containerNode = new _XmlNode(memberName);
149
- nodes.map((node) => {
150
- containerNode.c(node);
151
- });
152
- this.c(containerNode);
62
+ removeAttribute(name) {
63
+ delete this.attributes[name];
64
+ return this;
153
65
  }
154
- }
155
- toString() {
156
- const hasChildren = Boolean(this.children.length);
157
- let xmlText = `<${this.name}`;
158
- const attributes = this.attributes;
159
- for (const attributeName of Object.keys(attributes)) {
160
- const attribute = attributes[attributeName];
161
- if (attribute != null) {
162
- xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`;
163
- }
66
+ n(name) {
67
+ this.name = name;
68
+ return this;
164
69
  }
165
- return xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}</${this.name}>`;
166
- }
167
- };
168
-
169
- // src/index.ts
170
- var import_xml_parser = require("././xml-parser");
171
- // Annotate the CommonJS export names for ESM import in node:
70
+ c(child) {
71
+ this.children.push(child);
72
+ return this;
73
+ }
74
+ a(name, value) {
75
+ if (value != null) {
76
+ this.attributes[name] = value;
77
+ }
78
+ return this;
79
+ }
80
+ cc(input, field, withName = field) {
81
+ if (input[field] != null) {
82
+ const node = XmlNode.of(field, input[field]).withName(withName);
83
+ this.c(node);
84
+ }
85
+ }
86
+ l(input, listName, memberName, valueProvider) {
87
+ if (input[listName] != null) {
88
+ const nodes = valueProvider();
89
+ nodes.map((node) => {
90
+ node.withName(memberName);
91
+ this.c(node);
92
+ });
93
+ }
94
+ }
95
+ lc(input, listName, memberName, valueProvider) {
96
+ if (input[listName] != null) {
97
+ const nodes = valueProvider();
98
+ const containerNode = new XmlNode(memberName);
99
+ nodes.map((node) => {
100
+ containerNode.c(node);
101
+ });
102
+ this.c(containerNode);
103
+ }
104
+ }
105
+ toString() {
106
+ const hasChildren = Boolean(this.children.length);
107
+ let xmlText = `<${this.name}`;
108
+ const attributes = this.attributes;
109
+ for (const attributeName of Object.keys(attributes)) {
110
+ const attribute = attributes[attributeName];
111
+ if (attribute != null) {
112
+ xmlText += ` ${attributeName}="${escapeAttribute("" + attribute)}"`;
113
+ }
114
+ }
115
+ return (xmlText += !hasChildren ? "/>" : `>${this.children.map((c) => c.toString()).join("")}</${this.name}>`);
116
+ }
117
+ }
172
118
 
173
- 0 && (module.exports = {
174
- parseXML,
175
- XmlNode,
176
- XmlText
119
+ Object.defineProperty(exports, "parseXML", {
120
+ enumerable: true,
121
+ get: function () { return xmlParser.parseXML; }
177
122
  });
178
-
123
+ exports.XmlNode = XmlNode;
124
+ exports.XmlText = XmlText;
@@ -1,5 +1,8 @@
1
- const parser = new DOMParser();
1
+ let parser;
2
2
  export function parseXML(xmlString) {
3
+ if (!parser) {
4
+ parser = new DOMParser();
5
+ }
3
6
  const xmlDocument = parser.parseFromString(xmlString, "application/xml");
4
7
  if (xmlDocument.getElementsByTagName("parsererror").length > 0) {
5
8
  throw new Error("DOMParser XML parsing error.");
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.901.0",
3
+ "version": "3.911.0",
4
4
  "description": "XML builder for the AWS SDK",
5
5
  "dependencies": {
6
- "@smithy/types": "^4.6.0",
6
+ "@smithy/types": "^4.7.1",
7
7
  "fast-xml-parser": "5.2.5",
8
8
  "tslib": "^2.6.2"
9
9
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/abort-controller",
3
- "version": "4.2.1",
3
+ "version": "4.2.3",
4
4
  "description": "A simple abort controller library",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -26,7 +26,7 @@
26
26
  "license": "Apache-2.0",
27
27
  "sideEffects": false,
28
28
  "dependencies": {
29
- "@smithy/types": "^4.7.0",
29
+ "@smithy/types": "^4.8.0",
30
30
  "tslib": "^2.6.2"
31
31
  },
32
32
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.3.1",
3
+ "version": "4.3.3",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline config-resolver",
@@ -25,10 +25,10 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/node-config-provider": "^4.3.1",
29
- "@smithy/types": "^4.7.0",
28
+ "@smithy/node-config-provider": "^4.3.3",
29
+ "@smithy/types": "^4.8.0",
30
30
  "@smithy/util-config-provider": "^4.2.0",
31
- "@smithy/util-middleware": "^4.2.1",
31
+ "@smithy/util-middleware": "^4.2.3",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "devDependencies": {
@@ -19,7 +19,6 @@ class EventStreamSerde {
19
19
  const marshaller = this.marshaller;
20
20
  const eventStreamMember = requestSchema.getEventStreamMember();
21
21
  const unionSchema = requestSchema.getMemberSchema(eventStreamMember);
22
- unionSchema.getMemberSchemas();
23
22
  const serializer = this.serializer;
24
23
  const defaultContentType = this.defaultContentType;
25
24
  const initialRequestMarker = Symbol("initialRequestMarker");
@@ -132,7 +131,7 @@ class EventStreamSerde {
132
131
  let explicitPayloadContentType;
133
132
  const isKnownSchema = (() => {
134
133
  const struct = unionSchema.getSchema();
135
- return struct.memberNames.includes(unionMember);
134
+ return struct[4].includes(unionMember);
136
135
  })();
137
136
  const additionalHeaders = {};
138
137
  if (!isKnownSchema) {
@@ -80,10 +80,10 @@ class HttpProtocol extends SerdeContext {
80
80
  }
81
81
  }
82
82
  setHostPrefix(request, operationSchema, input) {
83
- const operationNs = schema.NormalizedSchema.of(operationSchema);
84
83
  const inputNs = schema.NormalizedSchema.of(operationSchema.input);
85
- if (operationNs.getMergedTraits().endpoint) {
86
- let hostPrefix = operationNs.getMergedTraits().endpoint?.[0];
84
+ const opTraits = schema.translateTraits(operationSchema.traits ?? {});
85
+ if (opTraits.endpoint) {
86
+ let hostPrefix = opTraits.endpoint?.[0];
87
87
  if (typeof hostPrefix === "string") {
88
88
  const hostLabelInputs = [...inputNs.structIterator()].filter(([, member]) => member.getMergedTraits().hostLabel);
89
89
  for (const [name] of hostLabelInputs) {