@e-mc/file-manager 0.7.10 → 0.7.12
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.
- package/index.js +8 -7
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -1581,6 +1581,7 @@ class FileManager extends core_1.Host {
|
|
|
1581
1581
|
return document === moduleName || Array.isArray(document) && document.includes(moduleName);
|
|
1582
1582
|
}
|
|
1583
1583
|
setLocalUri(file, replace) {
|
|
1584
|
+
var _l;
|
|
1584
1585
|
let uri = file.uri, torrent;
|
|
1585
1586
|
if (uri && !file.content && !file.base64 && !file.url) {
|
|
1586
1587
|
if (core_1.Host.isFile(uri, 'torrent')) {
|
|
@@ -1641,6 +1642,13 @@ class FileManager extends core_1.Host {
|
|
|
1641
1642
|
}
|
|
1642
1643
|
}
|
|
1643
1644
|
file.fetchType = type;
|
|
1645
|
+
if (file.document) {
|
|
1646
|
+
for (const { instance } of this.Document) {
|
|
1647
|
+
if (this.hasDocument(instance, file.document)) {
|
|
1648
|
+
(_l = instance.setLocalUri) === null || _l === void 0 ? void 0 : _l.call(instance, file, replace);
|
|
1649
|
+
}
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1644
1652
|
const segments = [];
|
|
1645
1653
|
if (file.moveTo) {
|
|
1646
1654
|
segments.push(file.moveTo);
|
|
@@ -1648,13 +1656,6 @@ class FileManager extends core_1.Host {
|
|
|
1648
1656
|
if (file.pathname) {
|
|
1649
1657
|
segments.push(file.pathname = core_1.Host.toPosix(file.pathname));
|
|
1650
1658
|
}
|
|
1651
|
-
if (file.document) {
|
|
1652
|
-
for (const { instance } of this.Document) {
|
|
1653
|
-
if (instance.setLocalUri && this.hasDocument(instance, file.document)) {
|
|
1654
|
-
instance.setLocalUri(file, replace);
|
|
1655
|
-
}
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
1659
|
const pathname = segments.length ? path.join(this.baseDirectory, ...segments) : this.baseDirectory;
|
|
1659
1660
|
const localUri = file.filename ? path.join(pathname, file.filename) : pathname;
|
|
1660
1661
|
file.localUri = localUri;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/file-manager",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.12",
|
|
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.7.
|
|
24
|
-
"@e-mc/compress": "0.7.
|
|
25
|
-
"@e-mc/core": "0.7.
|
|
26
|
-
"@e-mc/document": "0.7.
|
|
27
|
-
"@e-mc/image": "0.7.
|
|
28
|
-
"@e-mc/request": "0.7.
|
|
29
|
-
"@e-mc/task": "0.7.
|
|
30
|
-
"@e-mc/types": "0.7.
|
|
31
|
-
"@e-mc/watch": "0.7.
|
|
23
|
+
"@e-mc/cloud": "0.7.12",
|
|
24
|
+
"@e-mc/compress": "0.7.12",
|
|
25
|
+
"@e-mc/core": "0.7.12",
|
|
26
|
+
"@e-mc/document": "0.7.12",
|
|
27
|
+
"@e-mc/image": "0.7.12",
|
|
28
|
+
"@e-mc/request": "0.7.12",
|
|
29
|
+
"@e-mc/task": "0.7.12",
|
|
30
|
+
"@e-mc/types": "0.7.12",
|
|
31
|
+
"@e-mc/watch": "0.7.12",
|
|
32
32
|
"picomatch": "^3.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|