@e-mc/file-manager 0.12.15 → 0.12.16

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 +4 -1
  3. package/package.json +11 -11
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.12.15/lib/index.d.ts)
12
+ * [View Source](https://www.unpkg.com/@e-mc/types@0.12.16/lib/index.d.ts)
13
13
 
14
14
  ```typescript
15
15
  import type { DataSource, IncrementalMatch, TaskAction } from "./squared";
@@ -307,15 +307,15 @@ NOTE: **FileManager** is a sub-class of [Host](https://www.npmjs.com/package/@e-
307
307
 
308
308
  ## References
309
309
 
310
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/squared.d.ts
311
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/asset.d.ts
312
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/core.d.ts
313
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/filemanager.d.ts
314
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/logger.d.ts
315
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/module.d.ts
316
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/node.d.ts
317
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/request.d.ts
318
- - https://www.unpkg.com/@e-mc/types@0.12.15/lib/settings.d.ts
310
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/squared.d.ts
311
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/asset.d.ts
312
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/core.d.ts
313
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/filemanager.d.ts
314
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/logger.d.ts
315
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/module.d.ts
316
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/node.d.ts
317
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/request.d.ts
318
+ - https://www.unpkg.com/@e-mc/types@0.12.16/lib/settings.d.ts
319
319
 
320
320
  * https://www.npmjs.com/package/@types/node
321
321
 
package/index.js CHANGED
@@ -1325,6 +1325,9 @@ class FileThread extends core_1.AbortComponent {
1325
1325
  get queuedTasks() {
1326
1326
  return this.#queuedTasks;
1327
1327
  }
1328
+ get localUri() {
1329
+ return this.file.localUri;
1330
+ }
1328
1331
  }
1329
1332
  class FileManager extends core_1.Host {
1330
1333
  static [kFileManager] = true;
@@ -4421,7 +4424,7 @@ class FileManager extends core_1.Host {
4421
4424
  #tryPackage(target, name, type) {
4422
4425
  if ((0, types_1.isString)(target)) {
4423
4426
  try {
4424
- target = require(target);
4427
+ target = (0, types_1.requireESM)(target);
4425
4428
  }
4426
4429
  catch (err) {
4427
4430
  this.checkPackage(err, target, ["Unable to load handler", this.moduleName], type);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/file-manager",
3
- "version": "0.12.15",
3
+ "version": "0.12.16",
4
4
  "description": "FileManager constructor for E-mc.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -19,17 +19,17 @@
19
19
  "license": "BSD-3-Clause",
20
20
  "homepage": "https://github.com/anpham6/e-mc#readme",
21
21
  "dependencies": {
22
- "@e-mc/cloud": "0.12.15",
23
- "@e-mc/compress": "0.12.15",
24
- "@e-mc/core": "0.12.15",
25
- "@e-mc/document": "0.12.15",
26
- "@e-mc/image": "0.12.15",
27
- "@e-mc/request": "0.12.15",
28
- "@e-mc/task": "0.12.15",
29
- "@e-mc/types": "0.12.15",
30
- "@e-mc/watch": "0.12.15",
22
+ "@e-mc/cloud": "0.12.16",
23
+ "@e-mc/compress": "0.12.16",
24
+ "@e-mc/core": "0.12.16",
25
+ "@e-mc/document": "0.12.16",
26
+ "@e-mc/image": "0.12.16",
27
+ "@e-mc/request": "0.12.16",
28
+ "@e-mc/task": "0.12.16",
29
+ "@e-mc/types": "0.12.16",
30
+ "@e-mc/watch": "0.12.16",
31
31
  "chalk": "4.1.2",
32
32
  "diff": "^7.0.0",
33
- "picomatch": "^4.0.3"
33
+ "picomatch": "^4.0.4"
34
34
  }
35
35
  }