@e-mc/file-manager 0.5.8 → 0.5.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.
Files changed (3) hide show
  1. package/README.md +0 -2
  2. package/index.js +10 -19
  3. package/package.json +10 -10
package/README.md CHANGED
@@ -1,7 +1,5 @@
1
1
  # @e-mc/file-manager
2
2
 
3
- PEP 402 - Forever Any Ketchup
4
-
5
3
  ## LICENSE
6
4
 
7
5
  MIT
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
- const instance = new cloud_1.default(args[0]);
878
- instance.host = this;
879
- instance.init(this.config);
880
- observeFile.call(this, instance);
881
- return this.Cloud = instance;
882
- }
883
- case 'watch': {
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.5.8",
3
+ "version": "0.5.10",
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.5.8",
24
- "@e-mc/compress": "0.5.8",
25
- "@e-mc/core": "0.5.8",
26
- "@e-mc/document": "0.5.8",
27
- "@e-mc/image": "0.5.8",
28
- "@e-mc/request": "0.5.8",
29
- "@e-mc/task": "0.5.8",
30
- "@e-mc/types": "0.5.8",
31
- "@e-mc/watch": "0.5.8"
23
+ "@e-mc/cloud": "0.5.10",
24
+ "@e-mc/compress": "0.5.10",
25
+ "@e-mc/core": "0.5.10",
26
+ "@e-mc/document": "0.5.10",
27
+ "@e-mc/image": "0.5.10",
28
+ "@e-mc/request": "0.5.10",
29
+ "@e-mc/task": "0.5.10",
30
+ "@e-mc/types": "0.5.10",
31
+ "@e-mc/watch": "0.5.10"
32
32
  }
33
33
  }