create-prisma 0.4.1-pr.33.62.1 → 0.4.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
|
@@ -1582,12 +1582,21 @@ async function executeCreateAddonSetupContext(params) {
|
|
|
1582
1582
|
|
|
1583
1583
|
//#endregion
|
|
1584
1584
|
//#region src/telemetry/client.ts
|
|
1585
|
-
const TELEMETRY_API_KEY = "";
|
|
1585
|
+
const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
|
|
1586
1586
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
1587
1587
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
1588
1588
|
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;
|
|
1589
|
+
function isTruthyEnvValue(value) {
|
|
1590
|
+
return [
|
|
1591
|
+
"1",
|
|
1592
|
+
"true",
|
|
1593
|
+
"yes",
|
|
1594
|
+
"on"
|
|
1595
|
+
].includes(String(value ?? "").trim().toLowerCase());
|
|
1596
|
+
}
|
|
1589
1597
|
function shouldDisableTelemetry() {
|
|
1590
|
-
return true;
|
|
1598
|
+
if (isTruthyEnvValue(process.env.CI) || isTruthyEnvValue(process.env.GITHUB_ACTIONS)) return true;
|
|
1599
|
+
return process.env.CREATE_PRISMA_DISABLE_TELEMETRY !== void 0 || process.env.CREATE_PRISMA_TELEMETRY_DISABLED !== void 0 || process.env.DO_NOT_TRACK !== void 0;
|
|
1591
1600
|
}
|
|
1592
1601
|
function getTelemetryConfigDir() {
|
|
1593
1602
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -1609,7 +1618,7 @@ async function getAnonymousId() {
|
|
|
1609
1618
|
}
|
|
1610
1619
|
function getCommonProperties() {
|
|
1611
1620
|
return {
|
|
1612
|
-
"cli-version": "0.4.1
|
|
1621
|
+
"cli-version": "0.4.1",
|
|
1613
1622
|
"node-version": process.version,
|
|
1614
1623
|
platform: process.platform,
|
|
1615
1624
|
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-
|
|
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-H6Tk0JlE.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.1
|
|
7
|
+
const CLI_VERSION = "0.4.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