create-prisma 0.3.1 → 0.3.2-pr.29.44.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-C43eBbSj.mjs";
2
+ import "./create-BReINmTq.mjs";
3
3
  import { createCreatePrismaCli } from "./index.mjs";
4
4
 
5
5
  //#region src/cli.ts
@@ -1500,21 +1500,12 @@ async function executeCreateAddonSetupContext(params) {
1500
1500
 
1501
1501
  //#endregion
1502
1502
  //#region src/telemetry/client.ts
1503
- const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
1503
+ const TELEMETRY_API_KEY = "";
1504
1504
  const TELEMETRY_HOST = "https://us.i.posthog.com";
1505
1505
  const TELEMETRY_CONFIG_FILE = "telemetry.json";
1506
1506
  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;
1507
- function isTruthyEnvValue(value) {
1508
- return [
1509
- "1",
1510
- "true",
1511
- "yes",
1512
- "on"
1513
- ].includes(String(value ?? "").trim().toLowerCase());
1514
- }
1515
1507
  function shouldDisableTelemetry() {
1516
- if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
1517
- return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
1508
+ return true;
1518
1509
  }
1519
1510
  function getTelemetryConfigDir() {
1520
1511
  if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
@@ -1536,7 +1527,7 @@ async function getAnonymousId() {
1536
1527
  }
1537
1528
  function getCommonProperties() {
1538
1529
  return {
1539
- "cli-version": "0.3.1",
1530
+ "cli-version": "0.3.2-pr.29.44.1",
1540
1531
  "node-version": process.version,
1541
1532
  platform: process.platform,
1542
1533
  arch: process.arch
@@ -1549,22 +1540,22 @@ async function trackCliTelemetry(event, properties) {
1549
1540
  if (shouldDisableTelemetry()) return;
1550
1541
  let client;
1551
1542
  try {
1543
+ const distinctId = await getAnonymousId();
1544
+ const sanitizedProperties = sanitizeProperties({
1545
+ ...getCommonProperties(),
1546
+ ...properties,
1547
+ $process_person_profile: false
1548
+ });
1552
1549
  client = new PostHog(TELEMETRY_API_KEY, {
1553
1550
  host: TELEMETRY_HOST,
1554
- captureMode: "json",
1555
1551
  disableGeoip: true,
1556
1552
  flushAt: 1,
1557
- flushInterval: 0,
1558
- persistence: "memory"
1553
+ flushInterval: 0
1559
1554
  });
1560
1555
  await client.captureImmediate({
1561
- distinctId: await getAnonymousId(),
1556
+ distinctId,
1562
1557
  event,
1563
- properties: sanitizeProperties({
1564
- ...getCommonProperties(),
1565
- ...properties,
1566
- $process_person_profile: false
1567
- }),
1558
+ properties: sanitizedProperties,
1568
1559
  disableGeoip: true
1569
1560
  });
1570
1561
  } catch {} finally {
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-C43eBbSj.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-BReINmTq.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.3.1";
7
+ const CLI_VERSION = "0.3.2-pr.29.44.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.3.1",
3
+ "version": "0.3.2-pr.29.44.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",
@@ -52,7 +52,7 @@
52
52
  "execa": "^9.6.1",
53
53
  "fs-extra": "^11.3.3",
54
54
  "handlebars": "^4.7.8",
55
- "posthog-node": "4.18.0",
55
+ "posthog-node": "^5.28.2",
56
56
  "trpc-cli": "^0.12.4",
57
57
  "zod": "^4.3.6"
58
58
  },