@mavogel/cdk-vscode-server 0.1.13 → 0.1.15
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/.jsii +4 -4
- package/lib/idle-monitor/idle-monitor.js +1 -1
- package/lib/vscode-server.js +1 -1
- package/mavogelcdkvscodeserver/go.mod +3 -3
- package/node_modules/node-html-parser/CHANGELOG.md +9 -0
- package/node_modules/node-html-parser/dist/index.cjs +144 -16
- package/node_modules/node-html-parser/dist/index.mjs +144 -16
- package/node_modules/node-html-parser/dist/index.umd.js +144 -16
- package/node_modules/node-html-parser/package.json +1 -1
- package/package.json +11 -11
package/.jsii
CHANGED
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
]
|
|
9
9
|
},
|
|
10
10
|
"bundled": {
|
|
11
|
-
"node-html-parser": "^9.0.
|
|
11
|
+
"node-html-parser": "^9.0.5"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@mavogel/mvc-projen": "^0.0.
|
|
14
|
+
"@mavogel/mvc-projen": "^0.0.62",
|
|
15
15
|
"aws-cdk-lib": "^2.269.0",
|
|
16
16
|
"cdk-nag": "^3.0.1",
|
|
17
17
|
"constructs": "^10.5.1"
|
|
@@ -10766,6 +10766,6 @@
|
|
|
10766
10766
|
"symbolId": "src/vscode-server:VSCodeServerProps"
|
|
10767
10767
|
}
|
|
10768
10768
|
},
|
|
10769
|
-
"version": "0.1.
|
|
10770
|
-
"fingerprint": "
|
|
10769
|
+
"version": "0.1.15",
|
|
10770
|
+
"fingerprint": "xaiA9+nt75GFrKx8UxwF1lEEWTfX/bI3kJnFxff01Mg="
|
|
10771
10771
|
}
|
|
@@ -47,7 +47,7 @@ const log_groups_1 = require("../log-groups");
|
|
|
47
47
|
* Construct that monitors CloudFront request metrics and stops the EC2 instance when idle
|
|
48
48
|
*/
|
|
49
49
|
class IdleMonitor extends constructs_1.Construct {
|
|
50
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/cdk-vscode-server.IdleMonitor", version: "0.1.
|
|
50
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/cdk-vscode-server.IdleMonitor", version: "0.1.15" };
|
|
51
51
|
/**
|
|
52
52
|
* The Lambda function that performs idle monitoring
|
|
53
53
|
*/
|
package/lib/vscode-server.js
CHANGED
|
@@ -91,7 +91,7 @@ var LinuxArchitectureType;
|
|
|
91
91
|
* VSCodeServer - spin it up in under 10 minutes
|
|
92
92
|
*/
|
|
93
93
|
class VSCodeServer extends constructs_1.Construct {
|
|
94
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/cdk-vscode-server.VSCodeServer", version: "0.1.
|
|
94
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "@mavogel/cdk-vscode-server.VSCodeServer", version: "0.1.15" };
|
|
95
95
|
/**
|
|
96
96
|
* The name of the domain the server is reachable
|
|
97
97
|
*/
|
|
@@ -3,9 +3,9 @@ module github.com/mavogel/cdk-vscode-server/mavogelcdkvscodeserver
|
|
|
3
3
|
go 1.23
|
|
4
4
|
|
|
5
5
|
require (
|
|
6
|
-
github.com/aws/jsii-runtime-go v1.
|
|
7
|
-
github.com/MV-Consulting/mvc-projen/mavogelmvcprojen v0.0.
|
|
8
|
-
github.com/aws/aws-cdk-go/awscdk/v2 v2.
|
|
6
|
+
github.com/aws/jsii-runtime-go v1.142.0
|
|
7
|
+
github.com/MV-Consulting/mvc-projen/mavogelmvcprojen v0.0.62
|
|
8
|
+
github.com/aws/aws-cdk-go/awscdk/v2 v2.274.0
|
|
9
9
|
github.com/cdklabs/cdk-nag-go/cdknag/v3 v3.0.2
|
|
10
10
|
github.com/aws/constructs-go/constructs/v10 v10.8.1
|
|
11
11
|
github.com/projen/projen-go/projen v0.91.8 // indirect
|
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [9.0.5](https://github.com/taoqf/node-fast-html-parser/compare/v9.0.4...v9.0.5) (2026-10-19)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* avoid repeated scans during unclosed-tag repair ([01bd548](https://github.com/taoqf/node-fast-html-parser/commit/01bd548962093c4ba2e9783b908ce74e2c4eeb4e))
|
|
11
|
+
* close optional table tags at section boundaries ([23fe6ab](https://github.com/taoqf/node-fast-html-parser/commit/23fe6ab337e8e4f2e894d79188804212cff48d69))
|
|
12
|
+
* keep omitted table rows and sections as siblings ([461a468](https://github.com/taoqf/node-fast-html-parser/commit/461a468557be5ae1ae7553142127a9de8b8d6db8))
|
|
13
|
+
|
|
5
14
|
### [9.0.4](https://github.com/taoqf/node-fast-html-parser/compare/v9.0.3...v9.0.4) (2026-09-07)
|
|
6
15
|
|
|
7
16
|
### [9.0.3](https://github.com/taoqf/node-fast-html-parser/compare/v9.0.2...v9.0.3) (2026-09-03)
|
|
@@ -4644,26 +4644,90 @@ const kElementsClosedByOpening = {
|
|
|
4644
4644
|
td: {
|
|
4645
4645
|
td: true,
|
|
4646
4646
|
th: true,
|
|
4647
|
+
tr: true,
|
|
4648
|
+
tbody: true,
|
|
4649
|
+
tfoot: true,
|
|
4647
4650
|
TD: true,
|
|
4648
|
-
TH: true
|
|
4651
|
+
TH: true,
|
|
4652
|
+
TR: true,
|
|
4653
|
+
TBODY: true,
|
|
4654
|
+
TFOOT: true
|
|
4649
4655
|
},
|
|
4650
4656
|
TD: {
|
|
4651
4657
|
td: true,
|
|
4652
4658
|
th: true,
|
|
4659
|
+
tr: true,
|
|
4660
|
+
tbody: true,
|
|
4661
|
+
tfoot: true,
|
|
4653
4662
|
TD: true,
|
|
4654
|
-
TH: true
|
|
4663
|
+
TH: true,
|
|
4664
|
+
TR: true,
|
|
4665
|
+
TBODY: true,
|
|
4666
|
+
TFOOT: true
|
|
4655
4667
|
},
|
|
4656
4668
|
th: {
|
|
4657
4669
|
td: true,
|
|
4658
4670
|
th: true,
|
|
4671
|
+
tr: true,
|
|
4672
|
+
tbody: true,
|
|
4673
|
+
tfoot: true,
|
|
4659
4674
|
TD: true,
|
|
4660
|
-
TH: true
|
|
4675
|
+
TH: true,
|
|
4676
|
+
TR: true,
|
|
4677
|
+
TBODY: true,
|
|
4678
|
+
TFOOT: true
|
|
4661
4679
|
},
|
|
4662
4680
|
TH: {
|
|
4663
4681
|
td: true,
|
|
4664
4682
|
th: true,
|
|
4683
|
+
tr: true,
|
|
4684
|
+
tbody: true,
|
|
4685
|
+
tfoot: true,
|
|
4665
4686
|
TD: true,
|
|
4666
|
-
TH: true
|
|
4687
|
+
TH: true,
|
|
4688
|
+
TR: true,
|
|
4689
|
+
TBODY: true,
|
|
4690
|
+
TFOOT: true
|
|
4691
|
+
},
|
|
4692
|
+
tr: {
|
|
4693
|
+
tr: true,
|
|
4694
|
+
tbody: true,
|
|
4695
|
+
tfoot: true,
|
|
4696
|
+
TR: true,
|
|
4697
|
+
TBODY: true,
|
|
4698
|
+
TFOOT: true
|
|
4699
|
+
},
|
|
4700
|
+
TR: {
|
|
4701
|
+
tr: true,
|
|
4702
|
+
tbody: true,
|
|
4703
|
+
tfoot: true,
|
|
4704
|
+
TR: true,
|
|
4705
|
+
TBODY: true,
|
|
4706
|
+
TFOOT: true
|
|
4707
|
+
},
|
|
4708
|
+
thead: {
|
|
4709
|
+
tbody: true,
|
|
4710
|
+
tfoot: true,
|
|
4711
|
+
TBODY: true,
|
|
4712
|
+
TFOOT: true
|
|
4713
|
+
},
|
|
4714
|
+
THEAD: {
|
|
4715
|
+
tbody: true,
|
|
4716
|
+
tfoot: true,
|
|
4717
|
+
TBODY: true,
|
|
4718
|
+
TFOOT: true
|
|
4719
|
+
},
|
|
4720
|
+
tbody: {
|
|
4721
|
+
tbody: true,
|
|
4722
|
+
tfoot: true,
|
|
4723
|
+
TBODY: true,
|
|
4724
|
+
TFOOT: true
|
|
4725
|
+
},
|
|
4726
|
+
TBODY: {
|
|
4727
|
+
tbody: true,
|
|
4728
|
+
tfoot: true,
|
|
4729
|
+
TBODY: true,
|
|
4730
|
+
TFOOT: true
|
|
4667
4731
|
},
|
|
4668
4732
|
h1: {
|
|
4669
4733
|
h1: true,
|
|
@@ -4786,25 +4850,85 @@ const kElementsClosedByClosing = {
|
|
|
4786
4850
|
td: {
|
|
4787
4851
|
tr: true,
|
|
4788
4852
|
table: true,
|
|
4853
|
+
thead: true,
|
|
4854
|
+
tbody: true,
|
|
4855
|
+
tfoot: true,
|
|
4789
4856
|
TR: true,
|
|
4790
|
-
TABLE: true
|
|
4857
|
+
TABLE: true,
|
|
4858
|
+
THEAD: true,
|
|
4859
|
+
TBODY: true,
|
|
4860
|
+
TFOOT: true
|
|
4791
4861
|
},
|
|
4792
4862
|
TD: {
|
|
4793
4863
|
tr: true,
|
|
4794
4864
|
table: true,
|
|
4865
|
+
thead: true,
|
|
4866
|
+
tbody: true,
|
|
4867
|
+
tfoot: true,
|
|
4795
4868
|
TR: true,
|
|
4796
|
-
TABLE: true
|
|
4869
|
+
TABLE: true,
|
|
4870
|
+
THEAD: true,
|
|
4871
|
+
TBODY: true,
|
|
4872
|
+
TFOOT: true
|
|
4797
4873
|
},
|
|
4798
4874
|
th: {
|
|
4799
4875
|
tr: true,
|
|
4800
4876
|
table: true,
|
|
4877
|
+
thead: true,
|
|
4878
|
+
tbody: true,
|
|
4879
|
+
tfoot: true,
|
|
4801
4880
|
TR: true,
|
|
4802
|
-
TABLE: true
|
|
4881
|
+
TABLE: true,
|
|
4882
|
+
THEAD: true,
|
|
4883
|
+
TBODY: true,
|
|
4884
|
+
TFOOT: true
|
|
4803
4885
|
},
|
|
4804
4886
|
TH: {
|
|
4805
4887
|
tr: true,
|
|
4806
4888
|
table: true,
|
|
4889
|
+
thead: true,
|
|
4890
|
+
tbody: true,
|
|
4891
|
+
tfoot: true,
|
|
4807
4892
|
TR: true,
|
|
4893
|
+
TABLE: true,
|
|
4894
|
+
THEAD: true,
|
|
4895
|
+
TBODY: true,
|
|
4896
|
+
TFOOT: true
|
|
4897
|
+
},
|
|
4898
|
+
tr: {
|
|
4899
|
+
table: true,
|
|
4900
|
+
thead: true,
|
|
4901
|
+
tbody: true,
|
|
4902
|
+
tfoot: true,
|
|
4903
|
+
TABLE: true,
|
|
4904
|
+
THEAD: true,
|
|
4905
|
+
TBODY: true,
|
|
4906
|
+
TFOOT: true
|
|
4907
|
+
},
|
|
4908
|
+
TR: {
|
|
4909
|
+
table: true,
|
|
4910
|
+
thead: true,
|
|
4911
|
+
tbody: true,
|
|
4912
|
+
tfoot: true,
|
|
4913
|
+
TABLE: true,
|
|
4914
|
+
THEAD: true,
|
|
4915
|
+
TBODY: true,
|
|
4916
|
+
TFOOT: true
|
|
4917
|
+
},
|
|
4918
|
+
tbody: {
|
|
4919
|
+
table: true,
|
|
4920
|
+
TABLE: true
|
|
4921
|
+
},
|
|
4922
|
+
TBODY: {
|
|
4923
|
+
table: true,
|
|
4924
|
+
TABLE: true
|
|
4925
|
+
},
|
|
4926
|
+
tfoot: {
|
|
4927
|
+
table: true,
|
|
4928
|
+
TABLE: true
|
|
4929
|
+
},
|
|
4930
|
+
TFOOT: {
|
|
4931
|
+
table: true,
|
|
4808
4932
|
TABLE: true
|
|
4809
4933
|
},
|
|
4810
4934
|
dt: {
|
|
@@ -4920,9 +5044,9 @@ function base_parse(data, options = {}) {
|
|
|
4920
5044
|
const isQuoted = val[0] === `'` || val[0] === `"`;
|
|
4921
5045
|
attrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;
|
|
4922
5046
|
}
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
5047
|
+
if (!closingSlash && !options.preserveTagNesting) {
|
|
5048
|
+
var _kElementsClosedByOpe;
|
|
5049
|
+
while ((_kElementsClosedByOpe = kElementsClosedByOpening[currentParent.rawTagName]) === null || _kElementsClosedByOpe === void 0 ? void 0 : _kElementsClosedByOpe[tagName]) {
|
|
4926
5050
|
stack.pop();
|
|
4927
5051
|
currentParent = arr_back(stack);
|
|
4928
5052
|
}
|
|
@@ -5014,21 +5138,25 @@ function parse$1(data, options = {}) {
|
|
|
5014
5138
|
if (last.parentNode === oneBefore && last.tagName === oneBefore.tagName) {
|
|
5015
5139
|
if (options.parseNoneClosedTags !== true) {
|
|
5016
5140
|
oneBefore.removeChild(last);
|
|
5017
|
-
last.
|
|
5018
|
-
oneBefore.parentNode.appendChild(child);
|
|
5019
|
-
});
|
|
5141
|
+
reparentChildren(last, oneBefore.parentNode);
|
|
5020
5142
|
stack.pop();
|
|
5021
5143
|
}
|
|
5022
5144
|
} else if (options.parseNoneClosedTags !== true) {
|
|
5023
5145
|
oneBefore.removeChild(last);
|
|
5024
|
-
last
|
|
5025
|
-
oneBefore.appendChild(child);
|
|
5026
|
-
});
|
|
5146
|
+
reparentChildren(last, oneBefore);
|
|
5027
5147
|
}
|
|
5028
5148
|
}
|
|
5029
5149
|
}
|
|
5030
5150
|
return root;
|
|
5031
5151
|
}
|
|
5152
|
+
function reparentChildren(source, parent) {
|
|
5153
|
+
const children = source.childNodes;
|
|
5154
|
+
source.childNodes = [];
|
|
5155
|
+
for (const child of children) {
|
|
5156
|
+
child.parentNode = null;
|
|
5157
|
+
parent.appendChild(child);
|
|
5158
|
+
}
|
|
5159
|
+
}
|
|
5032
5160
|
/**
|
|
5033
5161
|
* Resolves a list of {@link NodeInsertable} to a list of nodes,
|
|
5034
5162
|
* and removes nodes from any potential parent.
|
|
@@ -4640,26 +4640,90 @@ const kElementsClosedByOpening = {
|
|
|
4640
4640
|
td: {
|
|
4641
4641
|
td: true,
|
|
4642
4642
|
th: true,
|
|
4643
|
+
tr: true,
|
|
4644
|
+
tbody: true,
|
|
4645
|
+
tfoot: true,
|
|
4643
4646
|
TD: true,
|
|
4644
|
-
TH: true
|
|
4647
|
+
TH: true,
|
|
4648
|
+
TR: true,
|
|
4649
|
+
TBODY: true,
|
|
4650
|
+
TFOOT: true
|
|
4645
4651
|
},
|
|
4646
4652
|
TD: {
|
|
4647
4653
|
td: true,
|
|
4648
4654
|
th: true,
|
|
4655
|
+
tr: true,
|
|
4656
|
+
tbody: true,
|
|
4657
|
+
tfoot: true,
|
|
4649
4658
|
TD: true,
|
|
4650
|
-
TH: true
|
|
4659
|
+
TH: true,
|
|
4660
|
+
TR: true,
|
|
4661
|
+
TBODY: true,
|
|
4662
|
+
TFOOT: true
|
|
4651
4663
|
},
|
|
4652
4664
|
th: {
|
|
4653
4665
|
td: true,
|
|
4654
4666
|
th: true,
|
|
4667
|
+
tr: true,
|
|
4668
|
+
tbody: true,
|
|
4669
|
+
tfoot: true,
|
|
4655
4670
|
TD: true,
|
|
4656
|
-
TH: true
|
|
4671
|
+
TH: true,
|
|
4672
|
+
TR: true,
|
|
4673
|
+
TBODY: true,
|
|
4674
|
+
TFOOT: true
|
|
4657
4675
|
},
|
|
4658
4676
|
TH: {
|
|
4659
4677
|
td: true,
|
|
4660
4678
|
th: true,
|
|
4679
|
+
tr: true,
|
|
4680
|
+
tbody: true,
|
|
4681
|
+
tfoot: true,
|
|
4661
4682
|
TD: true,
|
|
4662
|
-
TH: true
|
|
4683
|
+
TH: true,
|
|
4684
|
+
TR: true,
|
|
4685
|
+
TBODY: true,
|
|
4686
|
+
TFOOT: true
|
|
4687
|
+
},
|
|
4688
|
+
tr: {
|
|
4689
|
+
tr: true,
|
|
4690
|
+
tbody: true,
|
|
4691
|
+
tfoot: true,
|
|
4692
|
+
TR: true,
|
|
4693
|
+
TBODY: true,
|
|
4694
|
+
TFOOT: true
|
|
4695
|
+
},
|
|
4696
|
+
TR: {
|
|
4697
|
+
tr: true,
|
|
4698
|
+
tbody: true,
|
|
4699
|
+
tfoot: true,
|
|
4700
|
+
TR: true,
|
|
4701
|
+
TBODY: true,
|
|
4702
|
+
TFOOT: true
|
|
4703
|
+
},
|
|
4704
|
+
thead: {
|
|
4705
|
+
tbody: true,
|
|
4706
|
+
tfoot: true,
|
|
4707
|
+
TBODY: true,
|
|
4708
|
+
TFOOT: true
|
|
4709
|
+
},
|
|
4710
|
+
THEAD: {
|
|
4711
|
+
tbody: true,
|
|
4712
|
+
tfoot: true,
|
|
4713
|
+
TBODY: true,
|
|
4714
|
+
TFOOT: true
|
|
4715
|
+
},
|
|
4716
|
+
tbody: {
|
|
4717
|
+
tbody: true,
|
|
4718
|
+
tfoot: true,
|
|
4719
|
+
TBODY: true,
|
|
4720
|
+
TFOOT: true
|
|
4721
|
+
},
|
|
4722
|
+
TBODY: {
|
|
4723
|
+
tbody: true,
|
|
4724
|
+
tfoot: true,
|
|
4725
|
+
TBODY: true,
|
|
4726
|
+
TFOOT: true
|
|
4663
4727
|
},
|
|
4664
4728
|
h1: {
|
|
4665
4729
|
h1: true,
|
|
@@ -4782,25 +4846,85 @@ const kElementsClosedByClosing = {
|
|
|
4782
4846
|
td: {
|
|
4783
4847
|
tr: true,
|
|
4784
4848
|
table: true,
|
|
4849
|
+
thead: true,
|
|
4850
|
+
tbody: true,
|
|
4851
|
+
tfoot: true,
|
|
4785
4852
|
TR: true,
|
|
4786
|
-
TABLE: true
|
|
4853
|
+
TABLE: true,
|
|
4854
|
+
THEAD: true,
|
|
4855
|
+
TBODY: true,
|
|
4856
|
+
TFOOT: true
|
|
4787
4857
|
},
|
|
4788
4858
|
TD: {
|
|
4789
4859
|
tr: true,
|
|
4790
4860
|
table: true,
|
|
4861
|
+
thead: true,
|
|
4862
|
+
tbody: true,
|
|
4863
|
+
tfoot: true,
|
|
4791
4864
|
TR: true,
|
|
4792
|
-
TABLE: true
|
|
4865
|
+
TABLE: true,
|
|
4866
|
+
THEAD: true,
|
|
4867
|
+
TBODY: true,
|
|
4868
|
+
TFOOT: true
|
|
4793
4869
|
},
|
|
4794
4870
|
th: {
|
|
4795
4871
|
tr: true,
|
|
4796
4872
|
table: true,
|
|
4873
|
+
thead: true,
|
|
4874
|
+
tbody: true,
|
|
4875
|
+
tfoot: true,
|
|
4797
4876
|
TR: true,
|
|
4798
|
-
TABLE: true
|
|
4877
|
+
TABLE: true,
|
|
4878
|
+
THEAD: true,
|
|
4879
|
+
TBODY: true,
|
|
4880
|
+
TFOOT: true
|
|
4799
4881
|
},
|
|
4800
4882
|
TH: {
|
|
4801
4883
|
tr: true,
|
|
4802
4884
|
table: true,
|
|
4885
|
+
thead: true,
|
|
4886
|
+
tbody: true,
|
|
4887
|
+
tfoot: true,
|
|
4803
4888
|
TR: true,
|
|
4889
|
+
TABLE: true,
|
|
4890
|
+
THEAD: true,
|
|
4891
|
+
TBODY: true,
|
|
4892
|
+
TFOOT: true
|
|
4893
|
+
},
|
|
4894
|
+
tr: {
|
|
4895
|
+
table: true,
|
|
4896
|
+
thead: true,
|
|
4897
|
+
tbody: true,
|
|
4898
|
+
tfoot: true,
|
|
4899
|
+
TABLE: true,
|
|
4900
|
+
THEAD: true,
|
|
4901
|
+
TBODY: true,
|
|
4902
|
+
TFOOT: true
|
|
4903
|
+
},
|
|
4904
|
+
TR: {
|
|
4905
|
+
table: true,
|
|
4906
|
+
thead: true,
|
|
4907
|
+
tbody: true,
|
|
4908
|
+
tfoot: true,
|
|
4909
|
+
TABLE: true,
|
|
4910
|
+
THEAD: true,
|
|
4911
|
+
TBODY: true,
|
|
4912
|
+
TFOOT: true
|
|
4913
|
+
},
|
|
4914
|
+
tbody: {
|
|
4915
|
+
table: true,
|
|
4916
|
+
TABLE: true
|
|
4917
|
+
},
|
|
4918
|
+
TBODY: {
|
|
4919
|
+
table: true,
|
|
4920
|
+
TABLE: true
|
|
4921
|
+
},
|
|
4922
|
+
tfoot: {
|
|
4923
|
+
table: true,
|
|
4924
|
+
TABLE: true
|
|
4925
|
+
},
|
|
4926
|
+
TFOOT: {
|
|
4927
|
+
table: true,
|
|
4804
4928
|
TABLE: true
|
|
4805
4929
|
},
|
|
4806
4930
|
dt: {
|
|
@@ -4916,9 +5040,9 @@ function base_parse(data, options = {}) {
|
|
|
4916
5040
|
const isQuoted = val[0] === `'` || val[0] === `"`;
|
|
4917
5041
|
attrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;
|
|
4918
5042
|
}
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
5043
|
+
if (!closingSlash && !options.preserveTagNesting) {
|
|
5044
|
+
var _kElementsClosedByOpe;
|
|
5045
|
+
while ((_kElementsClosedByOpe = kElementsClosedByOpening[currentParent.rawTagName]) === null || _kElementsClosedByOpe === void 0 ? void 0 : _kElementsClosedByOpe[tagName]) {
|
|
4922
5046
|
stack.pop();
|
|
4923
5047
|
currentParent = arr_back(stack);
|
|
4924
5048
|
}
|
|
@@ -5010,21 +5134,25 @@ function parse$1(data, options = {}) {
|
|
|
5010
5134
|
if (last.parentNode === oneBefore && last.tagName === oneBefore.tagName) {
|
|
5011
5135
|
if (options.parseNoneClosedTags !== true) {
|
|
5012
5136
|
oneBefore.removeChild(last);
|
|
5013
|
-
last.
|
|
5014
|
-
oneBefore.parentNode.appendChild(child);
|
|
5015
|
-
});
|
|
5137
|
+
reparentChildren(last, oneBefore.parentNode);
|
|
5016
5138
|
stack.pop();
|
|
5017
5139
|
}
|
|
5018
5140
|
} else if (options.parseNoneClosedTags !== true) {
|
|
5019
5141
|
oneBefore.removeChild(last);
|
|
5020
|
-
last
|
|
5021
|
-
oneBefore.appendChild(child);
|
|
5022
|
-
});
|
|
5142
|
+
reparentChildren(last, oneBefore);
|
|
5023
5143
|
}
|
|
5024
5144
|
}
|
|
5025
5145
|
}
|
|
5026
5146
|
return root;
|
|
5027
5147
|
}
|
|
5148
|
+
function reparentChildren(source, parent) {
|
|
5149
|
+
const children = source.childNodes;
|
|
5150
|
+
source.childNodes = [];
|
|
5151
|
+
for (const child of children) {
|
|
5152
|
+
child.parentNode = null;
|
|
5153
|
+
parent.appendChild(child);
|
|
5154
|
+
}
|
|
5155
|
+
}
|
|
5028
5156
|
/**
|
|
5029
5157
|
* Resolves a list of {@link NodeInsertable} to a list of nodes,
|
|
5030
5158
|
* and removes nodes from any potential parent.
|
|
@@ -4647,26 +4647,90 @@
|
|
|
4647
4647
|
td: {
|
|
4648
4648
|
td: true,
|
|
4649
4649
|
th: true,
|
|
4650
|
+
tr: true,
|
|
4651
|
+
tbody: true,
|
|
4652
|
+
tfoot: true,
|
|
4650
4653
|
TD: true,
|
|
4651
|
-
TH: true
|
|
4654
|
+
TH: true,
|
|
4655
|
+
TR: true,
|
|
4656
|
+
TBODY: true,
|
|
4657
|
+
TFOOT: true
|
|
4652
4658
|
},
|
|
4653
4659
|
TD: {
|
|
4654
4660
|
td: true,
|
|
4655
4661
|
th: true,
|
|
4662
|
+
tr: true,
|
|
4663
|
+
tbody: true,
|
|
4664
|
+
tfoot: true,
|
|
4656
4665
|
TD: true,
|
|
4657
|
-
TH: true
|
|
4666
|
+
TH: true,
|
|
4667
|
+
TR: true,
|
|
4668
|
+
TBODY: true,
|
|
4669
|
+
TFOOT: true
|
|
4658
4670
|
},
|
|
4659
4671
|
th: {
|
|
4660
4672
|
td: true,
|
|
4661
4673
|
th: true,
|
|
4674
|
+
tr: true,
|
|
4675
|
+
tbody: true,
|
|
4676
|
+
tfoot: true,
|
|
4662
4677
|
TD: true,
|
|
4663
|
-
TH: true
|
|
4678
|
+
TH: true,
|
|
4679
|
+
TR: true,
|
|
4680
|
+
TBODY: true,
|
|
4681
|
+
TFOOT: true
|
|
4664
4682
|
},
|
|
4665
4683
|
TH: {
|
|
4666
4684
|
td: true,
|
|
4667
4685
|
th: true,
|
|
4686
|
+
tr: true,
|
|
4687
|
+
tbody: true,
|
|
4688
|
+
tfoot: true,
|
|
4668
4689
|
TD: true,
|
|
4669
|
-
TH: true
|
|
4690
|
+
TH: true,
|
|
4691
|
+
TR: true,
|
|
4692
|
+
TBODY: true,
|
|
4693
|
+
TFOOT: true
|
|
4694
|
+
},
|
|
4695
|
+
tr: {
|
|
4696
|
+
tr: true,
|
|
4697
|
+
tbody: true,
|
|
4698
|
+
tfoot: true,
|
|
4699
|
+
TR: true,
|
|
4700
|
+
TBODY: true,
|
|
4701
|
+
TFOOT: true
|
|
4702
|
+
},
|
|
4703
|
+
TR: {
|
|
4704
|
+
tr: true,
|
|
4705
|
+
tbody: true,
|
|
4706
|
+
tfoot: true,
|
|
4707
|
+
TR: true,
|
|
4708
|
+
TBODY: true,
|
|
4709
|
+
TFOOT: true
|
|
4710
|
+
},
|
|
4711
|
+
thead: {
|
|
4712
|
+
tbody: true,
|
|
4713
|
+
tfoot: true,
|
|
4714
|
+
TBODY: true,
|
|
4715
|
+
TFOOT: true
|
|
4716
|
+
},
|
|
4717
|
+
THEAD: {
|
|
4718
|
+
tbody: true,
|
|
4719
|
+
tfoot: true,
|
|
4720
|
+
TBODY: true,
|
|
4721
|
+
TFOOT: true
|
|
4722
|
+
},
|
|
4723
|
+
tbody: {
|
|
4724
|
+
tbody: true,
|
|
4725
|
+
tfoot: true,
|
|
4726
|
+
TBODY: true,
|
|
4727
|
+
TFOOT: true
|
|
4728
|
+
},
|
|
4729
|
+
TBODY: {
|
|
4730
|
+
tbody: true,
|
|
4731
|
+
tfoot: true,
|
|
4732
|
+
TBODY: true,
|
|
4733
|
+
TFOOT: true
|
|
4670
4734
|
},
|
|
4671
4735
|
h1: {
|
|
4672
4736
|
h1: true,
|
|
@@ -4789,25 +4853,85 @@
|
|
|
4789
4853
|
td: {
|
|
4790
4854
|
tr: true,
|
|
4791
4855
|
table: true,
|
|
4856
|
+
thead: true,
|
|
4857
|
+
tbody: true,
|
|
4858
|
+
tfoot: true,
|
|
4792
4859
|
TR: true,
|
|
4793
|
-
TABLE: true
|
|
4860
|
+
TABLE: true,
|
|
4861
|
+
THEAD: true,
|
|
4862
|
+
TBODY: true,
|
|
4863
|
+
TFOOT: true
|
|
4794
4864
|
},
|
|
4795
4865
|
TD: {
|
|
4796
4866
|
tr: true,
|
|
4797
4867
|
table: true,
|
|
4868
|
+
thead: true,
|
|
4869
|
+
tbody: true,
|
|
4870
|
+
tfoot: true,
|
|
4798
4871
|
TR: true,
|
|
4799
|
-
TABLE: true
|
|
4872
|
+
TABLE: true,
|
|
4873
|
+
THEAD: true,
|
|
4874
|
+
TBODY: true,
|
|
4875
|
+
TFOOT: true
|
|
4800
4876
|
},
|
|
4801
4877
|
th: {
|
|
4802
4878
|
tr: true,
|
|
4803
4879
|
table: true,
|
|
4880
|
+
thead: true,
|
|
4881
|
+
tbody: true,
|
|
4882
|
+
tfoot: true,
|
|
4804
4883
|
TR: true,
|
|
4805
|
-
TABLE: true
|
|
4884
|
+
TABLE: true,
|
|
4885
|
+
THEAD: true,
|
|
4886
|
+
TBODY: true,
|
|
4887
|
+
TFOOT: true
|
|
4806
4888
|
},
|
|
4807
4889
|
TH: {
|
|
4808
4890
|
tr: true,
|
|
4809
4891
|
table: true,
|
|
4892
|
+
thead: true,
|
|
4893
|
+
tbody: true,
|
|
4894
|
+
tfoot: true,
|
|
4810
4895
|
TR: true,
|
|
4896
|
+
TABLE: true,
|
|
4897
|
+
THEAD: true,
|
|
4898
|
+
TBODY: true,
|
|
4899
|
+
TFOOT: true
|
|
4900
|
+
},
|
|
4901
|
+
tr: {
|
|
4902
|
+
table: true,
|
|
4903
|
+
thead: true,
|
|
4904
|
+
tbody: true,
|
|
4905
|
+
tfoot: true,
|
|
4906
|
+
TABLE: true,
|
|
4907
|
+
THEAD: true,
|
|
4908
|
+
TBODY: true,
|
|
4909
|
+
TFOOT: true
|
|
4910
|
+
},
|
|
4911
|
+
TR: {
|
|
4912
|
+
table: true,
|
|
4913
|
+
thead: true,
|
|
4914
|
+
tbody: true,
|
|
4915
|
+
tfoot: true,
|
|
4916
|
+
TABLE: true,
|
|
4917
|
+
THEAD: true,
|
|
4918
|
+
TBODY: true,
|
|
4919
|
+
TFOOT: true
|
|
4920
|
+
},
|
|
4921
|
+
tbody: {
|
|
4922
|
+
table: true,
|
|
4923
|
+
TABLE: true
|
|
4924
|
+
},
|
|
4925
|
+
TBODY: {
|
|
4926
|
+
table: true,
|
|
4927
|
+
TABLE: true
|
|
4928
|
+
},
|
|
4929
|
+
tfoot: {
|
|
4930
|
+
table: true,
|
|
4931
|
+
TABLE: true
|
|
4932
|
+
},
|
|
4933
|
+
TFOOT: {
|
|
4934
|
+
table: true,
|
|
4811
4935
|
TABLE: true
|
|
4812
4936
|
},
|
|
4813
4937
|
dt: {
|
|
@@ -4923,9 +5047,9 @@
|
|
|
4923
5047
|
const isQuoted = val[0] === `'` || val[0] === `"`;
|
|
4924
5048
|
attrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;
|
|
4925
5049
|
}
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
5050
|
+
if (!closingSlash && !options.preserveTagNesting) {
|
|
5051
|
+
var _kElementsClosedByOpe;
|
|
5052
|
+
while ((_kElementsClosedByOpe = kElementsClosedByOpening[currentParent.rawTagName]) === null || _kElementsClosedByOpe === void 0 ? void 0 : _kElementsClosedByOpe[tagName]) {
|
|
4929
5053
|
stack.pop();
|
|
4930
5054
|
currentParent = arr_back(stack);
|
|
4931
5055
|
}
|
|
@@ -5017,21 +5141,25 @@
|
|
|
5017
5141
|
if (last.parentNode === oneBefore && last.tagName === oneBefore.tagName) {
|
|
5018
5142
|
if (options.parseNoneClosedTags !== true) {
|
|
5019
5143
|
oneBefore.removeChild(last);
|
|
5020
|
-
last.
|
|
5021
|
-
oneBefore.parentNode.appendChild(child);
|
|
5022
|
-
});
|
|
5144
|
+
reparentChildren(last, oneBefore.parentNode);
|
|
5023
5145
|
stack.pop();
|
|
5024
5146
|
}
|
|
5025
5147
|
} else if (options.parseNoneClosedTags !== true) {
|
|
5026
5148
|
oneBefore.removeChild(last);
|
|
5027
|
-
last
|
|
5028
|
-
oneBefore.appendChild(child);
|
|
5029
|
-
});
|
|
5149
|
+
reparentChildren(last, oneBefore);
|
|
5030
5150
|
}
|
|
5031
5151
|
}
|
|
5032
5152
|
}
|
|
5033
5153
|
return root;
|
|
5034
5154
|
}
|
|
5155
|
+
function reparentChildren(source, parent) {
|
|
5156
|
+
const children = source.childNodes;
|
|
5157
|
+
source.childNodes = [];
|
|
5158
|
+
for (const child of children) {
|
|
5159
|
+
child.parentNode = null;
|
|
5160
|
+
parent.appendChild(child);
|
|
5161
|
+
}
|
|
5162
|
+
}
|
|
5035
5163
|
/**
|
|
5036
5164
|
* Resolves a list of {@link NodeInsertable} to a list of nodes,
|
|
5037
5165
|
* and removes nodes from any potential parent.
|
package/package.json
CHANGED
|
@@ -51,13 +51,13 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@aws-cdk/integ-runner": "2.205.6",
|
|
53
53
|
"@aws-cdk/integ-tests-alpha": "2.269.0-alpha.0",
|
|
54
|
-
"@aws-sdk/client-cloudwatch": "^3.
|
|
55
|
-
"@aws-sdk/client-dynamodb": "^3.
|
|
56
|
-
"@aws-sdk/client-ec2": "^3.
|
|
57
|
-
"@aws-sdk/client-eventbridge": "^3.
|
|
58
|
-
"@aws-sdk/client-secrets-manager": "^3.
|
|
59
|
-
"@aws-sdk/client-ssm": "^3.
|
|
60
|
-
"@aws-sdk/lib-dynamodb": "^3.
|
|
54
|
+
"@aws-sdk/client-cloudwatch": "^3.1153.0",
|
|
55
|
+
"@aws-sdk/client-dynamodb": "^3.1153.0",
|
|
56
|
+
"@aws-sdk/client-ec2": "^3.1153.0",
|
|
57
|
+
"@aws-sdk/client-eventbridge": "^3.1153.0",
|
|
58
|
+
"@aws-sdk/client-secrets-manager": "^3.1153.0",
|
|
59
|
+
"@aws-sdk/client-ssm": "^3.1153.0",
|
|
60
|
+
"@aws-sdk/lib-dynamodb": "^3.1153.0",
|
|
61
61
|
"@commitlint/cli": "^20.1.0",
|
|
62
62
|
"@commitlint/config-conventional": "^20.0.0",
|
|
63
63
|
"@stylistic/eslint-plugin": "^2",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"jsii-docgen": "^10.5.0",
|
|
84
84
|
"jsii-pacmak": "^1.141.0",
|
|
85
85
|
"jsii-rosetta": "~6.0.0",
|
|
86
|
-
"projen": "^0.104.
|
|
86
|
+
"projen": "^0.104.8",
|
|
87
87
|
"ts-jest": "^29.4.15",
|
|
88
88
|
"ts-node": "^10.9.2",
|
|
89
89
|
"typescript": "^6.0.2"
|
|
@@ -93,10 +93,10 @@
|
|
|
93
93
|
"constructs": "^10.5.1"
|
|
94
94
|
},
|
|
95
95
|
"dependencies": {
|
|
96
|
-
"@mavogel/mvc-projen": "^0.0.
|
|
96
|
+
"@mavogel/mvc-projen": "^0.0.62",
|
|
97
97
|
"cdk-nag": "^3.0.1",
|
|
98
98
|
"constructs": "^10.5.1",
|
|
99
|
-
"node-html-parser": "^9.0.
|
|
99
|
+
"node-html-parser": "^9.0.5"
|
|
100
100
|
},
|
|
101
101
|
"bundledDependencies": [
|
|
102
102
|
"node-html-parser"
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"publishConfig": {
|
|
124
124
|
"access": "public"
|
|
125
125
|
},
|
|
126
|
-
"version": "0.1.
|
|
126
|
+
"version": "0.1.15",
|
|
127
127
|
"jest": {
|
|
128
128
|
"coverageProvider": "v8",
|
|
129
129
|
"testMatch": [
|