@prisma/orm-toolchain 8.0.0-rc.4-dev.7 → 8.0.0-rc.4-dev.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.mjs +5 -4
- package/dist/cli.mjs.map +1 -1
- package/package.json +12 -12
package/dist/cli.mjs
CHANGED
|
@@ -26,14 +26,15 @@ import { pathToFileURL } from "node:url";
|
|
|
26
26
|
import { printPsl } from "@prisma/orm-framework/psl-printer";
|
|
27
27
|
import { EOL, tmpdir } from "node:os";
|
|
28
28
|
import { format } from "@prisma/orm-framework/psl-parser/format";
|
|
29
|
+
import { suppressIdleConnectionErrors } from "@prisma/orm-framework/utils/suppress-idle-connection-errors";
|
|
29
30
|
import { spawn } from "node:child_process";
|
|
30
31
|
import { detect } from "package-manager-detector/detect";
|
|
31
32
|
import { applyEdits, modify, parse, printParseErrorCode } from "jsonc-parser";
|
|
32
33
|
import stringWidth from "string-width";
|
|
33
34
|
import { bold, createColors, cyan, cyanBright, dim, green, yellow } from "colorette";
|
|
34
35
|
import { build } from "esbuild";
|
|
35
|
-
//#region ../../../1-framework/3-tooling/cli/dist/load-config-
|
|
36
|
-
var version = "8.0.0-rc.4-dev.
|
|
36
|
+
//#region ../../../1-framework/3-tooling/cli/dist/load-config-BSDI5iBT.mjs
|
|
37
|
+
var version = "8.0.0-rc.4-dev.9";
|
|
37
38
|
const MISSING_CONFIG_ACTION = {
|
|
38
39
|
kind: "run-command",
|
|
39
40
|
label: "Create a config file",
|
|
@@ -2913,9 +2914,9 @@ function redactDatabaseUrlSecrets(text) {
|
|
|
2913
2914
|
return text.replace(/([a-zA-Z][a-zA-Z0-9+.-]*:\/\/)([^/@\s]+)@/g, "$1***@");
|
|
2914
2915
|
}
|
|
2915
2916
|
async function defaultProbePostgres(databaseUrl, baseDir, overrides) {
|
|
2916
|
-
const client = new (requirePeer("pg", baseDir, overrides)).Client({ connectionString: databaseUrl });
|
|
2917
|
-
await client.connect();
|
|
2917
|
+
const client = suppressIdleConnectionErrors(new (requirePeer("pg", baseDir, overrides)).Client({ connectionString: databaseUrl }));
|
|
2918
2918
|
try {
|
|
2919
|
+
await client.connect();
|
|
2919
2920
|
const result = await client.query("SELECT version() as version");
|
|
2920
2921
|
return { serverVersion: parsePostgresVersion(String(result?.rows?.[0]?.version ?? "")) };
|
|
2921
2922
|
} finally {
|