create-prisma 0.5.1-pr.43.127.1 → 0.5.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 "./create-C_V714rK.mjs";
2
+ import "./create-QmR9Scj8.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -2002,12 +2002,21 @@ async function executeComputeDeployContext(params) {
2002
2002
 
2003
2003
  //#endregion
2004
2004
  //#region src/telemetry/client.ts
2005
- const TELEMETRY_API_KEY = "";
2005
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
2006
2006
  const TELEMETRY_HOST = "https://us.i.posthog.com";
2007
2007
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
2008
2008
  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;
2009
+ function isTruthyEnvValue(value) {
2010
+ return [
2011
+ "1",
2012
+ "true",
2013
+ "yes",
2014
+ "on"
2015
+ ].includes(String(value ?? "").trim().toLowerCase());
2016
+ }
2009
2017
  function shouldDisableTelemetry() {
2010
- return true;
2018
+ if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
2019
+ return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
2011
2020
  }
2012
2021
  function getTelemetryConfigDir() {
2013
2022
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -2029,7 +2038,7 @@ async function getAnonymousId() {
2029
2038
  }
2030
2039
  function getCommonProperties() {
2031
2040
  return {
2032
- "cli-version": "0.5.1-pr.43.127.1",
2041
+ "cli-version": "0.5.1",
2033
2042
  "node-version": process.version,
2034
2043
  platform: process.platform,
2035
2044
  arch: process.arch
package/dist/index.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env node
2
- import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-C_V714rK.mjs";
2
+ import { a as DatabaseUrlSchema, i as DatabaseProviderSchema, n as CreateCommandInputSchema, o as PackageManagerSchema, r as CreateTemplateSchema, s as SchemaPresetSchema, t as runCreateCommand } from "./create-QmR9Scj8.mjs";
3
3
  import { os } from "@orpc/server";
4
4
  import { createCli } from "trpc-cli";
5
5
 
6
6
  //#region src/index.ts
7
- const CLI_VERSION = "0.5.1-pr.43.127.1";
7
+ const CLI_VERSION = "0.5.1";
8
8
  const router = os.router({ create: os.meta({
9
9
  description: "Create a new project with Prisma setup",
10
10
  default: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma",
3
- "version": "0.5.1-pr.43.127.1",
3
+ "version": "0.5.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",