@hanzo/event 0.3.18 → 0.3.19

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/index.cjs CHANGED
@@ -74,17 +74,19 @@ function isoWeek(d) {
74
74
  }
75
75
 
76
76
  // src/dsn.ts
77
- var PRODUCT_DSN = Object.freeze({
78
- // hanzo-console — console.hanzo.ai (also served embedded by the cloud binary)
79
- console: "https://1:0c8054dbde157f4f420c56b58660052b2ad782293c4de1d606ef8fbc46a0bf34@api.hanzo.ai/v1/sentry/019fa40b-94ae-7f1d-8f7b-e92f123fad42",
80
- // hanzo-app — hanzo.app
81
- app: "https://1:b3e1173125568c80f91ef4b1fabbbd2d7e22341de02b33ce7e22ef4fc16a196e@api.hanzo.ai/v1/sentry/019f9b1e-57eb-7171-9d92-72c0b85e4b4b",
82
- // hanzo-ai — hanzo.ai (the marketing site; `site` is the product name it declares)
83
- site: "https://1:d9cbfb844958bd7ef2a455600f00fbf237fbd71b75c1504f137773096d6aa53f@api.hanzo.ai/v1/sentry/019f9b1e-5785-7359-ad0b-f75db8e58c99"
77
+ var PRODUCT_PROJECT = Object.freeze({
78
+ console: "019fa40b-94ae-7f1d-8f7b-e92f123fad42",
79
+ // console.hanzo.ai
80
+ app: "019f9b1e-57eb-7171-9d92-72c0b85e4b4b",
81
+ // hanzo.app
82
+ site: "019f9b1e-5785-7359-ad0b-f75db8e58c99"
83
+ // hanzo.ai (marketing; product `site`)
84
84
  });
85
85
  function dsnForProduct(product) {
86
86
  if (!product) return void 0;
87
- return PRODUCT_DSN[product];
87
+ const projectId = PRODUCT_PROJECT[product];
88
+ if (!projectId) return void 0;
89
+ return `https://${HANZO_PUBLISHABLE_KEY}@api.hanzo.ai/v1/sentry/${projectId}`;
88
90
  }
89
91
  var HANZO_PUBLISHABLE_KEY = "pk-live-c88649f1085fb6ad441d8a0072933a9b";
90
92
  function defaultPublishableKey(host) {
@@ -371,7 +373,7 @@ function uuidv7Time(id) {
371
373
  }
372
374
 
373
375
  // src/version.ts
374
- var VERSION = "0.3.18";
376
+ var VERSION = "0.3.19";
375
377
 
376
378
  // src/sentry.ts
377
379
  var MAX_FRAMES = 50;
@@ -1155,7 +1157,7 @@ exports.FUNNELS = FUNNELS;
1155
1157
  exports.GOALS = GOALS;
1156
1158
  exports.PAGEVIEW = PAGEVIEW;
1157
1159
  exports.PRODUCTS = PRODUCTS;
1158
- exports.PRODUCT_DSN = PRODUCT_DSN;
1160
+ exports.PRODUCT_PROJECT = PRODUCT_PROJECT;
1159
1161
  exports.VERSION = VERSION;
1160
1162
  exports.buildEnvelope = buildEnvelope;
1161
1163
  exports.buildSentryEvent = buildSentryEvent;