@tsed/bullmq 8.0.0-alpha.2 → 8.0.0-alpha.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/cjs/utils/mapQueueOptions.js +0 -1
- package/lib/cjs/utils/mapQueueOptions.js.map +1 -1
- package/lib/esm/utils/mapQueueOptions.js +0 -1
- package/lib/esm/utils/mapQueueOptions.js.map +1 -1
- package/lib/types/config/config.d.ts +1 -5
- package/lib/types-esm/config/config.d.ts +1 -5
- package/package.json +7 -7
|
@@ -5,7 +5,6 @@ const core_1 = require("@tsed/core");
|
|
|
5
5
|
function mapQueueOptions(queue, bullMQConfig) {
|
|
6
6
|
return (0, core_1.deepMerge)({
|
|
7
7
|
connection: bullMQConfig.connection,
|
|
8
|
-
defaultJobOptions: bullMQConfig.defaultJobOptions,
|
|
9
8
|
...bullMQConfig.defaultQueueOptions
|
|
10
9
|
}, bullMQConfig.queueOptions?.[queue]);
|
|
11
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapQueueOptions.js","sourceRoot":"","sources":["../../../src/utils/mapQueueOptions.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAIrC,SAAgB,eAAe,CAAC,KAAa,EAAE,YAA0B;IACvE,OAAO,IAAA,gBAAS,EACd;QACE,UAAU,EAAE,YAAY,CAAC,UAAU;QACnC,
|
|
1
|
+
{"version":3,"file":"mapQueueOptions.js","sourceRoot":"","sources":["../../../src/utils/mapQueueOptions.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AAIrC,SAAgB,eAAe,CAAC,KAAa,EAAE,YAA0B;IACvE,OAAO,IAAA,gBAAS,EACd;QACE,UAAU,EAAE,YAAY,CAAC,UAAU;QACnC,GAAG,YAAY,CAAC,mBAAmB;KACpC,EACD,YAAY,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAClC,CAAC;AACL,CAAC;AARD,0CAQC"}
|
|
@@ -2,7 +2,6 @@ import { deepMerge } from "@tsed/core";
|
|
|
2
2
|
export function mapQueueOptions(queue, bullMQConfig) {
|
|
3
3
|
return deepMerge({
|
|
4
4
|
connection: bullMQConfig.connection,
|
|
5
|
-
defaultJobOptions: bullMQConfig.defaultJobOptions,
|
|
6
5
|
...bullMQConfig.defaultQueueOptions
|
|
7
6
|
}, bullMQConfig.queueOptions?.[queue]);
|
|
8
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapQueueOptions.js","sourceRoot":"","sources":["../../../src/utils/mapQueueOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAIrC,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,YAA0B;IACvE,OAAO,SAAS,CACd;QACE,UAAU,EAAE,YAAY,CAAC,UAAU;QACnC,
|
|
1
|
+
{"version":3,"file":"mapQueueOptions.js","sourceRoot":"","sources":["../../../src/utils/mapQueueOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,YAAY,CAAC;AAIrC,MAAM,UAAU,eAAe,CAAC,KAAa,EAAE,YAA0B;IACvE,OAAO,SAAS,CACd;QACE,UAAU,EAAE,YAAY,CAAC,UAAU;QACnC,GAAG,YAAY,CAAC,mBAAmB;KACpC,EACD,YAAY,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,CAClC,CAAC;AACL,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectionOptions,
|
|
1
|
+
import type { ConnectionOptions, QueueOptions, WorkerOptions } from "bullmq";
|
|
2
2
|
export type BullMQConfig = {
|
|
3
3
|
/**
|
|
4
4
|
* Specify queue name's to create
|
|
@@ -8,10 +8,6 @@ export type BullMQConfig = {
|
|
|
8
8
|
* Default connection to use for queue's and worker's
|
|
9
9
|
*/
|
|
10
10
|
connection: ConnectionOptions;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use defaultQueueOptions instead. Will be removed in the next major release
|
|
13
|
-
*/
|
|
14
|
-
defaultJobOptions?: DefaultJobOptions;
|
|
15
11
|
/**
|
|
16
12
|
* Default queue options which are applied to every queue
|
|
17
13
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ConnectionOptions,
|
|
1
|
+
import type { ConnectionOptions, QueueOptions, WorkerOptions } from "bullmq";
|
|
2
2
|
export type BullMQConfig = {
|
|
3
3
|
/**
|
|
4
4
|
* Specify queue name's to create
|
|
@@ -8,10 +8,6 @@ export type BullMQConfig = {
|
|
|
8
8
|
* Default connection to use for queue's and worker's
|
|
9
9
|
*/
|
|
10
10
|
connection: ConnectionOptions;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use defaultQueueOptions instead. Will be removed in the next major release
|
|
13
|
-
*/
|
|
14
|
-
defaultJobOptions?: DefaultJobOptions;
|
|
15
11
|
/**
|
|
16
12
|
* Default queue options which are applied to every queue
|
|
17
13
|
*
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@tsed/bullmq",
|
|
3
3
|
"description": "BullMQ integration for Ts.ED",
|
|
4
4
|
"type": "commonjs",
|
|
5
|
-
"version": "8.0.0-alpha.
|
|
5
|
+
"version": "8.0.0-alpha.4",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Ts.ED",
|
|
8
8
|
"BullMQ"
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"tslib": "2.6.1"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@tsed/barrels": "8.0.0-alpha.
|
|
34
|
-
"@tsed/common": "8.0.0-alpha.
|
|
35
|
-
"@tsed/core": "8.0.0-alpha.
|
|
36
|
-
"@tsed/di": "8.0.0-alpha.
|
|
37
|
-
"@tsed/schema": "8.0.0-alpha.
|
|
38
|
-
"@tsed/typescript": "8.0.0-alpha.
|
|
33
|
+
"@tsed/barrels": "8.0.0-alpha.4",
|
|
34
|
+
"@tsed/common": "8.0.0-alpha.4",
|
|
35
|
+
"@tsed/core": "8.0.0-alpha.4",
|
|
36
|
+
"@tsed/di": "8.0.0-alpha.4",
|
|
37
|
+
"@tsed/schema": "8.0.0-alpha.4",
|
|
38
|
+
"@tsed/typescript": "8.0.0-alpha.4",
|
|
39
39
|
"bullmq": "^4.12.3 || ^5.1.1",
|
|
40
40
|
"eslint": "^8.57.0",
|
|
41
41
|
"ts-mockito": "^2.6.1",
|