@apricote/nest-pg-boss
Advanced tools
Comparing version 2.0.0 to 2.1.0
@@ -59,3 +59,4 @@ "use strict"; | ||
}; | ||
HandlerScannerService = HandlerScannerService_1 = __decorate([ | ||
exports.HandlerScannerService = HandlerScannerService; | ||
exports.HandlerScannerService = HandlerScannerService = HandlerScannerService_1 = __decorate([ | ||
(0, common_1.Injectable)(), | ||
@@ -65,3 +66,2 @@ __metadata("design:paramtypes", [core_1.MetadataScanner, | ||
], HandlerScannerService); | ||
exports.HandlerScannerService = HandlerScannerService; | ||
function notEmpty(value) { | ||
@@ -68,0 +68,0 @@ if (value === null || value === undefined) { |
@@ -62,7 +62,7 @@ "use strict"; | ||
}; | ||
JobService = __decorate([ | ||
exports.JobService = JobService; | ||
exports.JobService = JobService = __decorate([ | ||
(0, common_1.Injectable)(), | ||
__metadata("design:paramtypes", [String, PGBoss]) | ||
], JobService); | ||
exports.JobService = JobService; | ||
const createJob = (name) => { | ||
@@ -69,0 +69,0 @@ const token = (0, utils_1.getJobToken)(name); |
@@ -13,6 +13,6 @@ "use strict"; | ||
}; | ||
PGBossJobModule = __decorate([ | ||
exports.PGBossJobModule = PGBossJobModule; | ||
exports.PGBossJobModule = PGBossJobModule = __decorate([ | ||
(0, common_1.Module)({}) | ||
], PGBossJobModule); | ||
exports.PGBossJobModule = PGBossJobModule; | ||
//# sourceMappingURL=pg-boss-job.module.js.map |
@@ -108,3 +108,4 @@ "use strict"; | ||
}; | ||
PGBossModule = __decorate([ | ||
exports.PGBossModule = PGBossModule; | ||
exports.PGBossModule = PGBossModule = __decorate([ | ||
(0, common_1.Global)(), | ||
@@ -117,3 +118,2 @@ (0, common_1.Module)({ | ||
], PGBossModule); | ||
exports.PGBossModule = PGBossModule; | ||
//# sourceMappingURL=pg-boss.module.js.map |
{ | ||
"name": "@apricote/nest-pg-boss", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Use pg-boss in your NestJS app", | ||
@@ -27,4 +27,4 @@ "author": "Julian Tölle <julian.toelle97@gmail.com>", | ||
"peerDependencies": { | ||
"@nestjs/common": "^9.3.3", | ||
"@nestjs/core": "^9.3.3", | ||
"@nestjs/common": "^9.3.3 || ^10.0.0", | ||
"@nestjs/core": "^9.3.3 || ^10.0.0", | ||
"pg-boss": "^8.4.1 || ^9.0.0", | ||
@@ -35,28 +35,28 @@ "reflect-metadata": "^0.1.13", | ||
"devDependencies": { | ||
"@nestjs/cli": "9.4.2", | ||
"@nestjs/common": "9.4.0", | ||
"@nestjs/core": "9.4.0", | ||
"@nestjs/platform-express": "9.4.0", | ||
"@nestjs/schematics": "9.1.0", | ||
"@nestjs/testing": "9.4.0", | ||
"@types/jest": "29.5.1", | ||
"@types/node": "18.16.5", | ||
"@nestjs/cli": "10.1.17", | ||
"@nestjs/common": "10.2.5", | ||
"@nestjs/core": "10.2.5", | ||
"@nestjs/platform-express": "10.2.5", | ||
"@nestjs/schematics": "10.0.2", | ||
"@nestjs/testing": "10.2.5", | ||
"@types/jest": "29.5.5", | ||
"@types/node": "20.6.2", | ||
"@types/supertest": "2.0.12", | ||
"@typescript-eslint/eslint-plugin": "5.59.2", | ||
"@typescript-eslint/parser": "5.59.2", | ||
"eslint": "8.40.0", | ||
"eslint-config-prettier": "8.8.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"jest": "29.5.0", | ||
"pg-boss": "9.0.0", | ||
"prettier": "2.8.8", | ||
"@typescript-eslint/eslint-plugin": "6.7.0", | ||
"@typescript-eslint/parser": "6.7.0", | ||
"eslint": "8.49.0", | ||
"eslint-config-prettier": "9.0.0", | ||
"eslint-plugin-prettier": "5.0.0", | ||
"jest": "29.7.0", | ||
"pg-boss": "9.0.3", | ||
"prettier": "3.0.3", | ||
"rxjs": "7.8.1", | ||
"source-map-support": "0.5.21", | ||
"supertest": "6.3.3", | ||
"testcontainers": "9.6.0", | ||
"ts-jest": "29.1.0", | ||
"ts-loader": "9.4.2", | ||
"@testcontainers/postgresql": "10.2.1", | ||
"ts-jest": "29.1.1", | ||
"ts-loader": "9.4.4", | ||
"ts-node": "10.9.1", | ||
"tsconfig-paths": "4.2.0", | ||
"typescript": "5.0.4" | ||
"typescript": "5.2.2" | ||
}, | ||
@@ -63,0 +63,0 @@ "jest": { |
# `@apricote/nest-pg-boss` | ||
## Description | ||
<p align="center"> | ||
Use <a href="https://github.com/timgit/pg-boss" target="_blank">pg-boss</a> in your Nest.js service! | ||
<p align="center"> | ||
<p align="center"> | ||
<a href="https://www.npmjs.com/package/@apricote/nest-pg-boss" target="_blank"><img src="https://img.shields.io/npm/v/@apricote/nest-pg-boss.svg" alt="NPM Version"/></a> | ||
<a href="https://www.npmjs.com/package/@apricote/nest-pg-boss" target="_blank"><img src="https://img.shields.io/npm/l/@apricote/nest-pg-boss.svg" alt="Package License"/></a> | ||
<a href="https://www.npmjs.com/package/@apricote/nest-pg-boss" target="_blank"><img src="https://img.shields.io/npm/dm/@apricote/nest-pg-boss.svg" alt="NPM Downloads"/></a> | ||
<a href="https://github.com/apricote/nest-pg-boss/actions?query=workflow%3A%22CI%22" target="_blank"><img src="https://img.shields.io/github/actions/workflow/status/apricote/nest-pg-boss/ci.yaml?branch=main" alt="CI Status"/></a> | ||
</p> | ||
## Installation | ||
@@ -49,3 +58,3 @@ | ||
const IFoobarJobData interface { | ||
interface IFoobarJobData { | ||
foo: string | ||
@@ -66,3 +75,3 @@ bar: boolean | ||
@Module({ | ||
imports: PGBossModule.forJobs([FoobarJob]) | ||
imports: PGBossModule.forJobs([FoobarJob]), | ||
providers: [FoobarService] | ||
@@ -69,0 +78,0 @@ }) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
138
144331