@cdk8s/awscdk-resolver 0.0.608 → 0.0.610

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 (145) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +3 -3
  4. package/node_modules/@aws-sdk/core/package.json +2 -2
  5. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  6. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  7. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  8. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  9. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  10. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  12. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  13. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  14. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  15. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  19. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  20. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.browser.js +1 -1
  21. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-parser.js +233 -43
  22. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.browser.js +1 -1
  23. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-parser.js +233 -43
  24. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-parser.d.ts +1 -1
  25. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-parser.d.ts +2 -1
  26. package/node_modules/@aws-sdk/xml-builder/package.json +4 -4
  27. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +518 -371
  28. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +1 -1
  29. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +326 -269
  30. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +192 -103
  31. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor.js +4 -2
  32. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +1 -1
  33. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-decode.d.ts +4 -0
  34. package/node_modules/@smithy/core/dist-types/submodules/cbor/cbor-encode.d.ts +8 -4
  35. package/node_modules/@smithy/core/package.json +1 -1
  36. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  37. package/node_modules/@smithy/fetch-http-handler/package.json +2 -2
  38. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  39. package/node_modules/@smithy/signature-v4/package.json +2 -2
  40. package/package.json +6 -6
  41. package/node_modules/@aws-sdk/xml-builder/dist-cjs/xml-external/nodable_entities.js +0 -333
  42. package/node_modules/@aws-sdk/xml-builder/dist-es/xml-external/nodable_entities.js +0 -332
  43. package/node_modules/@aws-sdk/xml-builder/dist-types/ts3.4/xml-external/nodable_entities.d.ts +0 -66
  44. package/node_modules/@aws-sdk/xml-builder/dist-types/xml-external/nodable_entities.d.ts +0 -65
  45. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/CHANGELOG.md +0 -827
  46. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/LICENSE +0 -21
  47. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/README.md +0 -202
  48. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js +0 -2
  49. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxbuilder.min.js.map +0 -1
  50. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.cjs +0 -1
  51. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.d.cts +0 -770
  52. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js +0 -2
  53. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxp.min.js.map +0 -1
  54. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js +0 -2
  55. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxparser.min.js.map +0 -1
  56. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js +0 -2
  57. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/lib/fxvalidator.min.js.map +0 -1
  58. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/package.json +0 -93
  59. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/cli.js +0 -97
  60. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/man.js +0 -17
  61. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/cli/read.js +0 -43
  62. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.d.ts +0 -739
  63. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/fxp.js +0 -14
  64. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/ignoreAttributes.js +0 -18
  65. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/util.js +0 -61
  66. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/CharsSymbol.js +0 -16
  67. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/EntitiesParser.js +0 -106
  68. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OptionsBuilder.js +0 -61
  69. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/BaseOutputBuilder.js +0 -69
  70. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsArrBuilder.js +0 -103
  71. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsMinArrBuilder.js +0 -100
  72. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/JsObjBuilder.js +0 -154
  73. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/OutputBuilders/ParserOptionsBuilder.js +0 -94
  74. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Report.js +0 -0
  75. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPath.js +0 -81
  76. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/TagPathMatcher.js +0 -13
  77. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XMLParser.js +0 -83
  78. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/Xml2JsParser.js +0 -235
  79. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlPartReader.js +0 -210
  80. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/XmlSpecialTagsReader.js +0 -111
  81. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/BufferSource.js +0 -116
  82. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/inputSource/StringSource.js +0 -121
  83. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/EntitiesParser.js +0 -105
  84. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParser.js +0 -22
  85. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/booleanParserExt.js +0 -19
  86. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/currency.js +0 -38
  87. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/join.js +0 -13
  88. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/number.js +0 -14
  89. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/v6/valueParsers/trim.js +0 -6
  90. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/validator.js +0 -425
  91. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +0 -6
  92. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +0 -407
  93. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +0 -163
  94. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +0 -840
  95. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +0 -71
  96. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/node2json.js +0 -177
  97. package/node_modules/@aws-sdk/xml-builder/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +0 -40
  98. package/node_modules/@nodable/entities/README.md +0 -41
  99. package/node_modules/@nodable/entities/package.json +0 -57
  100. package/node_modules/@nodable/entities/src/EntityDecoder.js +0 -644
  101. package/node_modules/@nodable/entities/src/EntityEncoder.js +0 -194
  102. package/node_modules/@nodable/entities/src/entities.js +0 -1159
  103. package/node_modules/@nodable/entities/src/entityTries.js +0 -49
  104. package/node_modules/@nodable/entities/src/index.d.ts +0 -341
  105. package/node_modules/@nodable/entities/src/index.js +0 -29
  106. package/node_modules/anynum/LICENSE +0 -21
  107. package/node_modules/anynum/README.md +0 -142
  108. package/node_modules/anynum/anynum.js +0 -135
  109. package/node_modules/anynum/digitTable.js +0 -116
  110. package/node_modules/anynum/package.json +0 -42
  111. package/node_modules/fast-xml-builder/CHANGELOG.md +0 -40
  112. package/node_modules/fast-xml-builder/LICENSE +0 -21
  113. package/node_modules/fast-xml-builder/README.md +0 -74
  114. package/node_modules/fast-xml-builder/lib/fxb.cjs +0 -1
  115. package/node_modules/fast-xml-builder/lib/fxb.d.cts +0 -270
  116. package/node_modules/fast-xml-builder/lib/fxb.min.js +0 -2
  117. package/node_modules/fast-xml-builder/lib/fxb.min.js.map +0 -1
  118. package/node_modules/fast-xml-builder/package.json +0 -81
  119. package/node_modules/fast-xml-builder/src/fxb.d.ts +0 -270
  120. package/node_modules/fast-xml-builder/src/fxb.js +0 -599
  121. package/node_modules/fast-xml-builder/src/ignoreAttributes.js +0 -18
  122. package/node_modules/fast-xml-builder/src/orderedJs2Xml.js +0 -359
  123. package/node_modules/fast-xml-builder/src/prettifyJs2Xml.js +0 -0
  124. package/node_modules/fast-xml-builder/src/util.js +0 -16
  125. package/node_modules/path-expression-matcher/LICENSE +0 -21
  126. package/node_modules/path-expression-matcher/README.md +0 -947
  127. package/node_modules/path-expression-matcher/lib/pem.cjs +0 -1
  128. package/node_modules/path-expression-matcher/lib/pem.d.cts +0 -715
  129. package/node_modules/path-expression-matcher/lib/pem.min.js +0 -2
  130. package/node_modules/path-expression-matcher/lib/pem.min.js.map +0 -1
  131. package/node_modules/path-expression-matcher/package.json +0 -79
  132. package/node_modules/path-expression-matcher/src/Expression.js +0 -232
  133. package/node_modules/path-expression-matcher/src/ExpressionSet.js +0 -225
  134. package/node_modules/path-expression-matcher/src/Matcher.js +0 -660
  135. package/node_modules/path-expression-matcher/src/index.d.ts +0 -589
  136. package/node_modules/path-expression-matcher/src/index.js +0 -29
  137. package/node_modules/strnum/CHANGELOG.md +0 -51
  138. package/node_modules/strnum/LICENSE +0 -21
  139. package/node_modules/strnum/README.md +0 -113
  140. package/node_modules/strnum/package.json +0 -36
  141. package/node_modules/strnum/strnum.js +0 -171
  142. package/node_modules/xml-naming/README.md +0 -189
  143. package/node_modules/xml-naming/package.json +0 -54
  144. package/node_modules/xml-naming/src/index.d.ts +0 -74
  145. package/node_modules/xml-naming/src/index.js +0 -270
@@ -1,194 +0,0 @@
1
- // EntityDecoder.js
2
- import { trie1, trie2, trie3 } from './entityTries.js';
3
-
4
- // Replacement strings indexed by char code — direct array access, no hashing
5
- const XML_UNSAFE_REPLACEMENT = new Array(128);
6
- XML_UNSAFE_REPLACEMENT[38] = '&'; // &
7
- XML_UNSAFE_REPLACEMENT[60] = '&lt;'; // <
8
- XML_UNSAFE_REPLACEMENT[62] = '&gt;'; // >
9
- XML_UNSAFE_REPLACEMENT[34] = '&quot;'; // "
10
- XML_UNSAFE_REPLACEMENT[39] = '&apos;'; // '
11
-
12
- // Typed bitmask for O(1) "is this ASCII code XML-unsafe?" check
13
- const IS_XML_UNSAFE = new Uint8Array(128);
14
- IS_XML_UNSAFE[38] = 1;
15
- IS_XML_UNSAFE[60] = 1;
16
- IS_XML_UNSAFE[62] = 1;
17
- IS_XML_UNSAFE[34] = 1;
18
- IS_XML_UNSAFE[39] = 1;
19
-
20
- // Fast pre-scan: bail out immediately if nothing needs encoding
21
- const NEEDS_PROCESSING = /[&<>"'\u0080-\uFFFF]/;
22
-
23
- export default class EntityEncoder {
24
- constructor(options = {}) {
25
- this.encodeXmlSafe = options.encodeXmlSafe !== false;
26
- this.encodeAllNamed = options.encodeAllNamed !== false;
27
- this.maxReplacements = options.maxReplacements || 0;
28
- this.replacementsCount = 0;
29
- }
30
-
31
- encode(str) {
32
- if (typeof str !== 'string' || str.length === 0) return str;
33
- if (!NEEDS_PROCESSING.test(str)) return str;
34
-
35
- const maxRep = this.maxReplacements;
36
- if (maxRep > 0 && this.replacementsCount >= maxRep) return str;
37
-
38
- // Hoist to locals — avoids `this` property lookup inside the hot loop
39
- const encodeXmlSafe = this.encodeXmlSafe;
40
- const encodeAllNamed = this.encodeAllNamed;
41
-
42
- const len = str.length;
43
-
44
- let result = '';
45
- let last = 0;
46
- let i = 0;
47
- let limitReached = false;
48
-
49
- // ── Main loop: runs to len-2 so trie3 never needs a bounds check ────────
50
- // The last 2 characters are handled by the tail block below.
51
- const mainEnd = len - 2; // i <= mainEnd guarantees i+1 and i+2 are valid
52
-
53
- while (i <= mainEnd && !limitReached) {
54
- const c0 = str.charCodeAt(i);
55
-
56
- // ── ASCII branch ───────────────────────────────────────────────────
57
- if (c0 < 128) {
58
- if (encodeXmlSafe && IS_XML_UNSAFE[c0] === 1) {
59
- result += str.substring(last, i) + XML_UNSAFE_REPLACEMENT[c0];
60
- last = ++i;
61
- if (maxRep > 0) {
62
- this.replacementsCount++;
63
- if (this.replacementsCount >= maxRep) {
64
- limitReached = true;
65
- break;
66
- }
67
- }
68
- } else {
69
- // Bulk-skip: advance to the next interesting position without
70
- // touching the outer loop overhead on every safe character
71
- i++;
72
- while (i <= mainEnd && !limitReached) {
73
- const c = str.charCodeAt(i);
74
- if (c >= 128 || (encodeXmlSafe && IS_XML_UNSAFE[c] === 1)) break;
75
- i++;
76
- }
77
- }
78
- continue;
79
- }
80
-
81
- // ── Non-ASCII: integer-keyed trie lookup ───────────────────────────
82
- // No bounds checks needed for c1/c2 because i <= mainEnd guarantees
83
- // i+1 and i+2 are both within the string.
84
- let matchedEntity = null;
85
- let advance = 1;
86
-
87
- // Try 3-char match first (longest wins)
88
- const mid3 = trie3.get(c0);
89
- if (mid3 !== undefined) {
90
- const c1 = str.charCodeAt(i + 1);
91
- const inner3 = mid3.get(c1);
92
- if (inner3 !== undefined) {
93
- const c2 = str.charCodeAt(i + 2);
94
- const candidate = inner3.get(c2);
95
- if (candidate !== undefined) { matchedEntity = candidate; advance = 3; }
96
- }
97
- }
98
-
99
- // Try 2-char match
100
- if (matchedEntity === null) {
101
- const inner2 = trie2.get(c0);
102
- if (inner2 !== undefined) {
103
- const c1 = str.charCodeAt(i + 1);
104
- const candidate = inner2.get(c1);
105
- if (candidate !== undefined) { matchedEntity = candidate; advance = 2; }
106
- }
107
- }
108
-
109
- // Try 1-char match
110
- if (matchedEntity === null && encodeAllNamed) {
111
- const candidate = trie1.get(c0);
112
- if (candidate !== undefined) { matchedEntity = candidate; }
113
- }
114
-
115
- if (matchedEntity !== null) {
116
- result += str.substring(last, i) + matchedEntity;
117
- i += advance;
118
- last = i;
119
- if (maxRep > 0) {
120
- this.replacementsCount++;
121
- if (this.replacementsCount >= maxRep) {
122
- limitReached = true;
123
- break;
124
- }
125
- }
126
- } else {
127
- i++;
128
- }
129
- }
130
-
131
- // ── Tail: handle the last 1-2 characters (no 3-char match possible) ────
132
- while (i < len && !limitReached) {
133
- const c0 = str.charCodeAt(i);
134
-
135
- if (c0 < 128) {
136
- if (encodeXmlSafe && IS_XML_UNSAFE[c0] === 1) {
137
- result += str.substring(last, i) + XML_UNSAFE_REPLACEMENT[c0];
138
- last = ++i;
139
- if (maxRep > 0) {
140
- this.replacementsCount++;
141
- if (this.replacementsCount >= maxRep) {
142
- limitReached = true;
143
- break;
144
- }
145
- }
146
- } else {
147
- i++;
148
- }
149
- continue;
150
- }
151
-
152
- // Non-ASCII tail — only 2-char and 1-char matches are possible here
153
- let matchedEntity = null;
154
- let advance = 1;
155
-
156
- if (i + 1 < len) {
157
- const inner2 = trie2.get(c0);
158
- if (inner2 !== undefined) {
159
- const c1 = str.charCodeAt(i + 1);
160
- const candidate = inner2.get(c1);
161
- if (candidate !== undefined) { matchedEntity = candidate; advance = 2; }
162
- }
163
- }
164
-
165
- if (matchedEntity === null && encodeAllNamed) {
166
- const candidate = trie1.get(c0);
167
- if (candidate !== undefined) { matchedEntity = candidate; }
168
- }
169
-
170
- if (matchedEntity !== null) {
171
- result += str.substring(last, i) + matchedEntity;
172
- i += advance;
173
- last = i;
174
- if (maxRep > 0) {
175
- this.replacementsCount++;
176
- if (this.replacementsCount >= maxRep) {
177
- limitReached = true;
178
- break;
179
- }
180
- }
181
- } else {
182
- i++;
183
- }
184
- }
185
-
186
- // ── Flush any remaining literal suffix ────────────────────────────────
187
- if (last < len) result += str.substring(last);
188
- return result;
189
- }
190
-
191
- reset() {
192
- this.replacementsCount = 0;
193
- }
194
- }