@e-mc/module 0.8.19 → 0.8.20
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 +4 -4
- 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.20/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.20/lib/core.d.ts
|
|
235
|
+
- https://www.unpkg.com/@e-mc/types@0.8.20/lib/logger.d.ts
|
|
236
|
+
- https://www.unpkg.com/@e-mc/types@0.8.20/lib/module.d.ts
|
|
237
|
+
- https://www.unpkg.com/@e-mc/types@0.8.20/lib/node.d.ts
|
|
238
238
|
|
|
239
239
|
## LICENSE
|
|
240
240
|
|
package/index.js
CHANGED
|
@@ -172,12 +172,12 @@ function setPnpmVer() {
|
|
|
172
172
|
return false;
|
|
173
173
|
}
|
|
174
174
|
const addPackage = (value) => {
|
|
175
|
-
let index = value.indexOf('(');
|
|
175
|
+
let index = (value = value.replace(/^\//, '')).indexOf('(');
|
|
176
176
|
if (index !== -1) {
|
|
177
177
|
value = value.substring(0, index);
|
|
178
178
|
}
|
|
179
|
-
index = value.lastIndexOf(value.indexOf('@',
|
|
180
|
-
const name = value.substring(0, index)
|
|
179
|
+
index = value.lastIndexOf(value.indexOf('@', 1) !== -1 ? '@' : '/');
|
|
180
|
+
const name = value.substring(0, index);
|
|
181
181
|
const version = value.substring(index + 1);
|
|
182
182
|
if (!items.find(item => item[0] === name && item[1] === version)) {
|
|
183
183
|
items.push([name, version]);
|
|
@@ -715,7 +715,7 @@ class Module extends EventEmitter {
|
|
|
715
715
|
this[_f] = new AbortController();
|
|
716
716
|
this[_g] = null;
|
|
717
717
|
}
|
|
718
|
-
static get VERSION() { return "0.8.
|
|
718
|
+
static get VERSION() { return "0.8.20"; }
|
|
719
719
|
static get LOG_TYPE() { return types_1.LOG_TYPE; }
|
|
720
720
|
static get STATUS_TYPE() { return types_1.STATUS_TYPE; }
|
|
721
721
|
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.20",
|
|
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.20",
|
|
24
24
|
"abort-controller": "^3.0.0",
|
|
25
25
|
"chalk": "4.1.2",
|
|
26
26
|
"event-target-shim": "^5.0.1",
|