@e-mc/document 0.11.9 → 0.11.11
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 +7 -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.11.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.11.11/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.11.
|
|
189
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
190
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
191
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
192
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
193
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
194
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
195
|
-
- https://www.unpkg.com/@e-mc/types@0.11.
|
|
188
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/squared.d.ts
|
|
189
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/asset.d.ts
|
|
190
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/core.d.ts
|
|
191
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/document.d.ts
|
|
192
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/filemanager.d.ts
|
|
193
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/logger.d.ts
|
|
194
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/settings.d.ts
|
|
195
|
+
- https://www.unpkg.com/@e-mc/types@0.11.11/lib/watch.d.ts
|
|
196
196
|
|
|
197
197
|
## LICENSE
|
|
198
198
|
|
package/index.js
CHANGED
|
@@ -1107,7 +1107,13 @@ class Document extends core_1.Client {
|
|
|
1107
1107
|
return '';
|
|
1108
1108
|
}
|
|
1109
1109
|
try {
|
|
1110
|
-
|
|
1110
|
+
let context;
|
|
1111
|
+
try {
|
|
1112
|
+
context = require(target.name);
|
|
1113
|
+
}
|
|
1114
|
+
catch {
|
|
1115
|
+
context = await (0, types_1.importESM)(target.name);
|
|
1116
|
+
}
|
|
1111
1117
|
let { singleRow, expires, options = {} } = target;
|
|
1112
1118
|
const { compile, output } = options;
|
|
1113
1119
|
if (this.settingsOf('view_engine', 'coerce') === true) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/document",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.11",
|
|
4
4
|
"description": "Document constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"license": "BSD-3-Clause",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/core": "0.11.
|
|
24
|
-
"@e-mc/db": "0.11.
|
|
25
|
-
"@e-mc/types": "0.11.
|
|
23
|
+
"@e-mc/core": "0.11.11",
|
|
24
|
+
"@e-mc/db": "0.11.11",
|
|
25
|
+
"@e-mc/types": "0.11.11",
|
|
26
26
|
"chalk": "4.1.2",
|
|
27
27
|
"domhandler": "^5.0.3",
|
|
28
28
|
"domutils": "^3.2.2",
|