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