express-file-cluster 0.1.6 → 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 +92 -186
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20 -70
- 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.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