@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 +12 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +15 -8
- package/dist/index.d.ts +15 -8
- package/dist/index.mjs +12 -10
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +11 -9
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +11 -9
- package/dist/react.mjs.map +1 -1
- package/hz.js +1 -1
- package/package.json +1 -1
- package/src/dsn.test.ts +14 -11
- package/src/dsn.ts +19 -14
- package/src/index.ts +1 -1
- package/src/version.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -74,17 +74,19 @@ function isoWeek(d) {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
// src/dsn.ts
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
console
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
1160
|
+
exports.PRODUCT_PROJECT = PRODUCT_PROJECT;
|
|
1159
1161
|
exports.VERSION = VERSION;
|
|
1160
1162
|
exports.buildEnvelope = buildEnvelope;
|
|
1161
1163
|
exports.buildSentryEvent = buildSentryEvent;
|