@e-mc/file-manager 0.12.14 → 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 +7 -11
  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.14/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.14/lib/squared.d.ts
311
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/asset.d.ts
312
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/core.d.ts
313
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/filemanager.d.ts
314
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/logger.d.ts
315
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/module.d.ts
316
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/node.d.ts
317
- - https://www.unpkg.com/@e-mc/types@0.12.14/lib/request.d.ts
318
- - https://www.unpkg.com/@e-mc/types@0.12.14/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;
@@ -3135,16 +3138,9 @@ class FileManager extends core_1.Host {
3135
3138
  resetAssets(this);
3136
3139
  break;
3137
3140
  }
3138
- if (this.queued) {
3139
- const length = arguments.length;
3140
- const args = new Array(length);
3141
- for (let i = 0; i < length; ++i) {
3142
- args[i] = arguments[i];
3143
- }
3144
- if (this.joinQueue({ args })) {
3145
- this.finalizeState = 4;
3146
- return;
3147
- }
3141
+ if (this.queued && this.joinQueue({ args: Array.from(arguments) })) {
3142
+ this.finalizeState = 4;
3143
+ return;
3148
3144
  }
3149
3145
  if (targeted) {
3150
3146
  this.using(true, ...targeted);
@@ -4428,7 +4424,7 @@ class FileManager extends core_1.Host {
4428
4424
  #tryPackage(target, name, type) {
4429
4425
  if ((0, types_1.isString)(target)) {
4430
4426
  try {
4431
- target = require(target);
4427
+ target = (0, types_1.requireESM)(target);
4432
4428
  }
4433
4429
  catch (err) {
4434
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.14",
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.14",
23
- "@e-mc/compress": "0.12.14",
24
- "@e-mc/core": "0.12.14",
25
- "@e-mc/document": "0.12.14",
26
- "@e-mc/image": "0.12.14",
27
- "@e-mc/request": "0.12.14",
28
- "@e-mc/task": "0.12.14",
29
- "@e-mc/types": "0.12.14",
30
- "@e-mc/watch": "0.12.14",
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
  }