express-file-cluster 0.1.5 → 0.1.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/dist/auth/index.cjs +13 -96
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.cts +1 -1
- package/dist/auth/index.d.ts +1 -1
- package/dist/auth/index.js +7 -51
- package/dist/auth/index.js.map +1 -1
- package/dist/chunk-M7UOT4ZR.js +60 -0
- package/dist/chunk-M7UOT4ZR.js.map +1 -0
- package/dist/chunk-MQNVNOH5.cjs +48 -0
- package/dist/chunk-MQNVNOH5.cjs.map +1 -0
- package/dist/chunk-MZPG5HXL.js +48 -0
- package/dist/chunk-MZPG5HXL.js.map +1 -0
- package/dist/chunk-PFJWEU4E.cjs +60 -0
- package/dist/chunk-PFJWEU4E.cjs.map +1 -0
- package/dist/chunk-UDE6S53C.cjs +42 -0
- package/dist/chunk-UDE6S53C.cjs.map +1 -0
- package/dist/chunk-Z5YNIVQG.js +42 -0
- package/dist/chunk-Z5YNIVQG.js.map +1 -0
- package/dist/cli/index.cjs +101 -167
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +16 -59
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +117 -194
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +46 -79
- package/dist/index.js.map +1 -1
- package/dist/tasks/index.cjs +13 -68
- package/dist/tasks/index.cjs.map +1 -1
- package/dist/tasks/index.d.cts +1 -1
- package/dist/tasks/index.d.ts +1 -1
- package/dist/tasks/index.js +7 -33
- package/dist/tasks/index.js.map +1 -1
- package/dist/{types-CkpRAA3y.d.cts → types-Dj9-sLOK.d.cts} +1 -1
- package/dist/{types-CkpRAA3y.d.ts → types-Dj9-sLOK.d.ts} +1 -1
- package/package.json +1 -1
package/dist/tasks/index.cjs
CHANGED
|
@@ -1,70 +1,15 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
19
2
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
let options = {};
|
|
33
|
-
let handler;
|
|
34
|
-
if (typeof handlerOrOptions === "function") {
|
|
35
|
-
handler = handlerOrOptions;
|
|
36
|
-
} else {
|
|
37
|
-
options = handlerOrOptions;
|
|
38
|
-
if (!maybeHandler) throw new Error("[EFC] defineTask: handler function is required");
|
|
39
|
-
handler = maybeHandler;
|
|
40
|
-
}
|
|
41
|
-
return {
|
|
42
|
-
handler,
|
|
43
|
-
options,
|
|
44
|
-
name: ""
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
var _impl = null;
|
|
48
|
-
function setEnqueueImpl(impl) {
|
|
49
|
-
_impl = impl;
|
|
50
|
-
}
|
|
51
|
-
async function enqueue(name, payload) {
|
|
52
|
-
if (!_impl) {
|
|
53
|
-
throw new Error(
|
|
54
|
-
`[EFC] Task queue not initialised. Set tasks.backend in ignite() config.`
|
|
55
|
-
);
|
|
56
|
-
}
|
|
57
|
-
return _impl(name, payload);
|
|
58
|
-
}
|
|
59
|
-
function registerTask(name, def) {
|
|
60
|
-
taskRegistry.set(name, { ...def, name });
|
|
61
|
-
}
|
|
62
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
63
|
-
0 && (module.exports = {
|
|
64
|
-
defineTask,
|
|
65
|
-
enqueue,
|
|
66
|
-
registerTask,
|
|
67
|
-
setEnqueueImpl,
|
|
68
|
-
taskRegistry
|
|
69
|
-
});
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _chunkUDE6S53Ccjs = require('../chunk-UDE6S53C.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.defineTask = _chunkUDE6S53Ccjs.defineTask; exports.enqueue = _chunkUDE6S53Ccjs.enqueue; exports.registerTask = _chunkUDE6S53Ccjs.registerTask; exports.setEnqueueImpl = _chunkUDE6S53Ccjs.setEnqueueImpl; exports.taskRegistry = _chunkUDE6S53Ccjs.taskRegistry;
|
|
70
15
|
//# sourceMappingURL=index.cjs.map
|
package/dist/tasks/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/efc.js/efc.js/packages/core/dist/tasks/index.cjs"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACF,yDAA8B;AAC9B;AACE;AACA;AACA;AACA;AACA;AACF,wQAAC","file":"/home/runner/work/efc.js/efc.js/packages/core/dist/tasks/index.cjs"}
|
package/dist/tasks/index.d.cts
CHANGED
package/dist/tasks/index.d.ts
CHANGED
package/dist/tasks/index.js
CHANGED
|
@@ -1,36 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} else {
|
|
9
|
-
options = handlerOrOptions;
|
|
10
|
-
if (!maybeHandler) throw new Error("[EFC] defineTask: handler function is required");
|
|
11
|
-
handler = maybeHandler;
|
|
12
|
-
}
|
|
13
|
-
return {
|
|
14
|
-
handler,
|
|
15
|
-
options,
|
|
16
|
-
name: ""
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
var _impl = null;
|
|
20
|
-
function setEnqueueImpl(impl) {
|
|
21
|
-
_impl = impl;
|
|
22
|
-
}
|
|
23
|
-
async function enqueue(name, payload) {
|
|
24
|
-
if (!_impl) {
|
|
25
|
-
throw new Error(
|
|
26
|
-
`[EFC] Task queue not initialised. Set tasks.backend in ignite() config.`
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
return _impl(name, payload);
|
|
30
|
-
}
|
|
31
|
-
function registerTask(name, def) {
|
|
32
|
-
taskRegistry.set(name, { ...def, name });
|
|
33
|
-
}
|
|
1
|
+
import {
|
|
2
|
+
defineTask,
|
|
3
|
+
enqueue,
|
|
4
|
+
registerTask,
|
|
5
|
+
setEnqueueImpl,
|
|
6
|
+
taskRegistry
|
|
7
|
+
} from "../chunk-Z5YNIVQG.js";
|
|
34
8
|
export {
|
|
35
9
|
defineTask,
|
|
36
10
|
enqueue,
|
package/dist/tasks/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -57,7 +57,7 @@ interface FieldDefinition {
|
|
|
57
57
|
default?: unknown;
|
|
58
58
|
}
|
|
59
59
|
type ModelSchema = Record<string, FieldDefinition>;
|
|
60
|
-
interface ModelCRUD<T extends Record<string,
|
|
60
|
+
interface ModelCRUD<T extends Record<string, any>> {
|
|
61
61
|
find(filter?: Partial<T>): Promise<T[]>;
|
|
62
62
|
findById(id: string): Promise<(T & {
|
|
63
63
|
id: string;
|
|
@@ -57,7 +57,7 @@ interface FieldDefinition {
|
|
|
57
57
|
default?: unknown;
|
|
58
58
|
}
|
|
59
59
|
type ModelSchema = Record<string, FieldDefinition>;
|
|
60
|
-
interface ModelCRUD<T extends Record<string,
|
|
60
|
+
interface ModelCRUD<T extends Record<string, any>> {
|
|
61
61
|
find(filter?: Partial<T>): Promise<T[]>;
|
|
62
62
|
findById(id: string): Promise<(T & {
|
|
63
63
|
id: string;
|
package/package.json
CHANGED