@e-mc/document 0.12.14 → 0.12.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/README.md +9 -9
- package/index.js +6 -1
- package/package.json +4 -4
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.12.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.12.15/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.12.
|
|
189
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
190
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
191
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
192
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
193
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
194
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
195
|
-
- https://www.unpkg.com/@e-mc/types@0.12.
|
|
188
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/squared.d.ts
|
|
189
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/asset.d.ts
|
|
190
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/core.d.ts
|
|
191
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/document.d.ts
|
|
192
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/filemanager.d.ts
|
|
193
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/logger.d.ts
|
|
194
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/settings.d.ts
|
|
195
|
+
- https://www.unpkg.com/@e-mc/types@0.12.15/lib/watch.d.ts
|
|
196
196
|
|
|
197
197
|
## LICENSE
|
|
198
198
|
|
package/index.js
CHANGED
|
@@ -1058,7 +1058,12 @@ class Document extends core_1.Client {
|
|
|
1058
1058
|
case 'xml':
|
|
1059
1059
|
return new (require('fast-xml-parser').XMLParser)(options).parse(source);
|
|
1060
1060
|
case 'toml':
|
|
1061
|
-
|
|
1061
|
+
try {
|
|
1062
|
+
return require('smol-toml').parse(source, options);
|
|
1063
|
+
}
|
|
1064
|
+
catch {
|
|
1065
|
+
return require('toml').parse(source);
|
|
1066
|
+
}
|
|
1062
1067
|
default:
|
|
1063
1068
|
return JSON.parse(source);
|
|
1064
1069
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/document",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.15",
|
|
4
4
|
"description": "Document constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"license": "BSD-3-Clause",
|
|
20
20
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/core": "0.12.
|
|
23
|
-
"@e-mc/db": "0.12.
|
|
24
|
-
"@e-mc/types": "0.12.
|
|
22
|
+
"@e-mc/core": "0.12.15",
|
|
23
|
+
"@e-mc/db": "0.12.15",
|
|
24
|
+
"@e-mc/types": "0.12.15",
|
|
25
25
|
"chalk": "4.1.2",
|
|
26
26
|
"domhandler": "^5.0.3",
|
|
27
27
|
"domutils": "^3.2.2",
|