nestjs-prisma
Advanced tools
Comparing version 0.21.0 to 0.22.0-dev.0
@@ -11,3 +11,3 @@ import { ArgumentsHost, ContextType, HttpException, HttpServer } from '@nestjs/common'; | ||
constructor(applicationRef?: HttpServer, errorCodesStatusMapping?: ErrorCodesStatusMapping | null); | ||
catch(exception: Prisma.PrismaClientKnownRequestError, host: ArgumentsHost): void | HttpException | Prisma.PrismaClientKnownRequestError; | ||
catch(exception: Prisma.PrismaClientKnownRequestError, host: ArgumentsHost): void | Prisma.PrismaClientKnownRequestError | HttpException; | ||
private catchClientKnownRequestError; | ||
@@ -14,0 +14,0 @@ private exceptionShortMessage; |
@@ -1,2 +0,2 @@ | ||
import { INestApplication, INestMicroservice, OnModuleInit } from '@nestjs/common'; | ||
import { OnModuleInit } from '@nestjs/common'; | ||
import { Prisma, PrismaClient } from '@prisma/client'; | ||
@@ -8,3 +8,2 @@ import { PrismaServiceOptions } from './interfaces'; | ||
onModuleInit(): Promise<void>; | ||
enableShutdownHooks(app: INestApplication | INestMicroservice): Promise<void>; | ||
} |
@@ -32,7 +32,2 @@ "use strict"; | ||
} | ||
async enableShutdownHooks(app) { | ||
this.$on('beforeExit', async () => { | ||
await app.close(); | ||
}); | ||
} | ||
}; | ||
@@ -39,0 +34,0 @@ PrismaService = __decorate([ |
{ | ||
"name": "nestjs-prisma", | ||
"version": "0.21.0", | ||
"version": "0.22.0-dev.0", | ||
"description": "Library and schematics to add Prisma integration to a NestJS application", | ||
@@ -12,3 +12,3 @@ "scripts": { | ||
"changelog": "npx conventional-changelog-cli conventional-changelog -p angular -i ./CHANGELOG.md -s", | ||
"rocket": "npm run build && npm publish", | ||
"rocket": "npm run build && npm publish --tag dev", | ||
"format": "prettier --write \"lib/**/*.ts\" \"schematics/**/*.ts\"", | ||
@@ -36,4 +36,4 @@ "lint": "eslint \"{lib,schematics}/**/*.ts\" --fix" | ||
"@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0", | ||
"@prisma/client": "^2.0.0 || ^3.0.0 || ^4.0.0", | ||
"prisma": "^2.0.0 || ^3.0.0 || ^4.0.0" | ||
"@prisma/client": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0", | ||
"prisma": "^2.0.0 || ^3.0.0 || ^4.0.0 || ^5.0.0" | ||
}, | ||
@@ -49,3 +49,3 @@ "dependencies": { | ||
"@nestjs/platform-express": "9.4.0", | ||
"@prisma/client": "^4.16.2", | ||
"@prisma/client": "^5.0.0", | ||
"@types/jasmine": "3.8.2", | ||
@@ -60,3 +60,3 @@ "@types/node": "^16.18.25", | ||
"prettier": "2.8.8", | ||
"prisma": "^4.16.2", | ||
"prisma": "^5.0.0", | ||
"reflect-metadata": "0.1.13", | ||
@@ -63,0 +63,0 @@ "rxjs": "^7.8.1", |
@@ -1,2 +0,2 @@ | ||
import { INestApplication, Injectable, OnModuleInit } from '@nestjs/common'; | ||
import { Injectable, OnModuleInit } from '@nestjs/common'; | ||
import { PrismaClient } from '@prisma/client'; | ||
@@ -18,11 +18,2 @@ | ||
} | ||
/** | ||
* Read https://docs.nestjs.com/recipes/prisma#issues-with-enableshutdownhooks for more info. | ||
*/ | ||
async enableShutdownHooks(app: INestApplication) { | ||
this.$on('beforeExit', async () => { | ||
await app.close(); | ||
}); | ||
} | ||
} |
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
183011
1287