@e-mc/document 0.13.4 → 0.13.6
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/README.md +9 -9
- package/package.json +5 -5
- package/parse/dom.js +1 -2
- package/util.js +1 -1
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.6/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, ViewEngine } from "./squared";
|
|
@@ -185,14 +185,14 @@ NOTE: **@e-mc/document** is an abstract base class and cannot be instantiated. *
|
|
|
185
185
|
|
|
186
186
|
## References
|
|
187
187
|
|
|
188
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
189
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
190
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
191
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
192
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
193
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
194
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
195
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
188
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/squared.d.ts
|
|
189
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/asset.d.ts
|
|
190
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/core.d.ts
|
|
191
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/document.d.ts
|
|
192
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/filemanager.d.ts
|
|
193
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/logger.d.ts
|
|
194
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/settings.d.ts
|
|
195
|
+
- https://www.unpkg.com/@e-mc/types@0.13.6/lib/watch.d.ts
|
|
196
196
|
|
|
197
197
|
## LICENSE
|
|
198
198
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/document",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.6",
|
|
4
4
|
"description": "Document constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
"license": "BSD-3-Clause",
|
|
20
20
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/core": "0.13.
|
|
23
|
-
"@e-mc/db": "0.13.
|
|
24
|
-
"@e-mc/types": "0.13.
|
|
22
|
+
"@e-mc/core": "0.13.6",
|
|
23
|
+
"@e-mc/db": "0.13.6",
|
|
24
|
+
"@e-mc/types": "0.13.6",
|
|
25
25
|
"chalk": "4.1.2",
|
|
26
26
|
"domhandler": "^5.0.3",
|
|
27
27
|
"domutils": "^3.2.2",
|
|
28
28
|
"htmlparser2": "^10.0.0",
|
|
29
|
-
"js-yaml": "^4.1.
|
|
29
|
+
"js-yaml": "^4.1.1",
|
|
30
30
|
"picomatch": "^4.0.3"
|
|
31
31
|
}
|
|
32
32
|
}
|
package/parse/dom.js
CHANGED
|
@@ -35,8 +35,7 @@ class DomWriter extends index_1.XmlWriter {
|
|
|
35
35
|
if (start.startsWith('<')) {
|
|
36
36
|
tagGroup.push(new RegExp('^' + (0, types_1.escapePattern)(start)));
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
if (end?.[end.length - 1] === '>') {
|
|
38
|
+
if (ignoreTagGroup[i + 1]?.at(-1) === '>') {
|
|
40
39
|
tagGroup.push(new RegExp((0, types_1.escapePattern)(start) + '$'));
|
|
41
40
|
}
|
|
42
41
|
}
|
package/util.js
CHANGED
|
@@ -186,7 +186,7 @@ function splitEnclosing(value, pattern, options, opening = '(', closing = ')') {
|
|
|
186
186
|
function trimQuote(value) {
|
|
187
187
|
value = value.trim();
|
|
188
188
|
const first = value[0];
|
|
189
|
-
const last = value
|
|
189
|
+
const last = value.at(-1);
|
|
190
190
|
return first === last && (first === '"' || first === "'") ? value.substring(1, value.length - 1).trim() : value;
|
|
191
191
|
}
|
|
192
192
|
function wrapQuote(value, quote = '"') {
|