@prisma/engine-core
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -35,3 +35,2 @@ /// <reference types="node" /> | ||
datamodel: string; | ||
schemaInferrerPath: string; | ||
prismaPath: string; | ||
@@ -41,3 +40,2 @@ url: string; | ||
errorLogs: string; | ||
static defaultSchemaInferrerPath: string; | ||
static defaultPrismaPath: string; | ||
@@ -44,0 +42,0 @@ constructor({ prismaConfig, datamodelJson, prismaYmlPath, datamodel, schemaInferrerPath, prismaPath, ...args }: EngineConfig); |
@@ -70,3 +70,2 @@ "use strict"; | ||
this.datamodel = datamodel; | ||
this.schemaInferrerPath = schemaInferrerPath || NodeEngine.defaultSchemaInferrerPath; | ||
this.prismaPath = prismaPath || NodeEngine.defaultPrismaPath; | ||
@@ -182,3 +181,5 @@ if (this.debug) { | ||
await new Promise(r => setTimeout(r, 50)); // TODO: Try out lower intervals here, but we also don't want to spam it too much. | ||
const response = await cross_fetch_1.default(`http://localhost:${this.port}/datamodel`); | ||
const response = await cross_fetch_1.default(`http://localhost:${this.port}/dmmf`, { | ||
timeout: 1000, | ||
}); | ||
if (response.ok) { | ||
@@ -261,5 +262,4 @@ debug(`Ready after try number ${tries}`); | ||
} | ||
NodeEngine.defaultSchemaInferrerPath = path.join(__dirname, '../schema-inferrer-bin'); | ||
NodeEngine.defaultPrismaPath = path.join(__dirname, '../prisma'); | ||
exports.NodeEngine = NodeEngine; | ||
//# sourceMappingURL=NodeEngine.js.map |
{ | ||
"name": "@prisma/engine-core", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"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
38812
649