@e-mc/file-manager 0.6.5 → 0.6.7
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
|
@@ -874,26 +874,17 @@ class FileManager extends core_1.Host {
|
|
|
874
874
|
}
|
|
875
875
|
switch (name) {
|
|
876
876
|
case 'cloud': {
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
const instance = new watch_1.default(...args);
|
|
885
|
-
instance.host = this;
|
|
886
|
-
instance.init(this.config);
|
|
887
|
-
observeFile.call(this, instance);
|
|
888
|
-
return this.Watch = instance;
|
|
889
|
-
}
|
|
890
|
-
case 'compress': {
|
|
891
|
-
const instance = new compress_1.default(args[0]);
|
|
892
|
-
instance.host = this;
|
|
893
|
-
instance.init();
|
|
894
|
-
observeFile.call(this, instance);
|
|
895
|
-
return this.Compress = instance;
|
|
877
|
+
if ((0, types_1.isArray)(args[1])) {
|
|
878
|
+
const instance = new cloud_1.default(args[0], args[1]);
|
|
879
|
+
instance.host = this;
|
|
880
|
+
instance.init(this.config);
|
|
881
|
+
observeFile.call(this, instance);
|
|
882
|
+
return this.Cloud = instance;
|
|
883
|
+
}
|
|
896
884
|
}
|
|
885
|
+
case 'watch':
|
|
886
|
+
case 'compress':
|
|
887
|
+
return this.install(name, ...args);
|
|
897
888
|
default:
|
|
898
889
|
return null;
|
|
899
890
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/file-manager",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.7",
|
|
4
4
|
"description": "FileManager constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -20,14 +20,14 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@e-mc/cloud": "0.6.
|
|
24
|
-
"@e-mc/compress": "0.6.
|
|
25
|
-
"@e-mc/core": "0.6.
|
|
26
|
-
"@e-mc/document": "0.6.
|
|
27
|
-
"@e-mc/image": "0.6.
|
|
28
|
-
"@e-mc/request": "0.6.
|
|
29
|
-
"@e-mc/task": "0.6.
|
|
30
|
-
"@e-mc/types": "0.6.
|
|
31
|
-
"@e-mc/watch": "0.6.
|
|
23
|
+
"@e-mc/cloud": "0.6.7",
|
|
24
|
+
"@e-mc/compress": "0.6.7",
|
|
25
|
+
"@e-mc/core": "0.6.7",
|
|
26
|
+
"@e-mc/document": "0.6.7",
|
|
27
|
+
"@e-mc/image": "0.6.7",
|
|
28
|
+
"@e-mc/request": "0.6.7",
|
|
29
|
+
"@e-mc/task": "0.6.7",
|
|
30
|
+
"@e-mc/types": "0.6.7",
|
|
31
|
+
"@e-mc/watch": "0.6.7"
|
|
32
32
|
}
|
|
33
33
|
}
|