create-db 1.0.3-pr48-DC-4894-posthog-fix-17270974632.0 → 1.0.3-pr48-DC-4894-posthog-fix-17271140767.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 (2) hide show
  1. package/index.js +4 -13
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -9,27 +9,18 @@ import terminalLink from "terminal-link";
9
9
 
10
10
  async function sendAnalyticsToWorker(eventName, properties = {}) {
11
11
  try {
12
- const response = await fetch(`${CREATE_DB_WORKER_URL}/analytics`, {
12
+ await fetch(`${CREATE_DB_WORKER_URL}/analytics`, {
13
13
  method: "POST",
14
14
  headers: { "Content-Type": "application/json" },
15
15
  body: JSON.stringify({ eventName, properties }),
16
16
  });
17
-
18
- if (!response.ok) {
19
- throw new Error(
20
- `Analytics request failed: ${response.status} ${response.statusText}`
21
- );
22
- }
23
-
24
- const result = await response.json();
25
- if (result.status === "success") {
26
- } else {
27
- }
28
17
  } catch (error) {}
29
18
  }
30
19
 
20
+ // const CREATE_DB_WORKER_URL =
21
+ // process.env.CREATE_DB_WORKER_URL || "https://create-db-temp.prisma.io";
31
22
  const CREATE_DB_WORKER_URL =
32
- process.env.CREATE_DB_WORKER_URL || "https://create-db-temp.prisma.io";
23
+ "https://2c4f945c-create-db-worker.datacdn.workers.dev";
33
24
  const CLAIM_DB_WORKER_URL =
34
25
  process.env.CLAIM_DB_WORKER_URL || "https://create-db.prisma.io";
35
26
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-db",
3
- "version": "1.0.3-pr48-DC-4894-posthog-fix-17270974632.0",
3
+ "version": "1.0.3-pr48-DC-4894-posthog-fix-17271140767.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": "",