@prisma/cli-init 0.0.0-dev.202505210821 → 0.0.0-dev.202505211027

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.
@@ -14,7 +14,7 @@ import {
14
14
  platformParameters,
15
15
  poll,
16
16
  printPpgInitOutput
17
- } from "./chunk-AWSWS36E.js";
17
+ } from "./chunk-77KDHXTE.js";
18
18
  export {
19
19
  __exports as Accelerate,
20
20
  __exports2 as Auth,
@@ -345,7 +345,7 @@ import internals5 from "@prisma/internals";
345
345
  import * as Checkpoint from "checkpoint-client";
346
346
 
347
347
  // package.json
348
- var version = "0.0.0-dev.202505210821";
348
+ var version = "0.0.0-dev.202505211027";
349
349
 
350
350
  // src/platform/_lib/userAgent.ts
351
351
  var debug = Debug("prisma:cli:platform:_lib:userAgent");
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  printPpgInitOutput,
5
5
  requestOrThrow,
6
6
  successMessage
7
- } from "./chunk-AWSWS36E.js";
7
+ } from "./chunk-77KDHXTE.js";
8
8
 
9
9
  // src/Init.ts
10
10
  import { confirm, input, select } from "@inquirer/prompts";
@@ -89,6 +89,7 @@ function printError(text) {
89
89
  }
90
90
 
91
91
  // src/Init.ts
92
+ var PRISMA_DEV_DEFAULT_URL = PRISMA_DEV_URL_INJECTED_AT_BUILD_TIME;
92
93
  var defaultSchema = (props) => {
93
94
  const {
94
95
  datasourceProvider = "postgresql",
@@ -147,14 +148,18 @@ model User {
147
148
  }
148
149
  return schema;
149
150
  };
150
- var defaultEnv = (url = "prisma+postgres://localhost:51213/?api_key=eyJkYXRhYmFzZVVybCI6InBvc3RncmVzOi8vcG9zdGdyZXM6cG9zdGdyZXNAbG9jYWxob3N0OjUxMjE0L3Bvc3RncmVzP2Nvbm5lY3Rpb25fbGltaXQ9MSZjb25uZWN0X3RpbWVvdXQ9MCZtYXhfaWRsZV9jb25uZWN0aW9uX2xpZmV0aW1lPTAmcG9vbF90aW1lb3V0PTAmc29ja2V0X3RpbWVvdXQ9MCZzc2xtb2RlPWRpc2FibGUiLCJzaGFkb3dEYXRhYmFzZVVybCI6InBvc3RncmVzOi8vcG9zdGdyZXM6cG9zdGdyZXNAbG9jYWxob3N0OjUxMjE1L3Bvc3RncmVzP2Nvbm5lY3Rpb25fbGltaXQ9MSZjb25uZWN0X3RpbWVvdXQ9MCZtYXhfaWRsZV9jb25uZWN0aW9uX2xpZmV0aW1lPTAmcG9vbF90aW1lb3V0PTAmc29ja2V0X3RpbWVvdXQ9MCZzc2xtb2RlPWRpc2FibGUifQ", comments = true) => {
151
+ var defaultEnv = (url = PRISMA_DEV_DEFAULT_URL, comments = true) => {
151
152
  let env = comments ? `# Environment variables declared in this file are automatically made available to Prisma.
152
153
  # See the documentation for more detail: https://pris.ly/d/prisma-schema#accessing-environment-variables-from-the-schema
153
154
 
154
155
  # Prisma supports the native connection string format for PostgreSQL, MySQL, SQLite, SQL Server, MongoDB and CockroachDB.
155
156
  # See the documentation for all the connection string options: https://pris.ly/d/connection-strings
156
157
 
157
- ` : "";
158
+ ${url === PRISMA_DEV_DEFAULT_URL ? `# The following \`prisma+postgres\` URL is similar to the URL produced by running a local Prisma Postgres
159
+ # server with the \`prisma dev\` CLI command, when not choosing any non-default ports or settings. The API key, unlike the
160
+ # one found in a remote Prisma Postgres URL, does not contain any sensitive information.
161
+
162
+ ` : ""}` : "";
158
163
  env += `DATABASE_URL="${url}"`;
159
164
  return env;
160
165
  };
@@ -325,7 +330,7 @@ var Init = class _Init {
325
330
  let generatedSchema;
326
331
  let generatedName;
327
332
  if (isPpgCommand) {
328
- const PlatformCommands = await import("./_-HMHML7K2.js");
333
+ const PlatformCommands = await import("./_-YAS2CKZY.js");
329
334
  const credentials = await credentialsFile.load();
330
335
  if (internals.isError(credentials))
331
336
  throw credentials;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prisma/cli-init",
3
- "version": "0.0.0-dev.202505210821",
3
+ "version": "0.0.0-dev.202505211027",
4
4
  "description": "Init CLI for Prisma",
5
5
  "type": "module",
6
6
  "sideEffects": false,