@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.
Files changed (3) hide show
  1. package/README.md +9 -9
  2. package/index.js +6 -1
  3. 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.14/lib/index.d.ts)
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.14/lib/squared.d.ts
189
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/asset.d.ts
190
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/core.d.ts
191
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/document.d.ts
192
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/filemanager.d.ts
193
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/logger.d.ts
194
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/settings.d.ts
195
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/watch.d.ts
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
- return require('toml').parse(source);
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.14",
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.14",
23
- "@e-mc/db": "0.12.14",
24
- "@e-mc/types": "0.12.14",
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",