@cdk8s/awscdk-resolver 0.0.366 → 0.0.367

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 (34) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +83 -83
  4. package/node_modules/@aws-sdk/client-cloudformation/dist-es/protocols/Aws_query.js +83 -83
  5. package/node_modules/@aws-sdk/client-cloudformation/package.json +5 -5
  6. package/node_modules/@aws-sdk/client-sso/package.json +4 -4
  7. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +15 -37
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/XmlShapeDeserializer.js +2 -13
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/xml/parseXmlBody.js +2 -13
  10. package/node_modules/@aws-sdk/core/package.json +2 -3
  11. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  12. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  13. package/node_modules/@aws-sdk/credential-provider-ini/package.json +8 -8
  14. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  15. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  17. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  18. package/node_modules/@aws-sdk/middleware-user-agent/package.json +2 -2
  19. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  20. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  21. package/node_modules/@aws-sdk/util-user-agent-node/package.json +2 -2
  22. package/node_modules/@aws-sdk/xml-builder/dist-cjs/index.js +6 -1
  23. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +18 -0
  24. package/node_modules/@aws-sdk/xml-builder/dist-es/index.js +1 -0
  25. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +54 -0
  26. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +15 -0
  27. package/node_modules/@aws-sdk/xml-builder/dist-types/index.d.ts +4 -0
  28. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/index.d.ts +1 -0
  29. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.browser.d.ts +1 -0
  30. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -0
  31. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.browser.d.ts +9 -0
  32. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +4 -0
  33. package/node_modules/@aws-sdk/xml-builder/package.json +9 -1
  34. package/package.json +4 -4
@@ -0,0 +1,15 @@
1
+ import { XMLParser } from "fast-xml-parser";
2
+ const parser = new XMLParser({
3
+ attributeNamePrefix: "",
4
+ htmlEntities: true,
5
+ ignoreAttributes: false,
6
+ ignoreDeclaration: true,
7
+ parseTagValue: false,
8
+ trimValues: false,
9
+ tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
10
+ });
11
+ parser.addEntity("#xD", "\r");
12
+ parser.addEntity("#10", "\n");
13
+ export function parseXML(xmlString) {
14
+ return parser.parse(xmlString, true);
15
+ }
@@ -6,3 +6,7 @@ export * from "./XmlNode";
6
6
  * @internal
7
7
  */
8
8
  export * from "./XmlText";
9
+ /**
10
+ * @internal
11
+ */
12
+ export { parseXML } from "./xml-parser";
@@ -1,2 +1,3 @@
1
1
  export * from "./XmlNode";
2
2
  export * from "./XmlText";
3
+ export { parseXML } from "./xml-parser";
@@ -0,0 +1 @@
1
+ export declare function parseXML(xmlString: string): any;
@@ -0,0 +1 @@
1
+ export declare function parseXML(xmlString: string): any;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Cases where this differs from fast-xml-parser:
3
+ *
4
+ * 1. Mixing text with nested tags (does not occur in AWS REST XML).
5
+ * <mixed-text> hello, <bold>world</bold>, how are you?</mixed-text>
6
+ *
7
+ * @internal
8
+ */
9
+ export declare function parseXML(xmlString: string): any;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare function parseXML(xmlString: string): any;
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.893.0",
3
+ "version": "3.894.0",
4
4
  "description": "XML builder for the AWS SDK",
5
5
  "dependencies": {
6
6
  "@smithy/types": "^4.5.0",
7
+ "fast-xml-parser": "5.2.5",
7
8
  "tslib": "^2.6.2"
8
9
  },
9
10
  "scripts": {
@@ -39,6 +40,13 @@
39
40
  "files": [
40
41
  "dist-*/**"
41
42
  ],
43
+ "browser": {
44
+ "./dist-es/xml-parser": "./dist-es/xml-parser.browser"
45
+ },
46
+ "react-native": {
47
+ "./dist-es/xml-parser": "./dist-es/xml-parser",
48
+ "./dist-cjs/xml-parser": "./dist-cjs/xml-parser"
49
+ },
42
50
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/xml-builder",
43
51
  "repository": {
44
52
  "type": "git",
package/package.json CHANGED
@@ -52,7 +52,7 @@
52
52
  "aws-cdk": "^2.1029.2",
53
53
  "aws-cdk-lib": "2.195.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.201.30",
55
+ "cdk8s-cli": "^2.201.32",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
@@ -66,7 +66,7 @@
66
66
  "jsii-docgen": "^10.5.0",
67
67
  "jsii-pacmak": "^1.114.1",
68
68
  "jsii-rosetta": "^5",
69
- "projen": "^0.96.2",
69
+ "projen": "^0.96.3",
70
70
  "ts-jest": "^27",
71
71
  "ts-node": "^10.9.2",
72
72
  "typescript": "^5.9.2"
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.893.0"
80
+ "@aws-sdk/client-cloudformation": "^3.894.0"
81
81
  },
82
82
  "bundledDependencies": [
83
83
  "@aws-sdk/client-cloudformation"
@@ -93,7 +93,7 @@
93
93
  "publishConfig": {
94
94
  "access": "public"
95
95
  },
96
- "version": "0.0.366",
96
+ "version": "0.0.367",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [