@forklaunch/implementation-worker-redis 0.3.4 → 0.3.6
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/domain/schemas/index.js +57 -29
- package/lib/domain/schemas/index.mjs +62 -29
- package/lib/eject/domain/schemas/redisWorker.schema.ts +1 -1
- package/lib/eject/producers/redisWorker.producer.ts +0 -1
- package/lib/producers/index.js +0 -1
- package/lib/producers/index.mjs +0 -1
- package/package.json +11 -11
|
@@ -20,6 +20,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
20
20
|
}
|
|
21
21
|
return to;
|
|
22
22
|
};
|
|
23
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
23
24
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
25
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
26
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -79,9 +80,9 @@ var require_cjs = __commonJS({
|
|
|
79
80
|
}
|
|
80
81
|
});
|
|
81
82
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
83
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
84
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
85
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports2) {
|
|
85
86
|
"use strict";
|
|
86
87
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
87
88
|
exports2.generateSchema = exports2.extendApi = void 0;
|
|
@@ -409,9 +410,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
410
|
}
|
|
410
411
|
});
|
|
411
412
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
413
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
414
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
415
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports2) {
|
|
415
416
|
"use strict";
|
|
416
417
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
417
418
|
exports2.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +429,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
429
|
}
|
|
429
430
|
});
|
|
430
431
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
432
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
433
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
434
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/index.js"(exports2) {
|
|
434
435
|
"use strict";
|
|
435
436
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
437
|
if (k2 === void 0) k2 = k;
|
|
@@ -464,23 +465,55 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
464
465
|
// domain/schemas/redisWorker.schema.ts
|
|
465
466
|
var import_internal = require("@forklaunch/internal");
|
|
466
467
|
|
|
467
|
-
// ../../../node_modules/.pnpm/@forklaunch+
|
|
468
|
-
var
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
468
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.4_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
469
|
+
var typebox_exports = {};
|
|
470
|
+
__export(typebox_exports, {
|
|
471
|
+
SchemaValidator: () => SchemaValidator,
|
|
472
|
+
TypeboxSchemaValidator: () => TypeboxSchemaValidator,
|
|
473
|
+
any: () => any,
|
|
474
|
+
array: () => array,
|
|
475
|
+
bigint: () => bigint,
|
|
476
|
+
binary: () => binary,
|
|
477
|
+
boolean: () => boolean,
|
|
478
|
+
date: () => date,
|
|
479
|
+
email: () => email,
|
|
480
|
+
enum_: () => enum_,
|
|
481
|
+
file: () => file,
|
|
482
|
+
function_: () => function_,
|
|
483
|
+
isSchema: () => isSchema,
|
|
484
|
+
literal: () => literal,
|
|
485
|
+
never: () => never,
|
|
486
|
+
null_: () => null_,
|
|
487
|
+
nullish: () => nullish,
|
|
488
|
+
number: () => number,
|
|
489
|
+
openapi: () => openapi,
|
|
490
|
+
optional: () => optional,
|
|
491
|
+
parse: () => parse,
|
|
492
|
+
promise: () => promise,
|
|
493
|
+
record: () => record,
|
|
494
|
+
schemify: () => schemify,
|
|
495
|
+
string: () => string,
|
|
496
|
+
symbol: () => symbol,
|
|
497
|
+
type: () => type,
|
|
498
|
+
undefined_: () => undefined_,
|
|
499
|
+
union: () => union,
|
|
500
|
+
unknown: () => unknown,
|
|
501
|
+
uri: () => uri,
|
|
502
|
+
uuid: () => uuid,
|
|
503
|
+
validate: () => validate,
|
|
504
|
+
void_: () => void_
|
|
505
|
+
});
|
|
506
|
+
__reExport(typebox_exports, require("@sinclair/typebox"));
|
|
507
|
+
|
|
508
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.2/node_modules/@forklaunch/common/lib/index.mjs
|
|
509
|
+
var InMemoryBlob = class extends Blob {
|
|
510
|
+
constructor(content) {
|
|
511
|
+
super([Buffer.from(content)]);
|
|
479
512
|
this.content = content;
|
|
480
513
|
}
|
|
481
514
|
};
|
|
482
515
|
|
|
483
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
516
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.4_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
484
517
|
var import_typebox = require("@sinclair/typebox");
|
|
485
518
|
var import_compiler = require("@sinclair/typebox/compiler");
|
|
486
519
|
var import_errors = require("@sinclair/typebox/errors");
|
|
@@ -680,12 +713,10 @@ var TypeboxSchemaValidator = class {
|
|
|
680
713
|
import_typebox.Type.String({
|
|
681
714
|
errorType: "binary",
|
|
682
715
|
format: "binary",
|
|
683
|
-
example: "a utf-8 encodable
|
|
716
|
+
example: "a utf-8 encodable blob or file",
|
|
684
717
|
title: "File"
|
|
685
718
|
})
|
|
686
|
-
).Decode(
|
|
687
|
-
(value) => (name, type22) => new InMemoryFile(value, name, { type: type22 })
|
|
688
|
-
).Encode((value) => value("name", "type").content);
|
|
719
|
+
).Decode((value) => new InMemoryBlob(value)).Encode((value) => value.content);
|
|
689
720
|
type = () => this.any;
|
|
690
721
|
/**
|
|
691
722
|
* Extracts the error type of a schema for error messages.
|
|
@@ -989,7 +1020,7 @@ var RedisWorkerOptionsSchema = {
|
|
|
989
1020
|
interval: number
|
|
990
1021
|
};
|
|
991
1022
|
|
|
992
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
1023
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.4_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
993
1024
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
994
1025
|
var import_zod = require("zod");
|
|
995
1026
|
(0, import_zod_openapi.extendZodWithOpenApi)(import_zod.z);
|
|
@@ -1127,15 +1158,12 @@ var ZodSchemaValidator = class {
|
|
|
1127
1158
|
example: "a utf-8 encodable string"
|
|
1128
1159
|
});
|
|
1129
1160
|
file = import_zod.z.string().transform((val) => {
|
|
1130
|
-
return
|
|
1131
|
-
type: type22,
|
|
1132
|
-
lastModified: Date.now()
|
|
1133
|
-
});
|
|
1161
|
+
return new Blob([val]);
|
|
1134
1162
|
}).openapi({
|
|
1135
1163
|
title: "File",
|
|
1136
1164
|
type: "string",
|
|
1137
1165
|
format: "binary",
|
|
1138
|
-
example: "a utf-8 encodable
|
|
1166
|
+
example: "a utf-8 encodable blob or file"
|
|
1139
1167
|
});
|
|
1140
1168
|
type = () => this.any;
|
|
1141
1169
|
/**
|
|
@@ -13,6 +13,10 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
|
|
|
13
13
|
var __commonJS = (cb, mod) => function __require2() {
|
|
14
14
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
15
15
|
};
|
|
16
|
+
var __export = (target, all) => {
|
|
17
|
+
for (var name in all)
|
|
18
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
19
|
+
};
|
|
16
20
|
var __copyProps = (to, from, except, desc) => {
|
|
17
21
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
22
|
for (let key of __getOwnPropNames(from))
|
|
@@ -21,6 +25,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
21
25
|
}
|
|
22
26
|
return to;
|
|
23
27
|
};
|
|
28
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
24
29
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
30
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
31
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -79,9 +84,9 @@ var require_cjs = __commonJS({
|
|
|
79
84
|
}
|
|
80
85
|
});
|
|
81
86
|
|
|
82
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
87
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js
|
|
83
88
|
var require_zod_openapi = __commonJS({
|
|
84
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
89
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-openapi.js"(exports) {
|
|
85
90
|
"use strict";
|
|
86
91
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
92
|
exports.generateSchema = exports.extendApi = void 0;
|
|
@@ -409,9 +414,9 @@ var require_zod_openapi = __commonJS({
|
|
|
409
414
|
}
|
|
410
415
|
});
|
|
411
416
|
|
|
412
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
417
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js
|
|
413
418
|
var require_zod_extensions = __commonJS({
|
|
414
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
419
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/lib/zod-extensions.js"(exports) {
|
|
415
420
|
"use strict";
|
|
416
421
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
417
422
|
exports.extendZodWithOpenApi = void 0;
|
|
@@ -428,9 +433,9 @@ var require_zod_extensions = __commonJS({
|
|
|
428
433
|
}
|
|
429
434
|
});
|
|
430
435
|
|
|
431
|
-
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
436
|
+
// ../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/index.js
|
|
432
437
|
var require_src = __commonJS({
|
|
433
|
-
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.
|
|
438
|
+
"../../../node_modules/.pnpm/@anatine+zod-openapi@2.2.8_openapi3-ts@4.5.0_zod@3.25.71/node_modules/@anatine/zod-openapi/src/index.js"(exports) {
|
|
434
439
|
"use strict";
|
|
435
440
|
var __createBinding = exports && exports.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
436
441
|
if (k2 === void 0) k2 = k;
|
|
@@ -457,23 +462,56 @@ var require_src = __commonJS({
|
|
|
457
462
|
// domain/schemas/redisWorker.schema.ts
|
|
458
463
|
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
459
464
|
|
|
460
|
-
// ../../../node_modules/.pnpm/@forklaunch+
|
|
461
|
-
var
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
465
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.4_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
466
|
+
var typebox_exports = {};
|
|
467
|
+
__export(typebox_exports, {
|
|
468
|
+
SchemaValidator: () => SchemaValidator,
|
|
469
|
+
TypeboxSchemaValidator: () => TypeboxSchemaValidator,
|
|
470
|
+
any: () => any,
|
|
471
|
+
array: () => array,
|
|
472
|
+
bigint: () => bigint,
|
|
473
|
+
binary: () => binary,
|
|
474
|
+
boolean: () => boolean,
|
|
475
|
+
date: () => date,
|
|
476
|
+
email: () => email,
|
|
477
|
+
enum_: () => enum_,
|
|
478
|
+
file: () => file,
|
|
479
|
+
function_: () => function_,
|
|
480
|
+
isSchema: () => isSchema,
|
|
481
|
+
literal: () => literal,
|
|
482
|
+
never: () => never,
|
|
483
|
+
null_: () => null_,
|
|
484
|
+
nullish: () => nullish,
|
|
485
|
+
number: () => number,
|
|
486
|
+
openapi: () => openapi,
|
|
487
|
+
optional: () => optional,
|
|
488
|
+
parse: () => parse,
|
|
489
|
+
promise: () => promise,
|
|
490
|
+
record: () => record,
|
|
491
|
+
schemify: () => schemify,
|
|
492
|
+
string: () => string,
|
|
493
|
+
symbol: () => symbol,
|
|
494
|
+
type: () => type,
|
|
495
|
+
undefined_: () => undefined_,
|
|
496
|
+
union: () => union,
|
|
497
|
+
unknown: () => unknown,
|
|
498
|
+
uri: () => uri,
|
|
499
|
+
uuid: () => uuid,
|
|
500
|
+
validate: () => validate,
|
|
501
|
+
void_: () => void_
|
|
502
|
+
});
|
|
503
|
+
__reExport(typebox_exports, typebox_star);
|
|
504
|
+
import * as typebox_star from "@sinclair/typebox";
|
|
505
|
+
|
|
506
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.4.2/node_modules/@forklaunch/common/lib/index.mjs
|
|
507
|
+
var InMemoryBlob = class extends Blob {
|
|
508
|
+
constructor(content) {
|
|
509
|
+
super([Buffer.from(content)]);
|
|
472
510
|
this.content = content;
|
|
473
511
|
}
|
|
474
512
|
};
|
|
475
513
|
|
|
476
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
514
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.4_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
477
515
|
import {
|
|
478
516
|
FormatRegistry,
|
|
479
517
|
Kind,
|
|
@@ -682,12 +720,10 @@ var TypeboxSchemaValidator = class {
|
|
|
682
720
|
Type.String({
|
|
683
721
|
errorType: "binary",
|
|
684
722
|
format: "binary",
|
|
685
|
-
example: "a utf-8 encodable
|
|
723
|
+
example: "a utf-8 encodable blob or file",
|
|
686
724
|
title: "File"
|
|
687
725
|
})
|
|
688
|
-
).Decode(
|
|
689
|
-
(value) => (name, type22) => new InMemoryFile(value, name, { type: type22 })
|
|
690
|
-
).Encode((value) => value("name", "type").content);
|
|
726
|
+
).Decode((value) => new InMemoryBlob(value)).Encode((value) => value.content);
|
|
691
727
|
type = () => this.any;
|
|
692
728
|
/**
|
|
693
729
|
* Extracts the error type of a schema for error messages.
|
|
@@ -991,7 +1027,7 @@ var RedisWorkerOptionsSchema = {
|
|
|
991
1027
|
interval: number
|
|
992
1028
|
};
|
|
993
1029
|
|
|
994
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.
|
|
1030
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.7.4_openapi3-ts@4.5.0/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
995
1031
|
var import_zod_openapi = __toESM(require_src(), 1);
|
|
996
1032
|
import {
|
|
997
1033
|
z,
|
|
@@ -1132,15 +1168,12 @@ var ZodSchemaValidator = class {
|
|
|
1132
1168
|
example: "a utf-8 encodable string"
|
|
1133
1169
|
});
|
|
1134
1170
|
file = z.string().transform((val) => {
|
|
1135
|
-
return
|
|
1136
|
-
type: type22,
|
|
1137
|
-
lastModified: Date.now()
|
|
1138
|
-
});
|
|
1171
|
+
return new Blob([val]);
|
|
1139
1172
|
}).openapi({
|
|
1140
1173
|
title: "File",
|
|
1141
1174
|
type: "string",
|
|
1142
1175
|
format: "binary",
|
|
1143
|
-
example: "a utf-8 encodable
|
|
1176
|
+
example: "a utf-8 encodable blob or file"
|
|
1144
1177
|
});
|
|
1145
1178
|
type = () => this.any;
|
|
1146
1179
|
/**
|
package/lib/producers/index.js
CHANGED
package/lib/producers/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-worker-redis",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Redis implementation for forklaunch workers",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,19 +42,19 @@
|
|
|
42
42
|
"lib/**"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@forklaunch/core": "^0.
|
|
46
|
-
"@forklaunch/internal": "^0.
|
|
47
|
-
"@sinclair/typebox": "^0.34.
|
|
48
|
-
"zod": "^3.25.
|
|
49
|
-
"@forklaunch/interfaces-worker": "0.2.
|
|
45
|
+
"@forklaunch/core": "^0.10.4",
|
|
46
|
+
"@forklaunch/internal": "^0.1.4",
|
|
47
|
+
"@sinclair/typebox": "^0.34.37",
|
|
48
|
+
"zod": "^3.25.71",
|
|
49
|
+
"@forklaunch/interfaces-worker": "0.2.4"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
52
|
+
"@typescript/native-preview": "7.0.0-dev.20250703.1",
|
|
53
53
|
"depcheck": "^1.4.7",
|
|
54
|
-
"eslint": "^9.
|
|
55
|
-
"prettier": "^3.
|
|
56
|
-
"typedoc": "^0.28.
|
|
57
|
-
"typescript-eslint": "^8.
|
|
54
|
+
"eslint": "^9.30.1",
|
|
55
|
+
"prettier": "^3.6.2",
|
|
56
|
+
"typedoc": "^0.28.7",
|
|
57
|
+
"typescript-eslint": "^8.35.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"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",
|