@e-mc/file-manager 0.13.7 → 0.13.8
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 +11 -11
- package/index.js +9 -9
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @e-mc/file-manager
|
|
2
2
|
|
|
3
|
-
* NodeJS 18.20
|
|
3
|
+
* NodeJS 18.20 LTS
|
|
4
4
|
* ES2022
|
|
5
5
|
|
|
6
6
|
## General Usage
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
## Interface
|
|
11
11
|
|
|
12
|
-
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.
|
|
12
|
+
* [View Source](https://www.unpkg.com/@e-mc/types@0.13.8/lib/index.d.ts)
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
15
|
import type { ChecksumValue, DataSource, IncrementalMatch, TaskAction } from "./squared";
|
|
@@ -297,15 +297,15 @@ NOTE: **FileManager** is a sub-class of [Host](https://www.npmjs.com/package/@e-
|
|
|
297
297
|
|
|
298
298
|
## References
|
|
299
299
|
|
|
300
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
301
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
302
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
303
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
304
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
305
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
306
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
307
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
308
|
-
- https://www.unpkg.com/@e-mc/types@0.13.
|
|
300
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/squared.d.ts
|
|
301
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/asset.d.ts
|
|
302
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/core.d.ts
|
|
303
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/filemanager.d.ts
|
|
304
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/logger.d.ts
|
|
305
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/module.d.ts
|
|
306
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/node.d.ts
|
|
307
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/request.d.ts
|
|
308
|
+
- https://www.unpkg.com/@e-mc/types@0.13.8/lib/settings.d.ts
|
|
309
309
|
|
|
310
310
|
* https://www.npmjs.com/package/@types/node
|
|
311
311
|
|
package/index.js
CHANGED
|
@@ -1324,7 +1324,7 @@ class FileManager extends core_1.Host {
|
|
|
1324
1324
|
if (typeof file_count === 'boolean') {
|
|
1325
1325
|
MEMORY.FILE_COUNT = file_count;
|
|
1326
1326
|
}
|
|
1327
|
-
if (
|
|
1327
|
+
if (request) {
|
|
1328
1328
|
let { timeout, disk, buffer, connect } = request;
|
|
1329
1329
|
if ((timeout = (0, util_2.fromSeconds)(timeout)) >= 0) {
|
|
1330
1330
|
HTTP_CLIENT.timeout = timeout;
|
|
@@ -1920,15 +1920,15 @@ class FileManager extends core_1.Host {
|
|
|
1920
1920
|
const database = this.dataSourceItems.filter(item => item.source === 'cloud');
|
|
1921
1921
|
let instance;
|
|
1922
1922
|
if ((0, types_1.isString)(target)) {
|
|
1923
|
-
const
|
|
1924
|
-
if ((0, types_1.isObject)(
|
|
1923
|
+
const mod = args.shift();
|
|
1924
|
+
if ((0, types_1.isObject)(mod)) {
|
|
1925
1925
|
if (target === "@e-mc/cloud") {
|
|
1926
|
-
instance = new cloud_1(
|
|
1926
|
+
instance = new cloud_1(mod, database);
|
|
1927
1927
|
}
|
|
1928
1928
|
else {
|
|
1929
1929
|
const Module = this.#tryPackage(target, name, 64);
|
|
1930
1930
|
if (Module) {
|
|
1931
|
-
instance = new Module(
|
|
1931
|
+
instance = new Module(mod, database);
|
|
1932
1932
|
}
|
|
1933
1933
|
}
|
|
1934
1934
|
}
|
|
@@ -1947,15 +1947,15 @@ class FileManager extends core_1.Host {
|
|
|
1947
1947
|
case 'watch': {
|
|
1948
1948
|
let instance;
|
|
1949
1949
|
if ((0, types_1.isString)(target)) {
|
|
1950
|
-
const
|
|
1951
|
-
if ((0, types_1.isObject)(
|
|
1950
|
+
const mod = args.shift();
|
|
1951
|
+
if ((0, types_1.isObject)(mod)) {
|
|
1952
1952
|
if (target === "@e-mc/watch") {
|
|
1953
|
-
instance = new watch_1(
|
|
1953
|
+
instance = new watch_1(mod);
|
|
1954
1954
|
}
|
|
1955
1955
|
else {
|
|
1956
1956
|
const Module = this.#tryPackage(target, name, 16);
|
|
1957
1957
|
if (Module) {
|
|
1958
|
-
instance = new Module(
|
|
1958
|
+
instance = new Module(mod);
|
|
1959
1959
|
}
|
|
1960
1960
|
}
|
|
1961
1961
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@e-mc/file-manager",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.8",
|
|
4
4
|
"description": "FileManager constructor for E-mc.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -19,15 +19,15 @@
|
|
|
19
19
|
"license": "BSD-3-Clause",
|
|
20
20
|
"homepage": "https://github.com/anpham6/e-mc#readme",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@e-mc/cloud": "0.13.
|
|
23
|
-
"@e-mc/compress": "0.13.
|
|
24
|
-
"@e-mc/core": "0.13.
|
|
25
|
-
"@e-mc/document": "0.13.
|
|
26
|
-
"@e-mc/image": "0.13.
|
|
27
|
-
"@e-mc/request": "0.13.
|
|
28
|
-
"@e-mc/task": "0.13.
|
|
29
|
-
"@e-mc/types": "0.13.
|
|
30
|
-
"@e-mc/watch": "0.13.
|
|
22
|
+
"@e-mc/cloud": "0.13.8",
|
|
23
|
+
"@e-mc/compress": "0.13.8",
|
|
24
|
+
"@e-mc/core": "0.13.8",
|
|
25
|
+
"@e-mc/document": "0.13.8",
|
|
26
|
+
"@e-mc/image": "0.13.8",
|
|
27
|
+
"@e-mc/request": "0.13.8",
|
|
28
|
+
"@e-mc/task": "0.13.8",
|
|
29
|
+
"@e-mc/types": "0.13.8",
|
|
30
|
+
"@e-mc/watch": "0.13.8",
|
|
31
31
|
"chalk": "4.1.2",
|
|
32
32
|
"diff": "^8.0.3",
|
|
33
33
|
"picomatch": "^4.0.3"
|