@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/react.mjs CHANGED
@@ -307,7 +307,7 @@ function hzAnonId() {
307
307
  }
308
308
 
309
309
  // src/version.ts
310
- var VERSION = "0.3.27";
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);