@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.cjs CHANGED
@@ -309,7 +309,7 @@ function hzAnonId() {
309
309
  }
310
310
 
311
311
  // src/version.ts
312
- var VERSION = "0.3.27";
312
+ var VERSION = "0.3.28";
313
313
 
314
314
  // src/sentry.ts
315
315
  var MAX_FRAMES = 50;
@@ -1052,7 +1052,7 @@ function registry() {
1052
1052
  return fresh;
1053
1053
  }
1054
1054
  function createAnalytics(config) {
1055
- if (!isBrowser()) return new Analytics(config);
1055
+ if (!isBrowser() || config.enabled === false) return new Analytics(config);
1056
1056
  const key = (config.host ?? DEFAULT_HOST) + "\0" + config.product;
1057
1057
  const clients = registry();
1058
1058
  const existing = clients.get(key);