@forklaunch/implementation-worker-redis 0.3.2 → 0.3.4
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/consumers/index.d.mts +1 -1
- package/lib/consumers/index.d.ts +1 -1
- package/lib/{schemas → domain/schemas}/index.js +5 -5
- package/lib/{schemas → domain/schemas}/index.mjs +4 -4
- package/lib/{types → domain/types}/index.js +1 -1
- package/lib/eject/consumers/redisWorker.consumer.ts +1 -1
- package/lib/eject/domain/schemas/redisWorker.schema.ts +1 -1
- package/lib/eject/producers/redisWorker.producer.ts +1 -1
- package/lib/producers/index.d.mts +1 -1
- package/lib/producers/index.d.ts +1 -1
- package/package.json +10 -10
- /package/lib/{schemas → domain/schemas}/index.d.mts +0 -0
- /package/lib/{schemas → domain/schemas}/index.d.ts +0 -0
- /package/lib/{types → domain/types}/index.d.mts +0 -0
- /package/lib/{types → domain/types}/index.d.ts +0 -0
- /package/lib/{types → domain/types}/index.mjs +0 -0
- /package/lib/eject/{types → domain/types}/index.ts +0 -0
- /package/lib/eject/{types → domain/types}/redisWorker.types.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
2
2
|
import { WorkerConsumer } from '@forklaunch/interfaces-worker/interfaces';
|
|
3
3
|
import { WorkerEventEntity, WorkerProcessFunction, WorkerFailureHandler } from '@forklaunch/interfaces-worker/types';
|
|
4
|
-
import { RedisWorkerOptions } from '../types/index.mjs';
|
|
4
|
+
import { RedisWorkerOptions } from '../domain/types/index.mjs';
|
|
5
5
|
|
|
6
6
|
declare class RedisWorkerConsumer<EventEntity extends WorkerEventEntity, Options extends RedisWorkerOptions> implements WorkerConsumer<EventEntity> {
|
|
7
7
|
protected readonly queueName: string;
|
package/lib/consumers/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
2
2
|
import { WorkerConsumer } from '@forklaunch/interfaces-worker/interfaces';
|
|
3
3
|
import { WorkerEventEntity, WorkerProcessFunction, WorkerFailureHandler } from '@forklaunch/interfaces-worker/types';
|
|
4
|
-
import { RedisWorkerOptions } from '../types/index.js';
|
|
4
|
+
import { RedisWorkerOptions } from '../domain/types/index.js';
|
|
5
5
|
|
|
6
6
|
declare class RedisWorkerConsumer<EventEntity extends WorkerEventEntity, Options extends RedisWorkerOptions> implements WorkerConsumer<EventEntity> {
|
|
7
7
|
protected readonly queueName: string;
|
|
@@ -454,14 +454,14 @@ var require_src = __commonJS({
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
// schemas/index.ts
|
|
457
|
+
// domain/schemas/index.ts
|
|
458
458
|
var schemas_exports = {};
|
|
459
459
|
__export(schemas_exports, {
|
|
460
460
|
RedisWorkerSchemas: () => RedisWorkerSchemas
|
|
461
461
|
});
|
|
462
462
|
module.exports = __toCommonJS(schemas_exports);
|
|
463
463
|
|
|
464
|
-
// schemas/redisWorker.schema.ts
|
|
464
|
+
// domain/schemas/redisWorker.schema.ts
|
|
465
465
|
var import_internal = require("@forklaunch/internal");
|
|
466
466
|
|
|
467
467
|
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
|
|
@@ -982,7 +982,7 @@ var validate = StaticSchemaValidator.validate.bind(StaticSchemaValidator);
|
|
|
982
982
|
var parse = StaticSchemaValidator.parse.bind(StaticSchemaValidator);
|
|
983
983
|
var openapi = StaticSchemaValidator.openapi.bind(StaticSchemaValidator);
|
|
984
984
|
|
|
985
|
-
// schemas/typebox/redisWorker.schema.ts
|
|
985
|
+
// domain/schemas/typebox/redisWorker.schema.ts
|
|
986
986
|
var RedisWorkerOptionsSchema = {
|
|
987
987
|
pageSize: number,
|
|
988
988
|
retries: number,
|
|
@@ -1353,14 +1353,14 @@ var validate2 = StaticSchemaValidator2.validate.bind(StaticSchemaValidator2);
|
|
|
1353
1353
|
var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
|
|
1354
1354
|
var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
|
|
1355
1355
|
|
|
1356
|
-
// schemas/zod/redisWorker.schema.ts
|
|
1356
|
+
// domain/schemas/zod/redisWorker.schema.ts
|
|
1357
1357
|
var RedisWorkerOptionsSchema2 = {
|
|
1358
1358
|
pageSize: number2,
|
|
1359
1359
|
retries: number2,
|
|
1360
1360
|
interval: number2
|
|
1361
1361
|
};
|
|
1362
1362
|
|
|
1363
|
-
// schemas/redisWorker.schema.ts
|
|
1363
|
+
// domain/schemas/redisWorker.schema.ts
|
|
1364
1364
|
var RedisWorkerSchemas = (0, import_internal.serviceSchemaResolver)(
|
|
1365
1365
|
() => RedisWorkerOptionsSchema,
|
|
1366
1366
|
() => RedisWorkerOptionsSchema2
|
|
@@ -454,7 +454,7 @@ var require_src = __commonJS({
|
|
|
454
454
|
}
|
|
455
455
|
});
|
|
456
456
|
|
|
457
|
-
// schemas/redisWorker.schema.ts
|
|
457
|
+
// domain/schemas/redisWorker.schema.ts
|
|
458
458
|
import { serviceSchemaResolver } from "@forklaunch/internal";
|
|
459
459
|
|
|
460
460
|
// ../../../node_modules/.pnpm/@forklaunch+common@0.3.14/node_modules/@forklaunch/common/lib/index.mjs
|
|
@@ -984,7 +984,7 @@ var validate = StaticSchemaValidator.validate.bind(StaticSchemaValidator);
|
|
|
984
984
|
var parse = StaticSchemaValidator.parse.bind(StaticSchemaValidator);
|
|
985
985
|
var openapi = StaticSchemaValidator.openapi.bind(StaticSchemaValidator);
|
|
986
986
|
|
|
987
|
-
// schemas/typebox/redisWorker.schema.ts
|
|
987
|
+
// domain/schemas/typebox/redisWorker.schema.ts
|
|
988
988
|
var RedisWorkerOptionsSchema = {
|
|
989
989
|
pageSize: number,
|
|
990
990
|
retries: number,
|
|
@@ -1358,14 +1358,14 @@ var validate2 = StaticSchemaValidator2.validate.bind(StaticSchemaValidator2);
|
|
|
1358
1358
|
var parse2 = StaticSchemaValidator2.parse.bind(StaticSchemaValidator2);
|
|
1359
1359
|
var openapi2 = StaticSchemaValidator2.openapi.bind(StaticSchemaValidator2);
|
|
1360
1360
|
|
|
1361
|
-
// schemas/zod/redisWorker.schema.ts
|
|
1361
|
+
// domain/schemas/zod/redisWorker.schema.ts
|
|
1362
1362
|
var RedisWorkerOptionsSchema2 = {
|
|
1363
1363
|
pageSize: number2,
|
|
1364
1364
|
retries: number2,
|
|
1365
1365
|
interval: number2
|
|
1366
1366
|
};
|
|
1367
1367
|
|
|
1368
|
-
// schemas/redisWorker.schema.ts
|
|
1368
|
+
// domain/schemas/redisWorker.schema.ts
|
|
1369
1369
|
var RedisWorkerSchemas = serviceSchemaResolver(
|
|
1370
1370
|
() => RedisWorkerOptionsSchema,
|
|
1371
1371
|
() => RedisWorkerOptionsSchema2
|
|
@@ -13,6 +13,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
13
13
|
};
|
|
14
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
15
|
|
|
16
|
-
// types/index.ts
|
|
16
|
+
// domain/types/index.ts
|
|
17
17
|
var types_exports = {};
|
|
18
18
|
module.exports = __toCommonJS(types_exports);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
WorkerFailureHandler,
|
|
6
6
|
WorkerProcessFunction
|
|
7
7
|
} from '@forklaunch/interfaces-worker/types';
|
|
8
|
-
import { RedisWorkerOptions } from '../types/redisWorker.types';
|
|
8
|
+
import { RedisWorkerOptions } from '../domain/types/redisWorker.types';
|
|
9
9
|
|
|
10
10
|
export class RedisWorkerConsumer<
|
|
11
11
|
EventEntity extends WorkerEventEntity,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
2
2
|
import { WorkerProducer } from '@forklaunch/interfaces-worker/interfaces';
|
|
3
3
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
4
|
-
import { RedisWorkerOptions } from '../types/redisWorker.types';
|
|
4
|
+
import { RedisWorkerOptions } from '../domain/types/redisWorker.types';
|
|
5
5
|
|
|
6
6
|
export class RedisWorkerProducer<
|
|
7
7
|
EventEntity extends WorkerEventEntity,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
2
2
|
import { WorkerProducer } from '@forklaunch/interfaces-worker/interfaces';
|
|
3
3
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
4
|
-
import { RedisWorkerOptions } from '../types/index.mjs';
|
|
4
|
+
import { RedisWorkerOptions } from '../domain/types/index.mjs';
|
|
5
5
|
|
|
6
6
|
declare class RedisWorkerProducer<EventEntity extends WorkerEventEntity, Options extends RedisWorkerOptions> implements WorkerProducer<EventEntity> {
|
|
7
7
|
private readonly queueName;
|
package/lib/producers/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TtlCache } from '@forklaunch/core/cache';
|
|
2
2
|
import { WorkerProducer } from '@forklaunch/interfaces-worker/interfaces';
|
|
3
3
|
import { WorkerEventEntity } from '@forklaunch/interfaces-worker/types';
|
|
4
|
-
import { RedisWorkerOptions } from '../types/index.js';
|
|
4
|
+
import { RedisWorkerOptions } from '../domain/types/index.js';
|
|
5
5
|
|
|
6
6
|
declare class RedisWorkerProducer<EventEntity extends WorkerEventEntity, Options extends RedisWorkerOptions> implements WorkerProducer<EventEntity> {
|
|
7
7
|
private readonly queueName;
|
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.4",
|
|
4
4
|
"description": "Redis implementation for forklaunch workers",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"default": "./lib/producers/index.js"
|
|
27
27
|
},
|
|
28
28
|
"./schemas": {
|
|
29
|
-
"types": "./lib/schemas/index.d.ts",
|
|
30
|
-
"import": "./lib/schemas/index.mjs",
|
|
31
|
-
"require": "./lib/schemas/index.js",
|
|
32
|
-
"default": "./lib/schemas/index.js"
|
|
29
|
+
"types": "./lib/domain/schemas/index.d.ts",
|
|
30
|
+
"import": "./lib/domain/schemas/index.mjs",
|
|
31
|
+
"require": "./lib/domain/schemas/index.js",
|
|
32
|
+
"default": "./lib/domain/schemas/index.js"
|
|
33
33
|
},
|
|
34
34
|
"./types": {
|
|
35
|
-
"types": "./lib/types/index.d.ts",
|
|
36
|
-
"import": "./lib/types/index.mjs",
|
|
37
|
-
"require": "./lib/types/index.js",
|
|
38
|
-
"default": "./lib/types/index.js"
|
|
35
|
+
"types": "./lib/domain/types/index.d.ts",
|
|
36
|
+
"import": "./lib/domain/types/index.mjs",
|
|
37
|
+
"require": "./lib/domain/types/index.js",
|
|
38
|
+
"default": "./lib/domain/types/index.js"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"files": [
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"typescript-eslint": "^8.34.1"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
|
-
"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",
|
|
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",
|
|
61
61
|
"clean": "rm -rf lib pnpm.lock.yaml node_modules",
|
|
62
62
|
"docs": "typedoc --out docs *",
|
|
63
63
|
"format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|