@alanszp/queue 17.0.4 → 17.1.1
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.
|
@@ -15,7 +15,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
exports.withContext = void 0;
|
|
16
16
|
const cuid2_1 = require("@paralleldrive/cuid2");
|
|
17
17
|
const core_1 = require("@alanszp/core");
|
|
18
|
-
const lodash_1 = require("lodash");
|
|
19
18
|
const newrelic_1 = __importDefault(require("newrelic"));
|
|
20
19
|
function withContext(queueName, workerContext, executor) {
|
|
21
20
|
return (job) => {
|
|
@@ -31,7 +30,7 @@ function withContext(queueName, workerContext, executor) {
|
|
|
31
30
|
logger: workerContext.baseLogger,
|
|
32
31
|
audit: workerContext.audit.withState(),
|
|
33
32
|
lifecycleId: lid || (0, cuid2_1.createId)(),
|
|
34
|
-
lifecycleChain: (0,
|
|
33
|
+
lifecycleChain: (0, core_1.concatLifecycleChain)(lch, `wkr:${queueName}:${(0, core_1.appEnv)()}`),
|
|
35
34
|
contextId: (0, cuid2_1.createId)(),
|
|
36
35
|
});
|
|
37
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"withContext.js","sourceRoot":"","sources":["../../src/wrappers/withContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,
|
|
1
|
+
{"version":3,"file":"withContext.js","sourceRoot":"","sources":["../../src/wrappers/withContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAgD;AAChD,wCAA6D;AAK7D,wDAAgC;AAEhC,SAAgB,WAAW,CACzB,SAAiB,EACjB,aAA4B,EAC5B,QAA+C;IAE/C,OAAO,CAAC,GAAG,EAAE,EAAE;QACb,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,IAAsC,CAAC;QAChE,OAAO,aAAa,CAAC,aAAa,CAAC,GAAG,CACpC,CAAO,OAAO,EAAE,EAAE;YAChB,kBAAQ,CAAC,mBAAmB,CAAC;gBAC3B,GAAG,EAAE,OAAO,CAAC,cAAc;gBAC3B,GAAG,EAAE,OAAO,CAAC,WAAW;gBACxB,GAAG,EAAE,OAAO,CAAC,SAAS;aACvB,CAAC,CAAC;YAEH,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC,CAAA,EACD;YACE,MAAM,EAAE,aAAa,CAAC,UAAU;YAChC,KAAK,EAAE,aAAa,CAAC,KAAK,CAAC,SAAS,EAAE;YACtC,WAAW,EAAE,GAAG,IAAI,IAAA,gBAAQ,GAAE;YAC9B,cAAc,EAAE,IAAA,2BAAoB,EAClC,GAAG,EACH,OAAO,SAAS,IAAI,IAAA,aAAM,GAAE,EAAE,CAC/B;YACD,SAAS,EAAE,IAAA,gBAAQ,GAAE;SACtB,CACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AA7BD,kCA6BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alanszp/queue",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.1.1",
|
|
4
4
|
"description": "Workers and queues",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
"yalc-publish": "yarn run yalc publish"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@alanszp/audit": "^17.
|
|
20
|
-
"@alanszp/logger": "^17.
|
|
21
|
-
"@alanszp/shared-context": "^17.
|
|
19
|
+
"@alanszp/audit": "^17.1.1",
|
|
20
|
+
"@alanszp/logger": "^17.1.1",
|
|
21
|
+
"@alanszp/shared-context": "^17.1.1",
|
|
22
22
|
"@types/newrelic": "^9.14.4",
|
|
23
23
|
"@types/node": "^20.11.17",
|
|
24
24
|
"class-validator": "^0.14.1",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"typescript": "^4.3.4"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@alanszp/core": "^17.
|
|
30
|
+
"@alanszp/core": "^17.1.1",
|
|
31
31
|
"@alanszp/validations": "^17.0.4",
|
|
32
32
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
33
33
|
"bullmq": "^5.12.9",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"lodash": "^4.17.21",
|
|
36
36
|
"newrelic": "^13.4.0"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "6e31796ce37adcafc64671694660ce63461d548c"
|
|
39
39
|
}
|