@prisma/engine-core
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -36,3 +36,4 @@ /// <reference types="node" /> | ||
static defaultPrismaPath: string; | ||
constructor({ prismaConfig, debug, datamodelJson, prismaYmlPath, datamodel, schemaInferrerPath, prismaPath, }: EngineConfig); | ||
constructor({ prismaConfig, debug: useDebug, // as otherwise .stop method complains | ||
datamodelJson, prismaYmlPath, datamodel, schemaInferrerPath, prismaPath, }: EngineConfig); | ||
/** | ||
@@ -39,0 +40,0 @@ * Resolve the prisma.yml |
@@ -35,3 +35,4 @@ "use strict"; | ||
class Engine { | ||
constructor({ prismaConfig, debug, datamodelJson, prismaYmlPath, datamodel, schemaInferrerPath, prismaPath, }) { | ||
constructor({ prismaConfig, debug: useDebug, // as otherwise .stop method complains | ||
datamodelJson, prismaYmlPath, datamodel, schemaInferrerPath, prismaPath, }) { | ||
/** | ||
@@ -48,2 +49,3 @@ * exiting is used to tell the .on('exit') hook, if the exit came from our script. | ||
if (this.child) { | ||
debug(`Stopping Prisma engine`); | ||
this.exiting = true; | ||
@@ -57,3 +59,3 @@ this.child.kill(); | ||
this.cwd = path.dirname(this.prismaYmlPath); | ||
this.debug = debug || false; | ||
this.debug = useDebug || false; | ||
this.datamodelJson = datamodelJson; | ||
@@ -117,2 +119,3 @@ this.datamodel = datamodel; | ||
process.once('uncaughtException', this.stop); | ||
process.on('unhandledRejection', this.stop); | ||
await this.engineReady(); | ||
@@ -119,0 +122,0 @@ const url = `http://localhost:${this.port}`; |
{ | ||
"name": "@prisma/engine-core", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
31017
487