@hanzo/event 0.3.27 → 0.3.28
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 +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/react.cjs +2 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.mjs +2 -2
- package/dist/react.mjs.map +1 -1
- package/hz.js +1 -1
- package/package.json +1 -1
- package/src/core.ts +8 -1
- package/src/stream.test.ts +26 -0
- package/src/version.ts +1 -1
package/dist/react.mjs
CHANGED
|
@@ -307,7 +307,7 @@ function hzAnonId() {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
// src/version.ts
|
|
310
|
-
var VERSION = "0.3.
|
|
310
|
+
var VERSION = "0.3.28";
|
|
311
311
|
|
|
312
312
|
// src/sentry.ts
|
|
313
313
|
var MAX_FRAMES = 50;
|
|
@@ -1050,7 +1050,7 @@ function registry() {
|
|
|
1050
1050
|
return fresh;
|
|
1051
1051
|
}
|
|
1052
1052
|
function createAnalytics(config) {
|
|
1053
|
-
if (!isBrowser()) return new Analytics(config);
|
|
1053
|
+
if (!isBrowser() || config.enabled === false) return new Analytics(config);
|
|
1054
1054
|
const key = (config.host ?? DEFAULT_HOST) + "\0" + config.product;
|
|
1055
1055
|
const clients = registry();
|
|
1056
1056
|
const existing = clients.get(key);
|