@drakkar.software/sunglasses-react 0.12.0 → 0.12.1

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.js CHANGED
@@ -271,6 +271,7 @@ var GlobalErrorBoundaryInner = class extends import_react6.default.Component {
271
271
  return { hasError: true };
272
272
  }
273
273
  componentDidMount() {
274
+ if (typeof import_sunglasses_core3.subscribeGlobalError !== "function") return;
274
275
  this.unsubscribe = (0, import_sunglasses_core3.subscribeGlobalError)((info) => this.handleGlobalError(info));
275
276
  }
276
277
  componentWillUnmount() {
package/dist/index.mjs CHANGED
@@ -223,6 +223,7 @@ var GlobalErrorBoundaryInner = class extends React3.Component {
223
223
  return { hasError: true };
224
224
  }
225
225
  componentDidMount() {
226
+ if (typeof subscribeGlobalError !== "function") return;
226
227
  this.unsubscribe = subscribeGlobalError((info) => this.handleGlobalError(info));
227
228
  }
228
229
  componentWillUnmount() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drakkar.software/sunglasses-react",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "React (web) provider and hooks for SunGlasses event tracking",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",