@e-mc/file-manager 0.7.8 → 0.7.10
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 +10 -19
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -1099,26 +1099,17 @@ class FileManager extends core_1.Host {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
switch (name) {
|
|
1101
1101
|
case 'cloud': {
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
const instance = new watch_1.default(...args);
|
|
1110
|
-
instance.host = this;
|
|
1111
|
-
instance.init(this.config);
|
|
1112
|
-
observeFile.call(this, instance);
|
|
1113
|
-
return this.Watch = instance;
|
|
1114
|
-
}
|
|
1115
|
-
case 'compress': {
|
|
1116
|
-
const instance = new compress_1.default(args[0]);
|
|
1117
|
-
instance.host = this;
|
|
1118
|
-
instance.init();
|
|
1119
|
-
observeFile.call(this, instance);
|
|
1120
|
-
return this.Compress = instance;
|
|
1102
|
+
if ((0, types_1.isArray)(args[1])) {
|
|
1103
|
+
const instance = new cloud_1.default(args[0], args[1]);
|
|
1104
|
+
instance.host = this;
|
|
1105
|
+
instance.init(this.config);
|
|
1106
|
+
observeFile.call(this, instance);
|
|
1107
|
+
return this.Cloud = instance;
|
|
1108
|
+
}
|
|
1121
1109
|
}
|
|
1110
|
+
case 'watch':
|
|
1111
|
+
case 'compress':
|
|
1112
|
+
return this.install(name, ...args);
|
|
1122
1113
|
default:
|
|
1123
1114
|
return null;
|
|
1124
1115
|
}
|
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.10",
|
|
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.10",
|
|
24
|
+
"@e-mc/compress": "0.7.10",
|
|
25
|
+
"@e-mc/core": "0.7.10",
|
|
26
|
+
"@e-mc/document": "0.7.10",
|
|
27
|
+
"@e-mc/image": "0.7.10",
|
|
28
|
+
"@e-mc/request": "0.7.10",
|
|
29
|
+
"@e-mc/task": "0.7.10",
|
|
30
|
+
"@e-mc/types": "0.7.10",
|
|
31
|
+
"@e-mc/watch": "0.7.10",
|
|
32
32
|
"picomatch": "^3.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|