create-prisma 0.3.0 → 0.3.1-pr.27.40.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
|
@@ -1500,23 +1500,12 @@ async function executeCreateAddonSetupContext(params) {
|
|
|
1500
1500
|
|
|
1501
1501
|
//#endregion
|
|
1502
1502
|
//#region src/telemetry/client.ts
|
|
1503
|
-
const TELEMETRY_API_KEY = "
|
|
1503
|
+
const TELEMETRY_API_KEY = "";
|
|
1504
1504
|
const TELEMETRY_HOST = "https://us.i.posthog.com";
|
|
1505
1505
|
const TELEMETRY_CONFIG_FILE = "telemetry.json";
|
|
1506
|
-
const TELEMETRY_REQUEST_TIMEOUT_MS = 800;
|
|
1507
|
-
const TELEMETRY_SHUTDOWN_TIMEOUT_MS = 800;
|
|
1508
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;
|
|
1509
|
-
function isTruthyEnvValue(value) {
|
|
1510
|
-
return [
|
|
1511
|
-
"1",
|
|
1512
|
-
"true",
|
|
1513
|
-
"yes",
|
|
1514
|
-
"on"
|
|
1515
|
-
].includes(String(value ?? "").trim().toLowerCase());
|
|
1516
|
-
}
|
|
1517
1507
|
function shouldDisableTelemetry() {
|
|
1518
|
-
|
|
1519
|
-
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;
|
|
1520
1509
|
}
|
|
1521
1510
|
function getTelemetryConfigDir() {
|
|
1522
1511
|
if (process.platform === "darwin") return path.join(os.homedir(), "Library", "Application Support", "create-prisma");
|
|
@@ -1538,7 +1527,7 @@ async function getAnonymousId() {
|
|
|
1538
1527
|
}
|
|
1539
1528
|
function getCommonProperties() {
|
|
1540
1529
|
return {
|
|
1541
|
-
"cli-version": "0.3.
|
|
1530
|
+
"cli-version": "0.3.1-pr.27.40.1",
|
|
1542
1531
|
"node-version": process.version,
|
|
1543
1532
|
platform: process.platform,
|
|
1544
1533
|
arch: process.arch
|
|
@@ -1557,8 +1546,7 @@ async function trackCliTelemetry(event, properties) {
|
|
|
1557
1546
|
disableGeoip: true,
|
|
1558
1547
|
flushAt: 1,
|
|
1559
1548
|
flushInterval: 0,
|
|
1560
|
-
persistence: "memory"
|
|
1561
|
-
requestTimeout: TELEMETRY_REQUEST_TIMEOUT_MS
|
|
1549
|
+
persistence: "memory"
|
|
1562
1550
|
});
|
|
1563
1551
|
await client.captureImmediate({
|
|
1564
1552
|
distinctId: await getAnonymousId(),
|
|
@@ -1571,7 +1559,7 @@ async function trackCliTelemetry(event, properties) {
|
|
|
1571
1559
|
disableGeoip: true
|
|
1572
1560
|
});
|
|
1573
1561
|
} catch {} finally {
|
|
1574
|
-
if (client) await client.shutdown(
|
|
1562
|
+
if (client) await client.shutdown().catch(() => {});
|
|
1575
1563
|
}
|
|
1576
1564
|
}
|
|
1577
1565
|
|
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-DgGeByT1.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.
|
|
7
|
+
const CLI_VERSION = "0.3.1-pr.27.40.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