@e-mc/module 0.8.29 → 0.8.31
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 +5 -5
- package/index.js +10 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
12
|
+
- https://www.unpkg.com/@e-mc/types@0.8.31/lib/index.d.ts
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogStatus } from "./squared";
|
|
@@ -231,10 +231,10 @@ interface ModuleConstructor {
|
|
|
231
231
|
|
|
232
232
|
## References
|
|
233
233
|
|
|
234
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
235
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
236
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
237
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
234
|
+
- https://www.unpkg.com/@e-mc/types@0.8.31/lib/core.d.ts
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.8.31/lib/logger.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.8.31/lib/module.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.8.31/lib/node.d.ts
|
|
238
238
|
|
|
239
239
|
## LICENSE
|
|
240
240
|
|
package/index.js
CHANGED
|
@@ -156,7 +156,15 @@ let TEMP_DIR = path.join(PROCESS_CWD, "tmp");
|
|
|
156
156
|
let PNPM_VER;
|
|
157
157
|
let YARN_VER;
|
|
158
158
|
function parseYaml(pathname) {
|
|
159
|
-
|
|
159
|
+
let value;
|
|
160
|
+
try {
|
|
161
|
+
return require('js-yaml').load(value = fs.readFileSync(pathname, 'utf-8'));
|
|
162
|
+
}
|
|
163
|
+
catch {
|
|
164
|
+
if (value) {
|
|
165
|
+
return JSON.parse(value);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
160
168
|
}
|
|
161
169
|
function setPnpmVer() {
|
|
162
170
|
if (PNPM_VER === undefined) {
|
|
@@ -698,7 +706,7 @@ class Module extends EventEmitter {
|
|
|
698
706
|
this[_f] = new AbortController();
|
|
699
707
|
this[_g] = null;
|
|
700
708
|
}
|
|
701
|
-
static get VERSION() { return "0.8.
|
|
709
|
+
static get VERSION() { return "0.8.31"; }
|
|
702
710
|
static get LOG_TYPE() { return types_1.LOG_TYPE; }
|
|
703
711
|
static get STATUS_TYPE() { return types_1.STATUS_TYPE; }
|
|
704
712
|
static get MAX_TIMEOUT() { return 2147483647; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/module",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.31",
|
|
4
4
|
"description": "Module base class for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/types": "0.8.
|
|
23
|
+
"@e-mc/types": "0.8.31",
|
|
24
24
|
"abort-controller": "^3.0.0",
|
|
25
25
|
"chalk": "4.1.2",
|
|
26
26
|
"event-target-shim": "^5.0.1",
|