@e-mc/file-manager 0.12.2 → 0.12.3

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 (2) hide show
  1. package/index.js +4 -5
  2. package/package.json +10 -10
package/index.js CHANGED
@@ -573,8 +573,7 @@ const closeResponse = (client) => client?.destroy();
573
573
  const isCacheable = (item) => item.initialValue?.cacheable !== false;
574
574
  const getPmOptions = (value, { matchBase = value.startsWith('*') && !value.includes('/'), dot = false } = {}) => ({ matchBase, nocase: core_1.Host.PLATFORM_WIN32, dot });
575
575
  const isDownloadAll = (type) => type === 4 || type === 0;
576
- const isRclone = (value) => typeof value === 'string' && value.startsWith('rclone:?');
577
- const hasFiles = (type, uri) => type === 3 || type === 4 || type === 0 && isRclone(uri);
576
+ const hasFiles = (type, uri) => type === 3 || type === 4 || type === 0 && request_1.isRclone(uri);
578
577
  const hasIncremental = (value) => value === "etag" || value === "exists";
579
578
  const matchPathname = (value) => core_1.Host.PLATFORM_WIN32 ? value.toLowerCase() : value;
580
579
  const equalAddress = (value, other) => value === other || decodeURIComponent(value) === decodeURIComponent(other);
@@ -2394,7 +2393,7 @@ class FileManager extends core_1.Host {
2394
2393
  if (core_1.Host.isFile(uri, 'torrent')) {
2395
2394
  type = 4;
2396
2395
  }
2397
- else if (isRclone(uri)) {
2396
+ else if (request_1.isRclone(uri)) {
2398
2397
  type = 0;
2399
2398
  }
2400
2399
  else if (!file.url) {
@@ -3050,7 +3049,7 @@ class FileManager extends core_1.Host {
3050
3049
  options = { pathname: options };
3051
3050
  }
3052
3051
  options.pathname ||= this.baseDirectory;
3053
- return isRclone(uri) ? this.Request.rclone(uri, options) : this.Request.aria2c(uri, options);
3052
+ return request_1.isRclone(uri) ? this.Request.rclone(uri, options) : this.Request.aria2c(uri, options);
3054
3053
  }
3055
3054
  async start(emptyDir) {
3056
3055
  const listener = (resolve) => {
@@ -3686,7 +3685,7 @@ class FileManager extends core_1.Host {
3686
3685
  }
3687
3686
  downloading[uri] = [];
3688
3687
  this.performAsyncTask();
3689
- const options = { pathname, binOpts: item.binOpts };
3688
+ const options = { pathname, binOpts: item.binOpts, shellExpansion: item.shellExpansion };
3690
3689
  let src;
3691
3690
  if (type === 0) {
3692
3691
  if (item.filename) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-mc/file-manager",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
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.12.2",
24
- "@e-mc/compress": "0.12.2",
25
- "@e-mc/core": "0.12.2",
26
- "@e-mc/document": "0.12.2",
27
- "@e-mc/image": "0.12.2",
28
- "@e-mc/request": "0.12.2",
29
- "@e-mc/task": "0.12.2",
30
- "@e-mc/types": "0.12.2",
31
- "@e-mc/watch": "0.12.2",
23
+ "@e-mc/cloud": "0.12.3",
24
+ "@e-mc/compress": "0.12.3",
25
+ "@e-mc/core": "0.12.3",
26
+ "@e-mc/document": "0.12.3",
27
+ "@e-mc/image": "0.12.3",
28
+ "@e-mc/request": "0.12.3",
29
+ "@e-mc/task": "0.12.3",
30
+ "@e-mc/types": "0.12.3",
31
+ "@e-mc/watch": "0.12.3",
32
32
  "chalk": "4.1.2",
33
33
  "diff": "^7.0.0",
34
34
  "picomatch": "^4.0.2"