@rpcbase/client 0.336.0 → 0.337.0

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -360,13 +360,13 @@ const initWithRoutes = async (routesElement, opts) => {
360
360
  }
361
361
  return false;
362
362
  };
363
- const phReactHandler = (react_context) => (error, errorInfo) => {
363
+ const phReactHandler = (reactContext) => (error, errorInfo) => {
364
364
  const err = toError(error);
365
365
  posthog.captureException(err, {
366
- react_context,
367
- component_stack: errorInfo?.componentStack
366
+ reactContext,
367
+ componentStack: errorInfo?.componentStack
368
368
  });
369
- if (react_context === "uncaught") {
369
+ if (reactContext === "uncaught") {
370
370
  console.warn("Uncaught error", err, errorInfo?.componentStack);
371
371
  }
372
372
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/client",
3
- "version": "0.336.0",
3
+ "version": "0.337.0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"