@e-mc/file-manager 0.8.26 → 0.8.28

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 +3 -6
  3. package/package.json +10 -10
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.26/lib/index.d.ts
12
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/index.d.ts
13
13
 
14
14
  ```typescript
15
15
  import type { DataSource, IncrementalMatch, TaskAction } from "./squared";
@@ -191,15 +191,15 @@ interface FileManagerConstructor extends HostConstructor {
191
191
 
192
192
  ## References
193
193
 
194
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/squared.d.ts
195
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/asset.d.ts
196
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/core.d.ts
197
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/filemanager.d.ts
198
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/logger.d.ts
199
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/module.d.ts
200
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/node.d.ts
201
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/request.d.ts
202
- - https://www.unpkg.com/@e-mc/types@0.8.26/lib/settings.d.ts
194
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/squared.d.ts
195
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/asset.d.ts
196
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/core.d.ts
197
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/filemanager.d.ts
198
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/logger.d.ts
199
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/module.d.ts
200
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/node.d.ts
201
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/request.d.ts
202
+ - https://www.unpkg.com/@e-mc/types@0.8.28/lib/settings.d.ts
203
203
 
204
204
  ## LICENSE
205
205
 
package/index.js CHANGED
@@ -1435,12 +1435,9 @@ class FileManager extends core_1.Host {
1435
1435
  }
1436
1436
  removeCwd(value) {
1437
1437
  if (typeof value === 'string') {
1438
- let baseDir = this.baseDirectory + path.sep, leading = value.substring(0, baseDir.length);
1439
- if (PLATFORM_WIN32) {
1440
- baseDir = baseDir.toLowerCase();
1441
- leading = leading.toLowerCase();
1442
- }
1443
- if (leading === baseDir) {
1438
+ const baseDir = this.baseDirectory + path.sep;
1439
+ const leading = value.substring(0, baseDir.length);
1440
+ if (leading === baseDir || PLATFORM_WIN32 && leading.toLowerCase() === baseDir.toLowerCase()) {
1444
1441
  return value.substring(baseDir.length);
1445
1442
  }
1446
1443
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/file-manager",
3
- "version": "0.8.26",
3
+ "version": "0.8.28",
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.8.26",
24
- "@e-mc/compress": "0.8.26",
25
- "@e-mc/core": "0.8.26",
26
- "@e-mc/document": "0.8.26",
27
- "@e-mc/image": "0.8.26",
28
- "@e-mc/request": "0.8.26",
29
- "@e-mc/task": "0.8.26",
30
- "@e-mc/types": "0.8.26",
31
- "@e-mc/watch": "0.8.26",
23
+ "@e-mc/cloud": "0.8.28",
24
+ "@e-mc/compress": "0.8.28",
25
+ "@e-mc/core": "0.8.28",
26
+ "@e-mc/document": "0.8.28",
27
+ "@e-mc/image": "0.8.28",
28
+ "@e-mc/request": "0.8.28",
29
+ "@e-mc/task": "0.8.28",
30
+ "@e-mc/types": "0.8.28",
31
+ "@e-mc/watch": "0.8.28",
32
32
  "picomatch": "^3.0.1"
33
33
  }
34
34
  }