@e-mc/module 0.13.1 → 0.13.3
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 +6 -6
- package/index.js +6 -2
- package/package.json +2 -2
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.3/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { LogStatus } from "./squared";
|
|
@@ -421,11 +421,11 @@ interface LoggerModule {
|
|
|
421
421
|
|
|
422
422
|
## References
|
|
423
423
|
|
|
424
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
425
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
426
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
427
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
428
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
424
|
+
- https://www.unpkg.com/@e-mc/types@0.13.3/lib/core.d.ts
|
|
425
|
+
- https://www.unpkg.com/@e-mc/types@0.13.3/lib/logger.d.ts
|
|
426
|
+
- https://www.unpkg.com/@e-mc/types@0.13.3/lib/module.d.ts
|
|
427
|
+
- https://www.unpkg.com/@e-mc/types@0.13.3/lib/node.d.ts
|
|
428
|
+
- https://www.unpkg.com/@e-mc/types@0.13.3/lib/settings.d.ts
|
|
429
429
|
|
|
430
430
|
* https://www.npmjs.com/package/@types/node
|
|
431
431
|
|
package/index.js
CHANGED
|
@@ -878,7 +878,7 @@ class Module extends EventEmitter {
|
|
|
878
878
|
static LOG_STYLE_NOTICE = Object.freeze({ titleBgColor: 'bgGrey', titleColor: 'white' });
|
|
879
879
|
static LOG_STYLE_REVERSE = Object.freeze({ titleBgColor: 'bgWhite', titleColor: 'black', messageBgColor: 'bgGrey' });
|
|
880
880
|
static get VERSION() {
|
|
881
|
-
return "0.13.
|
|
881
|
+
return "0.13.3";
|
|
882
882
|
}
|
|
883
883
|
static get LOG_TYPE() {
|
|
884
884
|
return types_1.LOG_TYPE;
|
|
@@ -1542,7 +1542,11 @@ class Module extends EventEmitter {
|
|
|
1542
1542
|
return false;
|
|
1543
1543
|
}
|
|
1544
1544
|
try {
|
|
1545
|
-
|
|
1545
|
+
let target = fs.statSync(value);
|
|
1546
|
+
if (target.isSymbolicLink()) {
|
|
1547
|
+
target = fs.statSync(fs.realpathSync(value));
|
|
1548
|
+
}
|
|
1549
|
+
return target.isDirectory();
|
|
1546
1550
|
}
|
|
1547
1551
|
catch {
|
|
1548
1552
|
return false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/module",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "Module base class for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"license": "BSD-3-Clause",
|
|
20
20
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/types": "0.13.
|
|
22
|
+
"@e-mc/types": "0.13.3",
|
|
23
23
|
"chalk": "4.1.2",
|
|
24
24
|
"file-type": "^20.5.0",
|
|
25
25
|
"js-yaml": "^4.1.0",
|