create-db 1.0.8-pr51-DC-4933-env-flag-17293580791.0 → 1.0.8-pr51-DC-4933-env-flag-17293927997.0
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/index.js +3 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -513,7 +513,7 @@ async function createDatabase(name, region, userAgent, silent = false) {
|
|
|
513
513
|
? `postgresql://${directUser}:${directPass}@${directHost}${directPort}/${directDbName}?sslmode=require`
|
|
514
514
|
: null;
|
|
515
515
|
|
|
516
|
-
const claimUrl = `${CLAIM_DB_WORKER_URL}?projectID=${projectId}&utm_source=${userAgent}&utm_medium=cli`;
|
|
516
|
+
const claimUrl = `${CLAIM_DB_WORKER_URL}?projectID=${projectId}&utm_source=${userAgent || CLI_NAME}&utm_medium=cli`;
|
|
517
517
|
const expiryDate = new Date(Date.now() + 24 * 60 * 60 * 1000);
|
|
518
518
|
|
|
519
519
|
if (silent && !result.error) {
|
|
@@ -717,10 +717,8 @@ async function main() {
|
|
|
717
717
|
console.error(result.message || "Unknown error");
|
|
718
718
|
process.exit(1);
|
|
719
719
|
}
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
"\n\n# Claim your database at: " + result.claimUrl
|
|
723
|
-
);
|
|
720
|
+
console.log(`DATABASE_URL="${result.directConnectionString}"`);
|
|
721
|
+
console.error("\n# Claim your database at: " + result.claimUrl);
|
|
724
722
|
process.exit(0);
|
|
725
723
|
} catch (e) {
|
|
726
724
|
console.error(e?.message || String(e));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-db",
|
|
3
|
-
"version": "1.0.8-pr51-DC-4933-env-flag-
|
|
3
|
+
"version": "1.0.8-pr51-DC-4933-env-flag-17293927997.0",
|
|
4
4
|
"description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "",
|