create-prisma 0.3.0 → 0.3.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
|
@@ -1503,8 +1503,6 @@ async function executeCreateAddonSetupContext(params) {
|
|
|
1503
1503
|
const TELEMETRY_API_KEY = "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
|
|
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
1507
|
function isTruthyEnvValue(value) {
|
|
1510
1508
|
return [
|
|
@@ -1538,7 +1536,7 @@ async function getAnonymousId() {
|
|
|
1538
1536
|
}
|
|
1539
1537
|
function getCommonProperties() {
|
|
1540
1538
|
return {
|
|
1541
|
-
"cli-version": "0.3.
|
|
1539
|
+
"cli-version": "0.3.1",
|
|
1542
1540
|
"node-version": process.version,
|
|
1543
1541
|
platform: process.platform,
|
|
1544
1542
|
arch: process.arch
|
|
@@ -1557,8 +1555,7 @@ async function trackCliTelemetry(event, properties) {
|
|
|
1557
1555
|
disableGeoip: true,
|
|
1558
1556
|
flushAt: 1,
|
|
1559
1557
|
flushInterval: 0,
|
|
1560
|
-
persistence: "memory"
|
|
1561
|
-
requestTimeout: TELEMETRY_REQUEST_TIMEOUT_MS
|
|
1558
|
+
persistence: "memory"
|
|
1562
1559
|
});
|
|
1563
1560
|
await client.captureImmediate({
|
|
1564
1561
|
distinctId: await getAnonymousId(),
|
|
@@ -1571,7 +1568,7 @@ async function trackCliTelemetry(event, properties) {
|
|
|
1571
1568
|
disableGeoip: true
|
|
1572
1569
|
});
|
|
1573
1570
|
} catch {} finally {
|
|
1574
|
-
if (client) await client.shutdown(
|
|
1571
|
+
if (client) await client.shutdown().catch(() => {});
|
|
1575
1572
|
}
|
|
1576
1573
|
}
|
|
1577
1574
|
|
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-C43eBbSj.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";
|
|
8
8
|
const router = os.router({ create: os.meta({
|
|
9
9
|
description: "Create a new project with Prisma setup",
|
|
10
10
|
default: true,
|