create-prisma 0.3.1 → 0.3.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
|
@@ -1536,7 +1536,7 @@ async function getAnonymousId() {
|
|
|
1536
1536
|
}
|
|
1537
1537
|
function getCommonProperties() {
|
|
1538
1538
|
return {
|
|
1539
|
-
"cli-version": "0.3.
|
|
1539
|
+
"cli-version": "0.3.2",
|
|
1540
1540
|
"node-version": process.version,
|
|
1541
1541
|
platform: process.platform,
|
|
1542
1542
|
arch: process.arch
|
|
@@ -1549,22 +1549,22 @@ async function trackCliTelemetry(event, properties) {
|
|
|
1549
1549
|
if (shouldDisableTelemetry()) return;
|
|
1550
1550
|
let client;
|
|
1551
1551
|
try {
|
|
1552
|
+
const distinctId = await getAnonymousId();
|
|
1553
|
+
const sanitizedProperties = sanitizeProperties({
|
|
1554
|
+
...getCommonProperties(),
|
|
1555
|
+
...properties,
|
|
1556
|
+
$process_person_profile: false
|
|
1557
|
+
});
|
|
1552
1558
|
client = new PostHog(TELEMETRY_API_KEY, {
|
|
1553
1559
|
host: TELEMETRY_HOST,
|
|
1554
|
-
captureMode: "json",
|
|
1555
1560
|
disableGeoip: true,
|
|
1556
1561
|
flushAt: 1,
|
|
1557
|
-
flushInterval: 0
|
|
1558
|
-
persistence: "memory"
|
|
1562
|
+
flushInterval: 0
|
|
1559
1563
|
});
|
|
1560
1564
|
await client.captureImmediate({
|
|
1561
|
-
distinctId
|
|
1565
|
+
distinctId,
|
|
1562
1566
|
event,
|
|
1563
|
-
properties:
|
|
1564
|
-
...getCommonProperties(),
|
|
1565
|
-
...properties,
|
|
1566
|
-
$process_person_profile: false
|
|
1567
|
-
}),
|
|
1567
|
+
properties: sanitizedProperties,
|
|
1568
1568
|
disableGeoip: true
|
|
1569
1569
|
});
|
|
1570
1570
|
} 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-
|
|
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-DOr8R2_6.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.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.3.
|
|
3
|
+
"version": "0.3.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",
|
|
@@ -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": "
|
|
55
|
+
"posthog-node": "^5.28.2",
|
|
56
56
|
"trpc-cli": "^0.12.4",
|
|
57
57
|
"zod": "^4.3.6"
|
|
58
58
|
},
|