@mavogel/cdk-vscode-server 0.0.123 → 0.0.124

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 (88) hide show
  1. package/.jsii +3 -3
  2. package/lib/idle-monitor/idle-monitor.js +1 -1
  3. package/lib/vscode-server.js +1 -1
  4. package/node_modules/node-html-parser/CHANGELOG.md +79 -0
  5. package/node_modules/node-html-parser/README.md +39 -39
  6. package/node_modules/node-html-parser/dist/index.cjs +5079 -0
  7. package/node_modules/node-html-parser/dist/index.d.ts +10 -10
  8. package/node_modules/node-html-parser/dist/index.mjs +5068 -0
  9. package/node_modules/node-html-parser/dist/index.umd.js +5083 -0
  10. package/node_modules/node-html-parser/dist/matcher.d.ts +22 -6
  11. package/node_modules/node-html-parser/dist/nodes/comment.d.ts +1 -1
  12. package/node_modules/node-html-parser/dist/nodes/html.d.ts +2 -2
  13. package/node_modules/node-html-parser/dist/nodes/node.d.ts +2 -2
  14. package/node_modules/node-html-parser/dist/nodes/text.d.ts +1 -1
  15. package/node_modules/node-html-parser/dist/valid.d.ts +1 -1
  16. package/node_modules/node-html-parser/node_modules/entities/LICENSE +11 -0
  17. package/node_modules/node-html-parser/node_modules/entities/dist/decode-codepoint.d.ts +28 -0
  18. package/node_modules/node-html-parser/node_modules/entities/dist/decode-codepoint.d.ts.map +1 -0
  19. package/node_modules/node-html-parser/node_modules/entities/dist/decode-codepoint.js +61 -0
  20. package/node_modules/node-html-parser/node_modules/entities/dist/decode-codepoint.js.map +1 -0
  21. package/node_modules/node-html-parser/node_modules/entities/dist/decode.d.ts +227 -0
  22. package/node_modules/node-html-parser/node_modules/entities/dist/decode.d.ts.map +1 -0
  23. package/node_modules/node-html-parser/node_modules/entities/dist/decode.js +1132 -0
  24. package/node_modules/node-html-parser/node_modules/entities/dist/decode.js.map +1 -0
  25. package/node_modules/node-html-parser/node_modules/entities/dist/encode.d.ts +26 -0
  26. package/node_modules/node-html-parser/node_modules/entities/dist/encode.d.ts.map +1 -0
  27. package/node_modules/node-html-parser/node_modules/entities/dist/encode.js +295 -0
  28. package/node_modules/node-html-parser/node_modules/entities/dist/encode.js.map +1 -0
  29. package/node_modules/node-html-parser/node_modules/entities/dist/escape.d.ts +60 -0
  30. package/node_modules/node-html-parser/node_modules/entities/dist/escape.d.ts.map +1 -0
  31. package/node_modules/node-html-parser/node_modules/entities/dist/escape.js +172 -0
  32. package/node_modules/node-html-parser/node_modules/entities/dist/escape.js.map +1 -0
  33. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-html.d.ts +3 -0
  34. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-html.d.ts.map +1 -0
  35. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-html.js +5 -0
  36. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-html.js.map +1 -0
  37. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-xml.d.ts +3 -0
  38. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-xml.d.ts.map +1 -0
  39. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-xml.js +7 -0
  40. package/node_modules/node-html-parser/node_modules/entities/dist/generated/decode-data-xml.js.map +1 -0
  41. package/node_modules/node-html-parser/node_modules/entities/dist/generated/encode-html.d.ts +3 -0
  42. package/node_modules/node-html-parser/node_modules/entities/dist/generated/encode-html.d.ts.map +1 -0
  43. package/node_modules/node-html-parser/node_modules/entities/dist/generated/encode-html.js +3 -0
  44. package/node_modules/node-html-parser/node_modules/entities/dist/generated/encode-html.js.map +1 -0
  45. package/node_modules/node-html-parser/node_modules/entities/dist/index.d.ts +89 -0
  46. package/node_modules/node-html-parser/node_modules/entities/dist/index.d.ts.map +1 -0
  47. package/node_modules/node-html-parser/node_modules/entities/dist/index.js +87 -0
  48. package/node_modules/node-html-parser/node_modules/entities/dist/index.js.map +1 -0
  49. package/node_modules/node-html-parser/node_modules/entities/dist/internal/bin-trie-flags.d.ts +48 -0
  50. package/node_modules/node-html-parser/node_modules/entities/dist/internal/bin-trie-flags.d.ts.map +1 -0
  51. package/node_modules/node-html-parser/node_modules/entities/dist/internal/bin-trie-flags.js +49 -0
  52. package/node_modules/node-html-parser/node_modules/entities/dist/internal/bin-trie-flags.js.map +1 -0
  53. package/node_modules/node-html-parser/node_modules/entities/dist/internal/decode-shared.d.ts +38 -0
  54. package/node_modules/node-html-parser/node_modules/entities/dist/internal/decode-shared.d.ts.map +1 -0
  55. package/node_modules/node-html-parser/node_modules/entities/dist/internal/decode-shared.js +195 -0
  56. package/node_modules/node-html-parser/node_modules/entities/dist/internal/decode-shared.js.map +1 -0
  57. package/node_modules/node-html-parser/node_modules/entities/package.json +83 -0
  58. package/node_modules/node-html-parser/node_modules/entities/readme.md +131 -0
  59. package/node_modules/node-html-parser/node_modules/entities/src/decode-codepoint.ts +69 -0
  60. package/node_modules/node-html-parser/node_modules/entities/src/decode.ts +1368 -0
  61. package/node_modules/node-html-parser/node_modules/entities/src/encode.ts +337 -0
  62. package/node_modules/node-html-parser/node_modules/entities/src/escape.ts +187 -0
  63. package/node_modules/node-html-parser/node_modules/entities/src/generated/decode-data-html.ts +12 -0
  64. package/node_modules/node-html-parser/node_modules/entities/src/generated/decode-data-xml.ts +7 -0
  65. package/node_modules/node-html-parser/node_modules/entities/src/generated/encode-html.ts +3 -0
  66. package/node_modules/node-html-parser/node_modules/entities/src/index.ts +160 -0
  67. package/node_modules/node-html-parser/node_modules/entities/src/internal/bin-trie-flags.ts +47 -0
  68. package/node_modules/node-html-parser/node_modules/entities/src/internal/decode-shared.ts +209 -0
  69. package/node_modules/node-html-parser/package.json +35 -30
  70. package/package.json +3 -3
  71. package/node_modules/he/LICENSE-MIT.txt +0 -20
  72. package/node_modules/he/README.md +0 -379
  73. package/node_modules/he/bin/he +0 -148
  74. package/node_modules/he/he.js +0 -345
  75. package/node_modules/he/man/he.1 +0 -78
  76. package/node_modules/he/package.json +0 -58
  77. package/node_modules/node-html-parser/dist/back.js +0 -6
  78. package/node_modules/node-html-parser/dist/index.js +0 -31
  79. package/node_modules/node-html-parser/dist/main.js +0 -1804
  80. package/node_modules/node-html-parser/dist/matcher.js +0 -106
  81. package/node_modules/node-html-parser/dist/nodes/comment.js +0 -33
  82. package/node_modules/node-html-parser/dist/nodes/html.js +0 -1186
  83. package/node_modules/node-html-parser/dist/nodes/node.js +0 -41
  84. package/node_modules/node-html-parser/dist/nodes/text.js +0 -105
  85. package/node_modules/node-html-parser/dist/nodes/type.js +0 -9
  86. package/node_modules/node-html-parser/dist/parse.js +0 -5
  87. package/node_modules/node-html-parser/dist/valid.js +0 -12
  88. package/node_modules/node-html-parser/dist/void-tag.js +0 -27
@@ -1,41 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const he_1 = require("he");
4
- /**
5
- * Node Class as base class for TextNode and HTMLElement.
6
- */
7
- class Node {
8
- constructor(parentNode = null, range) {
9
- this.parentNode = parentNode;
10
- this.childNodes = [];
11
- Object.defineProperty(this, 'range', {
12
- enumerable: false,
13
- writable: true,
14
- configurable: true,
15
- value: range !== null && range !== void 0 ? range : [-1, -1]
16
- });
17
- }
18
- /**
19
- * Remove current node
20
- */
21
- remove() {
22
- if (this.parentNode) {
23
- const children = this.parentNode.childNodes;
24
- this.parentNode.childNodes = children.filter((child) => {
25
- return this !== child;
26
- });
27
- this.parentNode = null;
28
- }
29
- return this;
30
- }
31
- get innerText() {
32
- return this.rawText;
33
- }
34
- get textContent() {
35
- return (0, he_1.decode)(this.rawText);
36
- }
37
- set textContent(val) {
38
- this.rawText = (0, he_1.encode)(val);
39
- }
40
- }
41
- exports.default = Node;
@@ -1,105 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const he_1 = require("he");
7
- const node_1 = __importDefault(require("./node"));
8
- const type_1 = __importDefault(require("./type"));
9
- /**
10
- * TextNode to contain a text element in DOM tree.
11
- * @param {string} value [description]
12
- */
13
- class TextNode extends node_1.default {
14
- clone() {
15
- return new TextNode(this._rawText, null);
16
- }
17
- constructor(rawText, parentNode = null, range) {
18
- super(parentNode, range);
19
- /**
20
- * Node Type declaration.
21
- * @type {Number}
22
- */
23
- this.nodeType = type_1.default.TEXT_NODE;
24
- this.rawTagName = '';
25
- this._rawText = rawText;
26
- }
27
- get rawText() {
28
- return this._rawText;
29
- }
30
- /**
31
- * Set rawText and invalidate trimmed caches
32
- */
33
- set rawText(text) {
34
- this._rawText = text;
35
- this._trimmedRawText = void 0;
36
- this._trimmedText = void 0;
37
- }
38
- /**
39
- * Returns raw text with all whitespace trimmed except single leading/trailing non-breaking space
40
- */
41
- get trimmedRawText() {
42
- if (this._trimmedRawText !== undefined)
43
- return this._trimmedRawText;
44
- this._trimmedRawText = trimText(this.rawText);
45
- return this._trimmedRawText;
46
- }
47
- /**
48
- * Returns text with all whitespace trimmed except single leading/trailing non-breaking space
49
- */
50
- get trimmedText() {
51
- if (this._trimmedText !== undefined)
52
- return this._trimmedText;
53
- this._trimmedText = trimText(this.text);
54
- return this._trimmedText;
55
- }
56
- /**
57
- * Get unescaped text value of current node and its children.
58
- * @return {string} text content
59
- */
60
- get text() {
61
- return (0, he_1.decode)(this.rawText);
62
- }
63
- /**
64
- * Detect if the node contains only white space.
65
- * @return {boolean}
66
- */
67
- get isWhitespace() {
68
- return /^(\s| )*$/.test(this.rawText);
69
- }
70
- toString() {
71
- return this.rawText;
72
- }
73
- }
74
- exports.default = TextNode;
75
- /**
76
- * Trim whitespace except single leading/trailing non-breaking space
77
- */
78
- function trimText(text) {
79
- let i = 0;
80
- let startPos;
81
- let endPos;
82
- while (i >= 0 && i < text.length) {
83
- if (/\S/.test(text[i])) {
84
- if (startPos === undefined) {
85
- startPos = i;
86
- i = text.length;
87
- }
88
- else {
89
- endPos = i;
90
- i = void 0;
91
- }
92
- }
93
- if (startPos === undefined)
94
- i++;
95
- else
96
- i--;
97
- }
98
- if (startPos === undefined)
99
- startPos = 0;
100
- if (endPos === undefined)
101
- endPos = text.length - 1;
102
- const hasLeadingSpace = startPos > 0 && /[^\S\r\n]/.test(text[startPos - 1]);
103
- const hasTrailingSpace = endPos < (text.length - 1) && /[^\S\r\n]/.test(text[endPos + 1]);
104
- return (hasLeadingSpace ? ' ' : '') + text.slice(startPos, endPos + 1) + (hasTrailingSpace ? ' ' : '');
105
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var NodeType;
4
- (function (NodeType) {
5
- NodeType[NodeType["ELEMENT_NODE"] = 1] = "ELEMENT_NODE";
6
- NodeType[NodeType["TEXT_NODE"] = 3] = "TEXT_NODE";
7
- NodeType[NodeType["COMMENT_NODE"] = 8] = "COMMENT_NODE";
8
- })(NodeType || (NodeType = {}));
9
- exports.default = NodeType;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = void 0;
4
- var html_1 = require("./nodes/html");
5
- Object.defineProperty(exports, "default", { enumerable: true, get: function () { return html_1.parse; } });
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const html_1 = require("./nodes/html");
4
- /**
5
- * Parses HTML and returns a root element
6
- * Parse a chuck of HTML source.
7
- */
8
- function valid(data, options = {}) {
9
- const stack = (0, html_1.base_parse)(data, options);
10
- return Boolean(stack.length === 1);
11
- }
12
- exports.default = valid;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class VoidTag {
4
- constructor(addClosingSlash = false, tags) {
5
- this.addClosingSlash = addClosingSlash;
6
- if (Array.isArray(tags)) {
7
- this.voidTags = tags.reduce((set, tag) => {
8
- return set.add(tag.toLowerCase()).add(tag.toUpperCase()).add(tag);
9
- }, new Set());
10
- }
11
- else {
12
- this.voidTags = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'param', 'source', 'track', 'wbr'].reduce((set, tag) => {
13
- return set.add(tag.toLowerCase()).add(tag.toUpperCase()).add(tag);
14
- }, new Set());
15
- }
16
- }
17
- formatNode(tag, attrs, innerHTML) {
18
- const addClosingSlash = this.addClosingSlash;
19
- const closingSpace = (addClosingSlash && attrs && !attrs.endsWith(' ')) ? ' ' : '';
20
- const closingSlash = addClosingSlash ? `${closingSpace}/` : '';
21
- return this.isVoidElement(tag.toLowerCase()) ? `<${tag}${attrs}${closingSlash}>` : `<${tag}${attrs}>${innerHTML}</${tag}>`;
22
- }
23
- isVoidElement(tag) {
24
- return this.voidTags.has(tag);
25
- }
26
- }
27
- exports.default = VoidTag;