@servicelabsco/nestjs-utility-services 1.2.10 → 1.2.12
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/dist/app.controller.js +5 -1
- package/dist/app.controller.js.map +1 -1
- package/dist/cli.js +3 -1
- package/dist/cli.js.map +1 -1
- package/dist/console.js +1 -0
- package/dist/console.js.map +1 -1
- package/dist/platformUtility/commands/maintenance.command.d.ts +1 -7
- package/dist/platformUtility/commands/maintenance.command.js +2 -32
- package/dist/platformUtility/commands/maintenance.command.js.map +1 -1
- package/dist/platformUtility/consumers/event.consumer.d.ts +2 -5
- package/dist/platformUtility/consumers/event.consumer.js +7 -33
- package/dist/platformUtility/consumers/event.consumer.js.map +1 -1
- package/dist/platformUtility/es6.classes.d.ts +1 -1
- package/dist/platformUtility/libraries/common.sqs.polling.d.ts +0 -1
- package/dist/platformUtility/libraries/common.sqs.polling.js +1 -9
- package/dist/platformUtility/libraries/common.sqs.polling.js.map +1 -1
- package/dist/platformUtility/services/maintenance.service.d.ts +14 -9
- package/dist/platformUtility/services/maintenance.service.js +58 -32
- package/dist/platformUtility/services/maintenance.service.js.map +1 -1
- package/dist/platformUtility/services/queue.service.d.ts +0 -1
- package/dist/platformUtility/services/queue.service.js +6 -1
- package/dist/platformUtility/services/queue.service.js.map +1 -1
- package/dist/platformUtility/services/shutdown.service.d.ts +3 -3
- package/dist/platformUtility/services/shutdown.service.js +5 -10
- package/dist/platformUtility/services/shutdown.service.js.map +1 -1
- package/dist/system/commands/event.queue.command.d.ts +1 -3
- package/dist/system/commands/event.queue.command.js +2 -10
- package/dist/system/commands/event.queue.command.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/worker.service.d.ts +3 -5
- package/dist/worker.service.js +5 -12
- package/dist/worker.service.js.map +1 -1
- package/package.json +2 -1
package/dist/worker.service.d.ts
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
import { OnModuleInit } from '@nestjs/common';
|
2
|
-
import {
|
3
|
-
import { QueueService } from './platformUtility/services/queue.service';
|
2
|
+
import { MaintenanceService } from './platformUtility/services/maintenance.service';
|
4
3
|
export declare class WorkerService implements OnModuleInit {
|
5
|
-
private readonly
|
6
|
-
|
7
|
-
constructor(queueService: QueueService, configService: ConfigService);
|
4
|
+
private readonly maintenanceService;
|
5
|
+
constructor(maintenanceService: MaintenanceService);
|
8
6
|
onModuleInit(): Promise<void>;
|
9
7
|
}
|
package/dist/worker.service.js
CHANGED
@@ -11,25 +11,18 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
12
|
exports.WorkerService = void 0;
|
13
13
|
const common_1 = require("@nestjs/common");
|
14
|
-
const
|
15
|
-
const queue_service_1 = require("./platformUtility/services/queue.service");
|
14
|
+
const maintenance_service_1 = require("./platformUtility/services/maintenance.service");
|
16
15
|
let WorkerService = class WorkerService {
|
17
|
-
constructor(
|
18
|
-
this.
|
19
|
-
this.configService = configService;
|
16
|
+
constructor(maintenanceService) {
|
17
|
+
this.maintenanceService = maintenanceService;
|
20
18
|
}
|
21
19
|
async onModuleInit() {
|
22
|
-
|
23
|
-
if (worker !== 'true') {
|
24
|
-
global.console.log(`queue services are disabled for this instance`);
|
25
|
-
await this.queueService.pause();
|
26
|
-
}
|
20
|
+
await this.maintenanceService.disableQueueIfRequired();
|
27
21
|
}
|
28
22
|
};
|
29
23
|
exports.WorkerService = WorkerService;
|
30
24
|
exports.WorkerService = WorkerService = __decorate([
|
31
25
|
(0, common_1.Injectable)(),
|
32
|
-
__metadata("design:paramtypes", [
|
33
|
-
config_1.ConfigService])
|
26
|
+
__metadata("design:paramtypes", [maintenance_service_1.MaintenanceService])
|
34
27
|
], WorkerService);
|
35
28
|
//# sourceMappingURL=worker.service.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"worker.service.js","sourceRoot":"","sources":["../src/worker.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0D;AAC1D,
|
1
|
+
{"version":3,"file":"worker.service.js","sourceRoot":"","sources":["../src/worker.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA0D;AAC1D,wFAAoF;AAG7E,IAAM,aAAa,GAAnB,MAAM,aAAa;IACtB,YAA6B,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAAG,CAAC;IAEvE,KAAK,CAAC,YAAY;QACd,MAAM,IAAI,CAAC,kBAAkB,CAAC,sBAAsB,EAAE,CAAC;IAC3D,CAAC;CACJ,CAAA;AANY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAEwC,wCAAkB;GAD1D,aAAa,CAMzB"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@servicelabsco/nestjs-utility-services",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.12",
|
4
4
|
"description": "NestJS generic packages to support development",
|
5
5
|
"author": "Hemant Kumar Sah <hemantanshu@gmail.com>",
|
6
6
|
"license": "MIT",
|
@@ -27,6 +27,7 @@
|
|
27
27
|
"typeorm": "typeorm-ts-node-commonjs --config src/config/orm.config.ts",
|
28
28
|
"m:g": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:generate -d src/config/orm.config.ts",
|
29
29
|
"m:r": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:run -d src/config/orm.config.ts",
|
30
|
+
"m:rd": "./node_modules/.bin/typeorm migration:run -d dist/config/orm.config.js",
|
30
31
|
"m:c": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:create -d src/config/orm.config.ts",
|
31
32
|
"m:rev": "./node_modules/.bin/ts-node ./node_modules/.bin/typeorm migration:revert -d src/config/orm.config.ts",
|
32
33
|
"command": "npx nestjs-command",
|