@e-mc/module 0.14.2 → 0.14.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.
Files changed (3) hide show
  1. package/README.md +7 -7
  2. package/index.js +2 -2
  3. package/package.json +3 -3
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.14.2/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.14.3/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { LogStatus } from "./squared";
@@ -433,12 +433,12 @@ interface LoggerModule {
433
433
 
434
434
  ## References
435
435
 
436
- - https://www.unpkg.com/@e-mc/types@0.14.2/lib/squared.d.ts
437
- - https://www.unpkg.com/@e-mc/types@0.14.2/lib/core.d.ts
438
- - https://www.unpkg.com/@e-mc/types@0.14.2/lib/logger.d.ts
439
- - https://www.unpkg.com/@e-mc/types@0.14.2/lib/module.d.ts
440
- - https://www.unpkg.com/@e-mc/types@0.14.2/lib/node.d.ts
441
- - https://www.unpkg.com/@e-mc/types@0.14.2/lib/settings.d.ts
436
+ - https://www.unpkg.com/@e-mc/types@0.14.3/lib/squared.d.ts
437
+ - https://www.unpkg.com/@e-mc/types@0.14.3/lib/core.d.ts
438
+ - https://www.unpkg.com/@e-mc/types@0.14.3/lib/logger.d.ts
439
+ - https://www.unpkg.com/@e-mc/types@0.14.3/lib/module.d.ts
440
+ - https://www.unpkg.com/@e-mc/types@0.14.3/lib/node.d.ts
441
+ - https://www.unpkg.com/@e-mc/types@0.14.3/lib/settings.d.ts
442
442
 
443
443
  * https://www.npmjs.com/package/@types/node
444
444
  * https://www.npmjs.com/package/file-type
package/index.js CHANGED
@@ -234,7 +234,7 @@ function getYarnVersion(item, value) {
234
234
  if (typeof dependency === 'string') {
235
235
  const pkg = dependency.split('npm:');
236
236
  if (pkg.length > 1) {
237
- return pkg.pop();
237
+ return pkg.at(-1);
238
238
  }
239
239
  }
240
240
  }
@@ -864,7 +864,7 @@ class Module extends EventEmitter {
864
864
  static LOG_STYLE_NOTICE = Object.freeze({ titleBgColor: 'bgGrey', titleColor: 'white' });
865
865
  static LOG_STYLE_REVERSE = Object.freeze({ titleBgColor: 'bgWhite', titleColor: 'black', messageBgColor: 'bgGrey' });
866
866
  static get VERSION() {
867
- return "0.14.2";
867
+ return "0.14.3";
868
868
  }
869
869
  static get LOG_TYPE() {
870
870
  return LOG_TYPE;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/module",
3
- "version": "0.14.2",
3
+ "version": "0.14.3",
4
4
  "description": "Module base class for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -16,10 +16,10 @@
16
16
  "license": "BSD-3-Clause",
17
17
  "homepage": "https://github.com/anpham6/e-mc#readme",
18
18
  "dependencies": {
19
- "@e-mc/types": "0.14.2",
19
+ "@e-mc/types": "0.14.3",
20
20
  "chalk": "4.1.2",
21
21
  "file-type": "^20.5.0",
22
- "js-yaml": "^4.1.1",
22
+ "js-yaml": "^4.2.0",
23
23
  "mime-types": "^3.0.2",
24
24
  "picomatch": "^4.0.4"
25
25
  }