@e-mc/module 0.12.9 → 0.12.10

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 +6 -6
  2. package/index.js +6 -2
  3. 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.12.9/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.12.10/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { LogStatus } from "./squared";
@@ -416,11 +416,11 @@ interface LoggerModule {
416
416
 
417
417
  ## References
418
418
 
419
- - https://www.unpkg.com/@e-mc/types@0.12.9/lib/core.d.ts
420
- - https://www.unpkg.com/@e-mc/types@0.12.9/lib/logger.d.ts
421
- - https://www.unpkg.com/@e-mc/types@0.12.9/lib/module.d.ts
422
- - https://www.unpkg.com/@e-mc/types@0.12.9/lib/node.d.ts
423
- - https://www.unpkg.com/@e-mc/types@0.12.9/lib/settings.d.ts
419
+ - https://www.unpkg.com/@e-mc/types@0.12.10/lib/core.d.ts
420
+ - https://www.unpkg.com/@e-mc/types@0.12.10/lib/logger.d.ts
421
+ - https://www.unpkg.com/@e-mc/types@0.12.10/lib/module.d.ts
422
+ - https://www.unpkg.com/@e-mc/types@0.12.10/lib/node.d.ts
423
+ - https://www.unpkg.com/@e-mc/types@0.12.10/lib/settings.d.ts
424
424
 
425
425
  * https://www.npmjs.com/package/@types/node
426
426
 
package/index.js CHANGED
@@ -850,7 +850,7 @@ class Module extends EventEmitter {
850
850
  static LOG_STYLE_NOTICE = Object.freeze({ titleBgColor: 'bgGrey', titleColor: 'white' });
851
851
  static LOG_STYLE_REVERSE = Object.freeze({ titleBgColor: 'bgWhite', titleColor: 'black', messageBgColor: 'bgGrey' });
852
852
  static get VERSION() {
853
- return "0.12.9";
853
+ return "0.12.10";
854
854
  }
855
855
  static get LOG_TYPE() {
856
856
  return types_1.LOG_TYPE;
@@ -1508,7 +1508,11 @@ class Module extends EventEmitter {
1508
1508
  }
1509
1509
  static isDir(value) {
1510
1510
  try {
1511
- return fs.statSync(value).isDirectory();
1511
+ let target = fs.statSync(value);
1512
+ if (target.isSymbolicLink()) {
1513
+ target = fs.statSync(fs.realpathSync(value));
1514
+ }
1515
+ return target.isDirectory();
1512
1516
  }
1513
1517
  catch {
1514
1518
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/module",
3
- "version": "0.12.9",
3
+ "version": "0.12.10",
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.12.9",
22
+ "@e-mc/types": "0.12.10",
23
23
  "chalk": "4.1.2",
24
24
  "file-type": "^18.7.0",
25
25
  "js-yaml": "^4.1.0",