create-prisma 0.7.1-pr.49.151.1 → 0.7.1

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { n as createCreatePrismaCli } from "./src-f-JavxLp.mjs";
2
+ import { n as createCreatePrismaCli } from "./src-Dn0XwHrr.mjs";
3
3
  //#region src/cli.ts
4
4
  createCreatePrismaCli().run();
5
5
  //#endregion
package/dist/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import { a as CreateTemplateSchema, c as PackageManagerSchema, i as CreateCommandInputSchema, l as SchemaPresetSchema, n as createCreatePrismaCli, o as DatabaseProviderSchema, r as router, s as DatabaseUrlSchema, t as create } from "./src-f-JavxLp.mjs";
2
+ import { a as CreateTemplateSchema, c as PackageManagerSchema, i as CreateCommandInputSchema, l as SchemaPresetSchema, n as createCreatePrismaCli, o as DatabaseProviderSchema, r as router, s as DatabaseUrlSchema, t as create } from "./src-Dn0XwHrr.mjs";
3
3
  export { CreateCommandInputSchema, CreateTemplateSchema, DatabaseProviderSchema, DatabaseUrlSchema, PackageManagerSchema, SchemaPresetSchema, create, createCreatePrismaCli, router };
@@ -2027,12 +2027,21 @@ async function executeComputeDeployContext(params) {
2027
2027
  }
2028
2028
  //#endregion
2029
2029
  //#region src/telemetry/client.ts
2030
- const TELEMETRY_API_KEY = "";
2030
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
2031
2031
  const TELEMETRY_HOST = "https://us.i.posthog.com";
2032
2032
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
2033
2033
  const UUID_V4_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
2034
+ function isTruthyEnvValue(value) {
2035
+ return [
2036
+ "1",
2037
+ "true",
2038
+ "yes",
2039
+ "on"
2040
+ ].includes(String(value ?? "").trim().toLowerCase());
2041
+ }
2034
2042
  function shouldDisableTelemetry() {
2035
- return true;
2043
+ if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
2044
+ return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
2036
2045
  }
2037
2046
  function getTelemetryConfigDir() {
2038
2047
  if (process.platform === "darwin") return path.join(os$1.homedir(), "Library", "Application Support", "create-prisma");
@@ -2054,7 +2063,7 @@ async function getAnonymousId() {
2054
2063
  }
2055
2064
  function getCommonProperties() {
2056
2065
  return {
2057
- "cli-version": "0.7.1-pr.49.151.1",
2066
+ "cli-version": "0.7.1",
2058
2067
  "node-version": process.version,
2059
2068
  platform: process.platform,
2060
2069
  arch: process.arch
@@ -2496,7 +2505,7 @@ async function executeCreateContext(context) {
2496
2505
  }
2497
2506
  //#endregion
2498
2507
  //#region src/index.ts
2499
- const CLI_VERSION = "0.7.1-pr.49.151.1";
2508
+ const CLI_VERSION = "0.7.1";
2500
2509
  const router = os.router({ create: os.meta({
2501
2510
  description: "Create a new project with Prisma setup",
2502
2511
  default: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.7.1-pr.49.151.1",
3
+ "version": "0.7.1",
4
4
  "private": false,
5
5
  "description": "Create Prisma 7 projects with first-party templates and great DX.",
6
6
  "homepage": "https://github.com/prisma/create-prisma",