@forklaunch/implementation-worker-redis 0.5.5 → 0.5.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 +17 -17
- package/lib/domain/schemas/index.mjs +17 -17
- package/package.json +6 -6
|
@@ -35,7 +35,7 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
35
35
|
// domain/schemas/redisWorker.schema.ts
|
|
36
36
|
var import_internal = require('@forklaunch/internal');
|
|
37
37
|
|
|
38
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
38
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
39
39
|
var typebox_exports = {};
|
|
40
40
|
__export(typebox_exports, {
|
|
41
41
|
SchemaValidator: () => SchemaValidator,
|
|
@@ -75,15 +75,15 @@ __export(typebox_exports, {
|
|
|
75
75
|
});
|
|
76
76
|
__reExport(typebox_exports, require('@sinclair/typebox'));
|
|
77
77
|
|
|
78
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.5.
|
|
78
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.5.3/node_modules/@forklaunch/common/lib/index.mjs
|
|
79
79
|
var InMemoryBlob = class extends Blob {
|
|
80
80
|
constructor(content) {
|
|
81
|
-
super([
|
|
81
|
+
super([content]);
|
|
82
82
|
this.content = content;
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
85
|
|
|
86
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
86
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
87
87
|
var import_typebox = require('@sinclair/typebox');
|
|
88
88
|
var import_compiler = require('@sinclair/typebox/compiler');
|
|
89
89
|
var import_errors = require('@sinclair/typebox/errors');
|
|
@@ -121,7 +121,7 @@ var TypeboxSchemaValidator = class {
|
|
|
121
121
|
title: 'UUID'
|
|
122
122
|
});
|
|
123
123
|
email = import_typebox.Type.String({
|
|
124
|
-
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\
|
|
124
|
+
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
|
|
125
125
|
errorType: 'email',
|
|
126
126
|
example: 'a@b.com',
|
|
127
127
|
title: 'Email'
|
|
@@ -289,22 +289,22 @@ var TypeboxSchemaValidator = class {
|
|
|
289
289
|
import_typebox.Type.String({
|
|
290
290
|
errorType: 'binary',
|
|
291
291
|
format: 'binary',
|
|
292
|
-
example: 'a
|
|
292
|
+
example: 'a base-64 encodable string',
|
|
293
293
|
title: 'Binary'
|
|
294
294
|
})
|
|
295
295
|
)
|
|
296
|
-
.Decode((value) => new
|
|
296
|
+
.Decode((value) => new Uint8Array(Buffer.from(value, 'base64')))
|
|
297
297
|
.Encode((value) => {
|
|
298
|
-
if (value instanceof
|
|
298
|
+
if (value instanceof Buffer) {
|
|
299
299
|
return String.fromCharCode(...new Uint8Array(value));
|
|
300
300
|
}
|
|
301
301
|
return '';
|
|
302
302
|
});
|
|
303
303
|
file = import_typebox.Type.Transform(
|
|
304
|
-
import_typebox.Type.
|
|
304
|
+
import_typebox.Type.Unsafe({
|
|
305
305
|
errorType: 'binary',
|
|
306
306
|
format: 'binary',
|
|
307
|
-
example: 'a
|
|
307
|
+
example: 'a raw buffer or file stream',
|
|
308
308
|
title: 'File'
|
|
309
309
|
})
|
|
310
310
|
)
|
|
@@ -632,7 +632,7 @@ var RedisWorkerOptionsSchema = {
|
|
|
632
632
|
interval: number
|
|
633
633
|
};
|
|
634
634
|
|
|
635
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
635
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
636
636
|
var import_v3 = require('zod/v3');
|
|
637
637
|
|
|
638
638
|
// ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
|
|
@@ -694,7 +694,7 @@ merge.withOptions = (options, ...objects) => {
|
|
|
694
694
|
return result;
|
|
695
695
|
};
|
|
696
696
|
|
|
697
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
697
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
698
698
|
var import_v32 = require('zod/v3');
|
|
699
699
|
function extendApi(schema, schemaObject = {}) {
|
|
700
700
|
const This = schema.constructor;
|
|
@@ -1246,7 +1246,7 @@ var ZodSchemaValidator = class {
|
|
|
1246
1246
|
email = import_v3.z.string().email().openapi({
|
|
1247
1247
|
title: 'Email',
|
|
1248
1248
|
format: 'email',
|
|
1249
|
-
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\
|
|
1249
|
+
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
|
|
1250
1250
|
example: 'a@b.com'
|
|
1251
1251
|
});
|
|
1252
1252
|
uri = import_v3.z.string().url().openapi({
|
|
@@ -1368,15 +1368,15 @@ var ZodSchemaValidator = class {
|
|
|
1368
1368
|
});
|
|
1369
1369
|
binary = import_v3.z
|
|
1370
1370
|
.string()
|
|
1371
|
-
.transform((
|
|
1371
|
+
.transform((val) => new Uint8Array(Buffer.from(val, 'base64')))
|
|
1372
1372
|
.openapi({
|
|
1373
1373
|
title: 'Binary',
|
|
1374
1374
|
type: 'string',
|
|
1375
1375
|
format: 'binary',
|
|
1376
|
-
example: 'a
|
|
1376
|
+
example: 'a base-64 encodable string'
|
|
1377
1377
|
});
|
|
1378
1378
|
file = import_v3.z
|
|
1379
|
-
.
|
|
1379
|
+
.instanceof(Buffer)
|
|
1380
1380
|
.transform((val) => {
|
|
1381
1381
|
return new Blob([val]);
|
|
1382
1382
|
})
|
|
@@ -1384,7 +1384,7 @@ var ZodSchemaValidator = class {
|
|
|
1384
1384
|
title: 'File',
|
|
1385
1385
|
type: 'string',
|
|
1386
1386
|
format: 'binary',
|
|
1387
|
-
example: 'a
|
|
1387
|
+
example: 'a base-64 encodable blob or file'
|
|
1388
1388
|
});
|
|
1389
1389
|
type = () => this.any;
|
|
1390
1390
|
/**
|
|
@@ -25,7 +25,7 @@ var __reExport = (target, mod, secondTarget) => (
|
|
|
25
25
|
// domain/schemas/redisWorker.schema.ts
|
|
26
26
|
import { serviceSchemaResolver } from '@forklaunch/internal';
|
|
27
27
|
|
|
28
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
28
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
29
29
|
var typebox_exports = {};
|
|
30
30
|
__export(typebox_exports, {
|
|
31
31
|
SchemaValidator: () => SchemaValidator,
|
|
@@ -66,15 +66,15 @@ __export(typebox_exports, {
|
|
|
66
66
|
__reExport(typebox_exports, typebox_star);
|
|
67
67
|
import * as typebox_star from '@sinclair/typebox';
|
|
68
68
|
|
|
69
|
-
// ../../../node_modules/.pnpm/@forklaunch+common@0.5.
|
|
69
|
+
// ../../../node_modules/.pnpm/@forklaunch+common@0.5.3/node_modules/@forklaunch/common/lib/index.mjs
|
|
70
70
|
var InMemoryBlob = class extends Blob {
|
|
71
71
|
constructor(content) {
|
|
72
|
-
super([
|
|
72
|
+
super([content]);
|
|
73
73
|
this.content = content;
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
77
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/typebox/index.mjs
|
|
78
78
|
import { FormatRegistry, Kind, KindGuard, Type } from '@sinclair/typebox';
|
|
79
79
|
import { TypeCheck, TypeCompiler } from '@sinclair/typebox/compiler';
|
|
80
80
|
import {
|
|
@@ -113,7 +113,7 @@ var TypeboxSchemaValidator = class {
|
|
|
113
113
|
title: 'UUID'
|
|
114
114
|
});
|
|
115
115
|
email = Type.String({
|
|
116
|
-
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\
|
|
116
|
+
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
|
|
117
117
|
errorType: 'email',
|
|
118
118
|
example: 'a@b.com',
|
|
119
119
|
title: 'Email'
|
|
@@ -274,22 +274,22 @@ var TypeboxSchemaValidator = class {
|
|
|
274
274
|
Type.String({
|
|
275
275
|
errorType: 'binary',
|
|
276
276
|
format: 'binary',
|
|
277
|
-
example: 'a
|
|
277
|
+
example: 'a base-64 encodable string',
|
|
278
278
|
title: 'Binary'
|
|
279
279
|
})
|
|
280
280
|
)
|
|
281
|
-
.Decode((value) => new
|
|
281
|
+
.Decode((value) => new Uint8Array(Buffer.from(value, 'base64')))
|
|
282
282
|
.Encode((value) => {
|
|
283
|
-
if (value instanceof
|
|
283
|
+
if (value instanceof Buffer) {
|
|
284
284
|
return String.fromCharCode(...new Uint8Array(value));
|
|
285
285
|
}
|
|
286
286
|
return '';
|
|
287
287
|
});
|
|
288
288
|
file = Type.Transform(
|
|
289
|
-
Type.
|
|
289
|
+
Type.Unsafe({
|
|
290
290
|
errorType: 'binary',
|
|
291
291
|
format: 'binary',
|
|
292
|
-
example: 'a
|
|
292
|
+
example: 'a raw buffer or file stream',
|
|
293
293
|
title: 'File'
|
|
294
294
|
})
|
|
295
295
|
)
|
|
@@ -608,7 +608,7 @@ var RedisWorkerOptionsSchema = {
|
|
|
608
608
|
interval: number
|
|
609
609
|
};
|
|
610
610
|
|
|
611
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
611
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
612
612
|
import { z as z2, ZodType } from 'zod/v3';
|
|
613
613
|
|
|
614
614
|
// ../../../node_modules/.pnpm/ts-deepmerge@7.0.3/node_modules/ts-deepmerge/esm/index.js
|
|
@@ -670,7 +670,7 @@ merge.withOptions = (options, ...objects) => {
|
|
|
670
670
|
return result;
|
|
671
671
|
};
|
|
672
672
|
|
|
673
|
-
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.
|
|
673
|
+
// ../../../node_modules/.pnpm/@forklaunch+validator@0.9.4/node_modules/@forklaunch/validator/lib/src/zod/index.mjs
|
|
674
674
|
import { z } from 'zod/v3';
|
|
675
675
|
function extendApi(schema, schemaObject = {}) {
|
|
676
676
|
const This = schema.constructor;
|
|
@@ -1218,7 +1218,7 @@ var ZodSchemaValidator = class {
|
|
|
1218
1218
|
email = z2.string().email().openapi({
|
|
1219
1219
|
title: 'Email',
|
|
1220
1220
|
format: 'email',
|
|
1221
|
-
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\
|
|
1221
|
+
pattern: `(?:[a-z0-9!#$%&'*+/=?^_{|}~-]+(?:\\.[a-z0-9!#$%&'*+/=?^_{|}~-]+)*|"(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21\\x23-\\x5b\\x5d-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?|\\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-z0-9-]*[a-z0-9]:(?:[\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x21-\\x5a\\x5b-\\x7f]|\\\\[\\x01-\\x09\\x0b\\x0c\\x0e-\\x7f])+)])`,
|
|
1222
1222
|
example: 'a@b.com'
|
|
1223
1223
|
});
|
|
1224
1224
|
uri = z2.string().url().openapi({
|
|
@@ -1338,15 +1338,15 @@ var ZodSchemaValidator = class {
|
|
|
1338
1338
|
});
|
|
1339
1339
|
binary = z2
|
|
1340
1340
|
.string()
|
|
1341
|
-
.transform((
|
|
1341
|
+
.transform((val) => new Uint8Array(Buffer.from(val, 'base64')))
|
|
1342
1342
|
.openapi({
|
|
1343
1343
|
title: 'Binary',
|
|
1344
1344
|
type: 'string',
|
|
1345
1345
|
format: 'binary',
|
|
1346
|
-
example: 'a
|
|
1346
|
+
example: 'a base-64 encodable string'
|
|
1347
1347
|
});
|
|
1348
1348
|
file = z2
|
|
1349
|
-
.
|
|
1349
|
+
.instanceof(Buffer)
|
|
1350
1350
|
.transform((val) => {
|
|
1351
1351
|
return new Blob([val]);
|
|
1352
1352
|
})
|
|
@@ -1354,7 +1354,7 @@ var ZodSchemaValidator = class {
|
|
|
1354
1354
|
title: 'File',
|
|
1355
1355
|
type: 'string',
|
|
1356
1356
|
format: 'binary',
|
|
1357
|
-
example: 'a
|
|
1357
|
+
example: 'a base-64 encodable blob or file'
|
|
1358
1358
|
});
|
|
1359
1359
|
type = () => this.any;
|
|
1360
1360
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-worker-redis",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "Redis implementation for forklaunch workers",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -42,14 +42,14 @@
|
|
|
42
42
|
"lib/**"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@forklaunch/core": "^0.13.
|
|
46
|
-
"@forklaunch/internal": "^0.2.
|
|
45
|
+
"@forklaunch/core": "^0.13.4",
|
|
46
|
+
"@forklaunch/internal": "^0.2.4",
|
|
47
47
|
"@sinclair/typebox": "^0.34.40",
|
|
48
|
-
"zod": "^4.1.
|
|
49
|
-
"@forklaunch/interfaces-worker": "0.4.
|
|
48
|
+
"zod": "^4.1.1",
|
|
49
|
+
"@forklaunch/interfaces-worker": "0.4.5"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
52
|
+
"@typescript/native-preview": "7.0.0-dev.20250824.1",
|
|
53
53
|
"depcheck": "^1.4.7",
|
|
54
54
|
"eslint": "^9.34.0",
|
|
55
55
|
"prettier": "^3.6.2",
|