@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.
Files changed (3) hide show
  1. package/README.md +10 -10
  2. package/index.js +7 -10
  3. 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.10/lib/index.d.ts)
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.10/lib/squared.d.ts
310
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/asset.d.ts
311
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/core.d.ts
312
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/filemanager.d.ts
313
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/logger.d.ts
314
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/module.d.ts
315
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/node.d.ts
316
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/request.d.ts
317
- - https://www.unpkg.com/@e-mc/types@0.11.10/lib/settings.d.ts
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
- let baseDir = this.baseDirectory + path.sep, leading = value.substring(0, baseDir.length);
2276
- if (core_1.Host.PLATFORM_WIN32) {
2277
- baseDir = baseDir.toLowerCase();
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.10",
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.10",
24
- "@e-mc/compress": "0.11.10",
25
- "@e-mc/core": "0.11.10",
26
- "@e-mc/document": "0.11.10",
27
- "@e-mc/image": "0.11.10",
28
- "@e-mc/request": "0.11.10",
29
- "@e-mc/task": "0.11.10",
30
- "@e-mc/types": "0.11.10",
31
- "@e-mc/watch": "0.11.10",
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"