express-file-cluster 0.1.6 → 0.2.0
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 +3 -3
- package/dist/auth/index.d.ts +3 -3
- package/dist/auth/index.js +7 -51
- package/dist/auth/index.js.map +1 -1
- package/dist/chunk-DQGWFWBV.js +63 -0
- package/dist/chunk-DQGWFWBV.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-QB3X6LKZ.cjs +63 -0
- package/dist/chunk-QB3X6LKZ.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 +53 -96
- package/dist/cli/index.js.map +1 -1
- package/dist/index.cjs +90 -188
- 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 -74
- 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 +3 -5
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "express-file-cluster",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Enterprise-grade, zero-boilerplate backend framework with file-based routing and multi-core clustering",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,20 +36,18 @@
|
|
|
36
36
|
"typecheck": "tsc --noEmit"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"chalk": "^5.3.0",
|
|
40
39
|
"chokidar": "^4.0.0",
|
|
41
40
|
"commander": "^12.0.0",
|
|
42
41
|
"cookie-parser": "^1.4.6",
|
|
43
42
|
"cors": "^2.8.6",
|
|
44
|
-
"dotenv": "^17.4.2",
|
|
45
43
|
"express": "^4.19.0",
|
|
46
|
-
"
|
|
44
|
+
"jose": "^6.2.3",
|
|
45
|
+
"picocolors": "^1.1.1"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
48
|
"@types/cookie-parser": "^1.4.7",
|
|
50
49
|
"@types/cors": "^2.8.19",
|
|
51
50
|
"@types/express": "^4.17.21",
|
|
52
|
-
"@types/jsonwebtoken": "^9.0.6",
|
|
53
51
|
"@types/node": "^22.0.0",
|
|
54
52
|
"@types/supertest": "^7.2.0",
|
|
55
53
|
"bullmq": "^5.79.1",
|