drizzle-kit 1.0.0-beta.2-a1a6b39 → 1.0.0-beta.2-09cddcb
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/bin.cjs +9 -12
- package/package.json +1 -1
package/bin.cjs
CHANGED
|
@@ -22955,23 +22955,22 @@ var init_common3 = __esm({
|
|
|
22955
22955
|
out: stringType().optional()
|
|
22956
22956
|
});
|
|
22957
22957
|
drivers = ["d1-http", "expo", "aws-data-api", "pglite", "durable-sqlite", "sqlite-cloud"];
|
|
22958
|
-
wrapParam = (name, param, optional = false, type
|
|
22958
|
+
wrapParam = (name, param, optional = false, type) => {
|
|
22959
22959
|
const check2 = `[${source_default.green("\u2713")}]`;
|
|
22960
22960
|
const cross = `[${source_default.red("x")}]`;
|
|
22961
|
-
const prefix2 = isValid2 === true ? check2 : cross;
|
|
22962
|
-
if (optional) {
|
|
22963
|
-
return source_default.gray(` ${prefix2} ${name}?: `);
|
|
22964
|
-
}
|
|
22965
22961
|
if (typeof param === "string") {
|
|
22966
22962
|
if (param.length === 0) {
|
|
22967
22963
|
return ` ${cross} ${name}: ''`;
|
|
22968
22964
|
}
|
|
22969
22965
|
if (type === "secret") {
|
|
22970
|
-
return ` ${
|
|
22966
|
+
return ` ${check2} ${name}: '*****'`;
|
|
22971
22967
|
} else if (type === "url") {
|
|
22972
|
-
return ` ${
|
|
22968
|
+
return ` ${check2} ${name}: '${param.replace(/(?<=:\/\/[^:\n]*:)([^@]*)/, "****")}'`;
|
|
22973
22969
|
}
|
|
22974
|
-
return ` ${
|
|
22970
|
+
return ` ${check2} ${name}: '${param}'`;
|
|
22971
|
+
}
|
|
22972
|
+
if (optional) {
|
|
22973
|
+
return source_default.gray(` ${name}?: `);
|
|
22975
22974
|
}
|
|
22976
22975
|
return ` ${cross} ${name}: ${source_default.gray("undefined")}`;
|
|
22977
22976
|
};
|
|
@@ -179421,15 +179420,13 @@ var printConfigConnectionIssues6 = (options) => {
|
|
|
179421
179420
|
if ("host" in options || "database" in options) {
|
|
179422
179421
|
let text = `Please provide required params for Postgres driver:
|
|
179423
179422
|
`;
|
|
179424
|
-
const portHint = typeof options.port === "number" ? "" : ` (port should be a number)`;
|
|
179425
|
-
const sslHint = typeof options.ssl === "boolean" || typeof options.ssl === "string" && ["require", "allow", "prefer", "verify-full"].includes(options.ssl) || typeof options.ssl === "object" && options.ssl !== null ? "" : ` (ssl should be of type boolean | "require" | "allow" | "prefer" | "verify-full" | options from node:tls)`;
|
|
179426
179423
|
console.log(error2(text));
|
|
179427
179424
|
console.log(wrapParam("host", options.host));
|
|
179428
|
-
console.log(wrapParam("port", options.port, true
|
|
179425
|
+
console.log(wrapParam("port", options.port, true));
|
|
179429
179426
|
console.log(wrapParam("user", options.user, true));
|
|
179430
179427
|
console.log(wrapParam("password", options.password, true, "secret"));
|
|
179431
179428
|
console.log(wrapParam("database", options.database));
|
|
179432
|
-
console.log(wrapParam("ssl", options.ssl, true
|
|
179429
|
+
console.log(wrapParam("ssl", options.ssl, true));
|
|
179433
179430
|
process.exit(1);
|
|
179434
179431
|
}
|
|
179435
179432
|
console.log(
|