create-prisma 0.4.2-pr.36.76.1 → 0.4.2

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-DuV1nh0P.mjs";
2
+ import "./create-Cy_IS-sg.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -1691,12 +1691,21 @@ async function executeCreateAddonSetupContext(params) {
1691
1691
 
1692
1692
  //#endregion
1693
1693
  //#region src/telemetry/client.ts
1694
- const TELEMETRY_API_KEY = "";
1694
+ const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
1695
1695
  const TELEMETRY_HOST = "https://us.i.posthog.com";
1696
1696
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
1697
1697
  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;
1698
+ function isTruthyEnvValue(value) {
1699
+ return [
1700
+ "1",
1701
+ "true",
1702
+ "yes",
1703
+ "on"
1704
+ ].includes(String(value ?? "").trim().toLowerCase());
1705
+ }
1698
1706
  function shouldDisableTelemetry() {
1699
- return true;
1707
+ if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
1708
+ return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
1700
1709
  }
1701
1710
  function getTelemetryConfigDir() {
1702
1711
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -1718,7 +1727,7 @@ async function getAnonymousId() {
1718
1727
  }
1719
1728
  function getCommonProperties() {
1720
1729
  return {
1721
- "cli-version": "0.4.2-pr.36.76.1",
1730
+ "cli-version": "0.4.2",
1722
1731
  "node-version": process.version,
1723
1732
  platform: process.platform,
1724
1733
  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-DuV1nh0P.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-Cy_IS-sg.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.4.2-pr.36.76.1";
7
+ const CLI_VERSION = "0.4.2";
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.4.2-pr.36.76.1",
3
+ "version": "0.4.2",
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",