@forklaunch/implementation-worker-kafka 0.3.0 → 0.3.2
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/lib/schemas/index.d.mts +2 -2
- package/lib/schemas/index.d.ts +2 -2
- package/lib/schemas/index.js +11 -11
- package/lib/schemas/index.mjs +10 -10
- package/package.json +21 -16
package/lib/schemas/index.d.mts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _forklaunch_internal from '@forklaunch/internal';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
4
|
import * as _forklaunch_validator from '@forklaunch/validator';
|
|
5
5
|
|
|
6
6
|
declare const KafkaWorkerSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: Record<string, unknown> & {
|
|
7
7
|
validator: SchemaValidator;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: Record<string, unknown>) => {
|
|
9
9
|
brokers: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
|
|
10
10
|
clientId: _sinclair_typebox.TString;
|
|
11
11
|
groupId: _sinclair_typebox.TString;
|
package/lib/schemas/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _forklaunch_internal from '@forklaunch/internal';
|
|
2
2
|
import * as zod from 'zod';
|
|
3
3
|
import * as _sinclair_typebox from '@sinclair/typebox';
|
|
4
4
|
import * as _forklaunch_validator from '@forklaunch/validator';
|
|
5
5
|
|
|
6
6
|
declare const KafkaWorkerSchemas: <SchemaValidator extends _forklaunch_validator.AnySchemaValidator>(options: Record<string, unknown> & {
|
|
7
7
|
validator: SchemaValidator;
|
|
8
|
-
}) =>
|
|
8
|
+
}) => _forklaunch_internal.SchemasByValidator<SchemaValidator, (options: Record<string, unknown>) => {
|
|
9
9
|
brokers: _sinclair_typebox.TArray<_sinclair_typebox.TString>;
|
|
10
10
|
clientId: _sinclair_typebox.TString;
|
|
11
11
|
groupId: _sinclair_typebox.TString;
|
package/lib/schemas/index.js
CHANGED
|
@@ -79,9 +79,9 @@ var require_cjs = __commonJS({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
82
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
83
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
84
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports2) {
|
|
85
85
|
"use strict";
|
|
86
86
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
87
87
|
exports2.generateSchema = exports2.extendApi = void 0;
|
|
@@ -409,9 +409,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
412
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
413
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
414
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports2) {
|
|
415
415
|
"use strict";
|
|
416
416
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
417
417
|
exports2.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +428,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
431
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
432
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
433
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js"(exports2) {
|
|
434
434
|
"use strict";
|
|
435
435
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
436
|
if (k2 === void 0) k2 = k;
|
|
@@ -462,9 +462,9 @@ __export(schemas_exports, {
|
|
|
462
462
|
module.exports = __toCommonJS(schemas_exports);
|
|
463
463
|
|
|
464
464
|
// schemas/kafka.schema.ts
|
|
465
|
-
var
|
|
465
|
+
var import_internal = require("@forklaunch/internal");
|
|
466
466
|
|
|
467
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.
|
|
467
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
|
|
468
468
|
var InMemoryFile = class extends File {
|
|
469
469
|
constructor(content, name, {
|
|
470
470
|
type: type3,
|
|
@@ -480,7 +480,7 @@ var InMemoryFile = class extends File {
|
|
|
480
480
|
}
|
|
481
481
|
};
|
|
482
482
|
|
|
483
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
483
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
484
484
|
var import_typebox = require("@sinclair/typebox");
|
|
485
485
|
var import_compiler = require("@sinclair/typebox/compiler");
|
|
486
486
|
var import_errors = require("@sinclair/typebox/errors");
|
|
@@ -992,7 +992,7 @@ var KafkaWorkerOptionsSchema = {
|
|
|
992
992
|
peekCount: number
|
|
993
993
|
};
|
|
994
994
|
|
|
995
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
995
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
996
996
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
997
997
|
var import_zod = require("zod");
|
|
998
998
|
(0, import_zod_openapi.extendZodWithOpenApi)(import_zod.z);
|
|
@@ -1367,7 +1367,7 @@ var KafkaWorkerOptionsSchema2 = {
|
|
|
1367
1367
|
};
|
|
1368
1368
|
|
|
1369
1369
|
// schemas/kafka.schema.ts
|
|
1370
|
-
var KafkaWorkerSchemas = (0,
|
|
1370
|
+
var KafkaWorkerSchemas = (0, import_internal.serviceSchemaResolver)(
|
|
1371
1371
|
() => KafkaWorkerOptionsSchema,
|
|
1372
1372
|
() => KafkaWorkerOptionsSchema2
|
|
1373
1373
|
);
|
package/lib/schemas/index.mjs
CHANGED
|
@@ -79,9 +79,9 @@ var require_cjs = __commonJS({
|
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
82
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
83
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
84
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports) {
|
|
85
85
|
"use strict";
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
87
|
exports.generateSchema = exports.extendApi = void 0;
|
|
@@ -409,9 +409,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
412
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
413
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
414
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports) {
|
|
415
415
|
"use strict";
|
|
416
416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
417
417
|
exports.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +428,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
428
|
}
|
|
429
429
|
});
|
|
430
430
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
431
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
432
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.
|
|
433
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.4.0_zod@3.25.67/node_modules/@anatine/zod-openapi/src/index.js"(exports) {
|
|
434
434
|
"use strict";
|
|
435
435
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
436
|
if (k2 === void 0) k2 = k;
|
|
@@ -455,9 +455,9 @@ var require_src = __commonJS({
|
|
|
455
455
|
});
|
|
456
456
|
|
|
457
457
|
// schemas/kafka.schema.ts
|
|
458
|
-
import { serviceSchemaResolver } from "@forklaunch/
|
|
458
|
+
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
459
459
|
|
|
460
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.
|
|
460
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
|
|
461
461
|
var InMemoryFile = class extends File {
|
|
462
462
|
constructor(content, name, {
|
|
463
463
|
type: type3,
|
|
@@ -473,7 +473,7 @@ var InMemoryFile = class extends File {
|
|
|
473
473
|
}
|
|
474
474
|
};
|
|
475
475
|
|
|
476
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
476
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
477
477
|
import {
|
|
478
478
|
FormatRegistry,
|
|
479
479
|
Kind,
|
|
@@ -994,7 +994,7 @@ var KafkaWorkerOptionsSchema = {
|
|
|
994
994
|
peekCount: number
|
|
995
995
|
};
|
|
996
996
|
|
|
997
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.
|
|
997
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.6.16_openapi3-ts@4.4.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
998
998
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
999
999
|
import {
|
|
1000
1000
|
z,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-worker-kafka",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Kafka implementation for forklaunch workers",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -15,42 +15,47 @@
|
|
|
15
15
|
"exports": {
|
|
16
16
|
"./consumers": {
|
|
17
17
|
"types": "./lib/consumers/index.d.ts",
|
|
18
|
-
"import": "./lib/consumers/index.
|
|
19
|
-
"require": "./lib/consumers/index.js"
|
|
18
|
+
"import": "./lib/consumers/index.mjs",
|
|
19
|
+
"require": "./lib/consumers/index.js",
|
|
20
|
+
"default": "./lib/consumers/index.js"
|
|
20
21
|
},
|
|
21
22
|
"./producers": {
|
|
22
23
|
"types": "./lib/producers/index.d.ts",
|
|
23
|
-
"import": "./lib/producers/index.
|
|
24
|
-
"require": "./lib/producers/index.js"
|
|
24
|
+
"import": "./lib/producers/index.mjs",
|
|
25
|
+
"require": "./lib/producers/index.js",
|
|
26
|
+
"default": "./lib/producers/index.js"
|
|
25
27
|
},
|
|
26
28
|
"./schemas": {
|
|
27
29
|
"types": "./lib/schemas/index.d.ts",
|
|
28
|
-
"import": "./lib/schemas/index.
|
|
29
|
-
"require": "./lib/schemas/index.js"
|
|
30
|
+
"import": "./lib/schemas/index.mjs",
|
|
31
|
+
"require": "./lib/schemas/index.js",
|
|
32
|
+
"default": "./lib/schemas/index.js"
|
|
30
33
|
},
|
|
31
34
|
"./types": {
|
|
32
35
|
"types": "./lib/types/index.d.ts",
|
|
33
|
-
"import": "./lib/types/index.
|
|
34
|
-
"require": "./lib/types/index.js"
|
|
36
|
+
"import": "./lib/types/index.mjs",
|
|
37
|
+
"require": "./lib/types/index.js",
|
|
38
|
+
"default": "./lib/types/index.js"
|
|
35
39
|
}
|
|
36
40
|
},
|
|
37
41
|
"files": [
|
|
38
42
|
"lib/**"
|
|
39
43
|
],
|
|
40
44
|
"dependencies": {
|
|
41
|
-
"@forklaunch/core": "^0.9.
|
|
42
|
-
"@
|
|
45
|
+
"@forklaunch/core": "^0.9.21",
|
|
46
|
+
"@forklaunch/internal": "^0.0.7",
|
|
47
|
+
"@sinclair/typebox": "^0.34.35",
|
|
43
48
|
"kafkajs": "^2.2.4",
|
|
44
|
-
"zod": "^3.25.
|
|
45
|
-
"@forklaunch/interfaces-worker": "0.2.
|
|
49
|
+
"zod": "^3.25.67",
|
|
50
|
+
"@forklaunch/interfaces-worker": "0.2.2"
|
|
46
51
|
},
|
|
47
52
|
"devDependencies": {
|
|
48
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
53
|
+
"@typescript/native-preview": "7.0.0-dev.20250619.1",
|
|
49
54
|
"depcheck": "^1.4.7",
|
|
50
|
-
"eslint": "^9.
|
|
55
|
+
"eslint": "^9.29.0",
|
|
51
56
|
"prettier": "^3.5.3",
|
|
52
57
|
"typedoc": "^0.28.5",
|
|
53
|
-
"typescript-eslint": "^8.34.
|
|
58
|
+
"typescript-eslint": "^8.34.1"
|
|
54
59
|
},
|
|
55
60
|
"scripts": {
|
|
56
61
|
"build": "tsc --noEmit && tsup producers/index.ts consumers/index.ts schemas/index.ts 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",
|