@e-mc/file-manager 0.8.12 → 0.8.14
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/README.md +10 -10
- package/index.js +10 -19
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
12
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/index.d.ts
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { DataSource, IncrementalMatch, TaskAction } from "./squared";
|
|
@@ -191,15 +191,15 @@ interface FileManagerConstructor extends HostConstructor {
|
|
|
191
191
|
|
|
192
192
|
## References
|
|
193
193
|
|
|
194
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
195
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
196
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
197
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
198
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
199
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
200
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
201
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
202
|
-
- https://www.unpkg.com/@e-mc/types@0.8.
|
|
194
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/squared.d.ts
|
|
195
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/asset.d.ts
|
|
196
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/core.d.ts
|
|
197
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/filemanager.d.ts
|
|
198
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/logger.d.ts
|
|
199
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/module.d.ts
|
|
200
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/node.d.ts
|
|
201
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/request.d.ts
|
|
202
|
+
- https://www.unpkg.com/@e-mc/types@0.8.14/lib/settings.d.ts
|
|
203
203
|
|
|
204
204
|
## LICENSE
|
|
205
205
|
|
package/index.js
CHANGED
|
@@ -1114,26 +1114,17 @@ class FileManager extends core_1.Host {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
switch (name) {
|
|
1116
1116
|
case 'cloud': {
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
const instance = new watch_1.default(...args);
|
|
1125
|
-
instance.host = this;
|
|
1126
|
-
instance.init(this.config);
|
|
1127
|
-
observeFile.call(this, instance);
|
|
1128
|
-
return this.Watch = instance;
|
|
1129
|
-
}
|
|
1130
|
-
case 'compress': {
|
|
1131
|
-
const instance = new compress_1.default(args[0]);
|
|
1132
|
-
instance.host = this;
|
|
1133
|
-
instance.init();
|
|
1134
|
-
observeFile.call(this, instance);
|
|
1135
|
-
return this.Compress = instance;
|
|
1117
|
+
if ((0, types_1.isArray)(args[1])) {
|
|
1118
|
+
const instance = new cloud_1.default(args[0], args[1]);
|
|
1119
|
+
instance.host = this;
|
|
1120
|
+
instance.init(this.config);
|
|
1121
|
+
observeFile.call(this, instance);
|
|
1122
|
+
return this.Cloud = instance;
|
|
1123
|
+
}
|
|
1136
1124
|
}
|
|
1125
|
+
case 'watch':
|
|
1126
|
+
case 'compress':
|
|
1127
|
+
return this.install(name, ...args);
|
|
1137
1128
|
default:
|
|
1138
1129
|
return null;
|
|
1139
1130
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/file-manager",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.14",
|
|
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.8.
|
|
24
|
-
"@e-mc/compress": "0.8.
|
|
25
|
-
"@e-mc/core": "0.8.
|
|
26
|
-
"@e-mc/document": "0.8.
|
|
27
|
-
"@e-mc/image": "0.8.
|
|
28
|
-
"@e-mc/request": "0.8.
|
|
29
|
-
"@e-mc/task": "0.8.
|
|
30
|
-
"@e-mc/types": "0.8.
|
|
31
|
-
"@e-mc/watch": "0.8.
|
|
23
|
+
"@e-mc/cloud": "0.8.14",
|
|
24
|
+
"@e-mc/compress": "0.8.14",
|
|
25
|
+
"@e-mc/core": "0.8.14",
|
|
26
|
+
"@e-mc/document": "0.8.14",
|
|
27
|
+
"@e-mc/image": "0.8.14",
|
|
28
|
+
"@e-mc/request": "0.8.14",
|
|
29
|
+
"@e-mc/task": "0.8.14",
|
|
30
|
+
"@e-mc/types": "0.8.14",
|
|
31
|
+
"@e-mc/watch": "0.8.14",
|
|
32
32
|
"picomatch": "^3.0.1"
|
|
33
33
|
}
|
|
34
34
|
}
|