@forklaunch/implementation-worker-bullmq 0.4.0 → 0.5.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.
|
@@ -28,7 +28,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
28
28
|
// domain/schemas/bullMqWorker.schema.ts
|
|
29
29
|
var import_internal = require("@forklaunch/internal");
|
|
30
30
|
|
|
31
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
31
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
32
32
|
var typebox_exports = {};
|
|
33
33
|
__export(typebox_exports, {
|
|
34
34
|
SchemaValidator: () => SchemaValidator,
|
|
@@ -68,7 +68,7 @@ __export(typebox_exports, {
|
|
|
68
68
|
});
|
|
69
69
|
__reExport(typebox_exports, require("@sinclair/typebox"));
|
|
70
70
|
|
|
71
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.
|
|
71
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.6/node_modules/@forklaunch/common/lib/index.mjs
|
|
72
72
|
var InMemoryBlob = class extends Blob {
|
|
73
73
|
constructor(content) {
|
|
74
74
|
super([Buffer.from(content)]);
|
|
@@ -76,7 +76,7 @@ var InMemoryBlob = class extends Blob {
|
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
|
|
79
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
79
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
80
80
|
var import_typebox = require("@sinclair/typebox");
|
|
81
81
|
var import_compiler = require("@sinclair/typebox/compiler");
|
|
82
82
|
var import_errors = require("@sinclair/typebox/errors");
|
|
@@ -310,12 +310,12 @@ var TypeboxSchemaValidator = class {
|
|
|
310
310
|
* @returns {TResolve<T>} The resolved schema.
|
|
311
311
|
*/
|
|
312
312
|
schemify(schema) {
|
|
313
|
-
if (import_typebox.KindGuard.IsSchema(schema) || schema instanceof import_compiler.TypeCheck) {
|
|
314
|
-
return schema;
|
|
315
|
-
}
|
|
316
313
|
if (typeof schema === "string" || typeof schema === "number" || typeof schema === "boolean") {
|
|
317
314
|
return import_typebox.Type.Literal(schema);
|
|
318
315
|
}
|
|
316
|
+
if (import_typebox.KindGuard.IsSchema(schema) || schema instanceof import_compiler.TypeCheck) {
|
|
317
|
+
return schema;
|
|
318
|
+
}
|
|
319
319
|
const newSchema = {};
|
|
320
320
|
Object.getOwnPropertyNames(schema).forEach((key) => {
|
|
321
321
|
if (import_typebox.KindGuard.IsSchema(schema[key])) {
|
|
@@ -584,7 +584,7 @@ var BullMqWorkerOptionsSchema = {
|
|
|
584
584
|
interval: number
|
|
585
585
|
};
|
|
586
586
|
|
|
587
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
587
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
588
588
|
var import_v3 = require("zod/v3");
|
|
589
589
|
|
|
590
590
|
// ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
|
|
@@ -634,7 +634,7 @@ merge.withOptions = (options, ...objects) => {
|
|
|
634
634
|
return result;
|
|
635
635
|
};
|
|
636
636
|
|
|
637
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
637
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
638
638
|
var import_v32 = require("zod/v3");
|
|
639
639
|
function extendApi(schema, schemaObject = {}) {
|
|
640
640
|
const This = schema.constructor;
|
|
@@ -19,7 +19,7 @@ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "defau
|
|
|
19
19
|
// domain/schemas/bullMqWorker.schema.ts
|
|
20
20
|
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
21
21
|
|
|
22
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
22
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
23
23
|
var typebox_exports = {};
|
|
24
24
|
__export(typebox_exports, {
|
|
25
25
|
SchemaValidator: () => SchemaValidator,
|
|
@@ -60,7 +60,7 @@ __export(typebox_exports, {
|
|
|
60
60
|
__reExport(typebox_exports, typebox_star);
|
|
61
61
|
import * as typebox_star from "@sinclair/typebox";
|
|
62
62
|
|
|
63
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.
|
|
63
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.6/node_modules/@forklaunch/common/lib/index.mjs
|
|
64
64
|
var InMemoryBlob = class extends Blob {
|
|
65
65
|
constructor(content) {
|
|
66
66
|
super([Buffer.from(content)]);
|
|
@@ -68,7 +68,7 @@ var InMemoryBlob = class extends Blob {
|
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
71
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
72
72
|
import {
|
|
73
73
|
FormatRegistry,
|
|
74
74
|
Kind,
|
|
@@ -311,12 +311,12 @@ var TypeboxSchemaValidator = class {
|
|
|
311
311
|
* @returns {TResolve<T>} The resolved schema.
|
|
312
312
|
*/
|
|
313
313
|
schemify(schema) {
|
|
314
|
-
if (KindGuard.IsSchema(schema) || schema instanceof TypeCheck) {
|
|
315
|
-
return schema;
|
|
316
|
-
}
|
|
317
314
|
if (typeof schema === "string" || typeof schema === "number" || typeof schema === "boolean") {
|
|
318
315
|
return Type.Literal(schema);
|
|
319
316
|
}
|
|
317
|
+
if (KindGuard.IsSchema(schema) || schema instanceof TypeCheck) {
|
|
318
|
+
return schema;
|
|
319
|
+
}
|
|
320
320
|
const newSchema = {};
|
|
321
321
|
Object.getOwnPropertyNames(schema).forEach((key) => {
|
|
322
322
|
if (KindGuard.IsSchema(schema[key])) {
|
|
@@ -585,7 +585,7 @@ var BullMqWorkerOptionsSchema = {
|
|
|
585
585
|
interval: number
|
|
586
586
|
};
|
|
587
587
|
|
|
588
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
588
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
589
589
|
import {
|
|
590
590
|
z as z2,
|
|
591
591
|
ZodType
|
|
@@ -638,7 +638,7 @@ merge.withOptions = (options, ...objects) => {
|
|
|
638
638
|
return result;
|
|
639
639
|
};
|
|
640
640
|
|
|
641
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
641
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.8.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
642
642
|
import { z } from "zod/v3";
|
|
643
643
|
function extendApi(schema, schemaObject = {}) {
|
|
644
644
|
const This = schema.constructor;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-worker-bullmq",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "BullMQ implementation for forklaunch workers",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,20 +42,20 @@
|
|
|
42
42
|
"lib/**"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@forklaunch/core": "^0.
|
|
46
|
-
"@forklaunch/internal": "^0.1.
|
|
47
|
-
"@sinclair/typebox": "^0.34.
|
|
48
|
-
"bullmq": "^5.56.
|
|
49
|
-
"zod": "^4.0.
|
|
50
|
-
"@forklaunch/interfaces-worker": "0.
|
|
45
|
+
"@forklaunch/core": "^0.12.0",
|
|
46
|
+
"@forklaunch/internal": "^0.1.9",
|
|
47
|
+
"@sinclair/typebox": "^0.34.38",
|
|
48
|
+
"bullmq": "^5.56.9",
|
|
49
|
+
"zod": "^4.0.14",
|
|
50
|
+
"@forklaunch/interfaces-worker": "0.4.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
53
|
+
"@typescript/native-preview": "7.0.0-dev.20250803.1",
|
|
54
54
|
"depcheck": "^1.4.7",
|
|
55
|
-
"eslint": "^9.
|
|
55
|
+
"eslint": "^9.32.0",
|
|
56
56
|
"prettier": "^3.6.2",
|
|
57
|
-
"typedoc": "^0.28.
|
|
58
|
-
"typescript-eslint": "^8.
|
|
57
|
+
"typedoc": "^0.28.9",
|
|
58
|
+
"typescript-eslint": "^8.38.0"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
61
|
"build": "tsc --noEmit && tsup producers/index.ts consumers/index.ts domain/schemas/index.ts domain/types/index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
|