create-db 0.0.13-pr27-feat-posthog-16472784776.0 → 0.0.13-pr27-feat-posthog-16472910143.0

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.
Files changed (3) hide show
  1. package/analytics.js +2 -12
  2. package/index.js +0 -3
  3. package/package.json +1 -1
package/analytics.js CHANGED
@@ -10,18 +10,8 @@ class PosthogEventCapture {
10
10
  async capture(eventName, properties = {}) {
11
11
  const POSTHOG_CAPTURE_URL = process.env.POSTHOG_API_HOST
12
12
  ? process.env.POSTHOG_API_HOST + "/capture"
13
- : null;
14
- const POSTHOG_KEY = process.env.POSTHOG_API_KEY;
15
-
16
- // Skip if environment variables are not set
17
- if (!POSTHOG_CAPTURE_URL || !POSTHOG_KEY) {
18
- if (process.env.NODE_ENV === "development") {
19
- console.warn(
20
- "Analytics skipped: POSTHOG_API_HOST or POSTHOG_API_KEY not set"
21
- );
22
- }
23
- return;
24
- }
13
+ : "https://proxyhog.prisma-data.net/capture";
14
+ const POSTHOG_KEY = process.env.POSTHOG_API_KEY || "phc_cmc85avbWyuJ2JyKdGPdv7dxXli8xLdWDBPbvIXWJfs";
25
15
 
26
16
  const payload = {
27
17
  api_key: POSTHOG_KEY,
package/index.js CHANGED
@@ -399,9 +399,6 @@ async function createDatabase(name, region) {
399
399
  async function main() {
400
400
  try {
401
401
  const rawArgs = process.argv.slice(2);
402
- log.message(
403
- chalk.white(`POSTHOG: ${process.env.POSTHOG_API_KEY} ${process.env.POSTHOG_API_HOST}`)
404
- );
405
402
  try {
406
403
  await analytics.capture("create_db:cli_command_ran", {
407
404
  command: CLI_NAME,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-db",
3
- "version": "0.0.13-pr27-feat-posthog-16472784776.0",
3
+ "version": "0.0.13-pr27-feat-posthog-16472910143.0",
4
4
  "description": "Instantly create a temporary Prisma Postgres database with one command, then claim and persist it in your Prisma Data Platform project when ready.",
5
5
  "main": "index.js",
6
6
  "author": "",