@prisma/engine-core
Advanced tools
Comparing version 0.0.33 to 0.0.34
@@ -145,2 +145,4 @@ "use strict"; | ||
const server = net.createServer(s => s.end('')); | ||
server.unref(); | ||
server.on('error', reject); | ||
server.listen(0, () => { | ||
@@ -179,4 +181,4 @@ const address = server.address(); | ||
try { | ||
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`); | ||
await new Promise(r => setTimeout(r, 50)); // TODO: Try out lower intervals here, but we also don't want to spam it too much. | ||
if (response.ok) { | ||
@@ -189,3 +191,3 @@ debug(`Ready after try number ${tries}`); | ||
debug(e.message); | ||
if (tries >= 50) { | ||
if (tries >= 100) { | ||
throw e; | ||
@@ -192,0 +194,0 @@ } |
{ | ||
"name": "@prisma/engine-core", | ||
"version": "0.0.33", | ||
"version": "0.0.34", | ||
"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
39115
651