@e-mc/file-manager 0.10.14 → 0.10.15
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 +10 -10
- package/index.js +7 -10
- package/package.json +10 -10
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.10.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.10.15/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, IncrementalMatch, TaskAction } from "./squared";
|
|
@@ -305,15 +305,15 @@ NOTE: **FileManager** is a sub-class of [Host](https://www.npmjs.com/package/@e-
|
|
|
305
305
|
|
|
306
306
|
## References
|
|
307
307
|
|
|
308
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
309
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
310
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
311
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
312
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
313
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
314
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
315
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
316
|
-
- https://www.unpkg.com/@e-mc/types@0.10.
|
|
308
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/squared.d.ts
|
|
309
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/asset.d.ts
|
|
310
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/core.d.ts
|
|
311
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/filemanager.d.ts
|
|
312
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/logger.d.ts
|
|
313
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/module.d.ts
|
|
314
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/node.d.ts
|
|
315
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/request.d.ts
|
|
316
|
+
- https://www.unpkg.com/@e-mc/types@0.10.15/lib/settings.d.ts
|
|
317
317
|
|
|
318
318
|
* https://www.npmjs.com/package/@types/node
|
|
319
319
|
|
package/index.js
CHANGED
|
@@ -2274,12 +2274,9 @@ class FileManager extends core_1.Host {
|
|
|
2274
2274
|
}
|
|
2275
2275
|
removeCwd(value) {
|
|
2276
2276
|
if (typeof value === 'string') {
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
leading = leading.toLowerCase();
|
|
2281
|
-
}
|
|
2282
|
-
if (leading === baseDir) {
|
|
2277
|
+
const baseDir = this.baseDirectory + path.sep;
|
|
2278
|
+
const leading = value.substring(0, baseDir.length);
|
|
2279
|
+
if (leading === baseDir || core_1.Host.PLATFORM_WIN32 && leading.toLowerCase() === baseDir.toLowerCase()) {
|
|
2283
2280
|
return value.substring(baseDir.length);
|
|
2284
2281
|
}
|
|
2285
2282
|
}
|
|
@@ -3981,11 +3978,11 @@ class FileManager extends core_1.Host {
|
|
|
3981
3978
|
if (cleared) {
|
|
3982
3979
|
last = item;
|
|
3983
3980
|
}
|
|
3981
|
+
else if (!redraw && scroll[i] === item) {
|
|
3982
|
+
PROCESS_STDOUT.moveCursor(0, 1);
|
|
3983
|
+
continue;
|
|
3984
|
+
}
|
|
3984
3985
|
else {
|
|
3985
|
-
if (!redraw && scroll[i] === item) {
|
|
3986
|
-
PROCESS_STDOUT.moveCursor(0, 1);
|
|
3987
|
-
continue;
|
|
3988
|
-
}
|
|
3989
3986
|
const options = { ...item[4], messageTextWrap, broadcastId: '' };
|
|
3990
3987
|
if (!useColor) {
|
|
3991
3988
|
options.useColor = false;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/file-manager",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.15",
|
|
4
4
|
"description": "FileManager constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,15 +20,15 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/cloud": "0.10.
|
|
24
|
-
"@e-mc/compress": "0.10.
|
|
25
|
-
"@e-mc/core": "0.10.
|
|
26
|
-
"@e-mc/document": "0.10.
|
|
27
|
-
"@e-mc/image": "0.10.
|
|
28
|
-
"@e-mc/request": "0.10.
|
|
29
|
-
"@e-mc/task": "0.10.
|
|
30
|
-
"@e-mc/types": "0.10.
|
|
31
|
-
"@e-mc/watch": "0.10.
|
|
23
|
+
"@e-mc/cloud": "0.10.15",
|
|
24
|
+
"@e-mc/compress": "0.10.15",
|
|
25
|
+
"@e-mc/core": "0.10.15",
|
|
26
|
+
"@e-mc/document": "0.10.15",
|
|
27
|
+
"@e-mc/image": "0.10.15",
|
|
28
|
+
"@e-mc/request": "0.10.15",
|
|
29
|
+
"@e-mc/task": "0.10.15",
|
|
30
|
+
"@e-mc/types": "0.10.15",
|
|
31
|
+
"@e-mc/watch": "0.10.15",
|
|
32
32
|
"chalk": "4.1.2",
|
|
33
33
|
"diff": "^5.2.0",
|
|
34
34
|
"picomatch": "^4.0.2",
|