@lookiero/checkout 0.6.0-beta.13 → 0.6.0-beta.15

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.d.ts CHANGED
@@ -13,7 +13,7 @@ interface BootstrapFunctionArgs {
13
13
  readonly getAuthToken: () => Promise<string>;
14
14
  readonly apiUrl: string;
15
15
  readonly translations: EndpointFunction;
16
- readonly sentry?: SentryLoggerFunctionArgs;
16
+ readonly sentry: SentryLoggerFunctionArgs;
17
17
  }
18
18
  interface BootstrapFunctionReturn {
19
19
  readonly Root: ComponentType<RootProps>;
@@ -4,14 +4,8 @@ import { SafeAreaProvider } from "react-native-safe-area-context";
4
4
  import { Notifications } from "../../../shared/notifications/infrastructure/ui/views/Notifications";
5
5
  import { MESSAGING_CONTEXT_ID } from "../../delivery/baseBootstrap";
6
6
  import { Navigation } from "./navigation/Navigation";
7
- const a = true;
8
- const App = ({ customerId, menu, tabBar, children }) => {
9
- if (a) {
10
- throw new Error("This is an error (while integrated in UAF)");
11
- }
12
- return (React.createElement(SafeAreaProvider, null,
13
- React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID }),
14
- React.createElement(Navigation, { customerId: customerId, menu: menu, tabBar: tabBar },
15
- React.createElement(PortalProvider, null, children))));
16
- };
7
+ const App = ({ customerId, menu, tabBar, children }) => (React.createElement(SafeAreaProvider, null,
8
+ React.createElement(Notifications, { contextId: MESSAGING_CONTEXT_ID }),
9
+ React.createElement(Navigation, { customerId: customerId, menu: menu, tabBar: tabBar },
10
+ React.createElement(PortalProvider, null, children))));
17
11
  export { App };
@@ -28,10 +28,12 @@ const sentryLogger = ({ publicKey, environment, release, project }) => {
28
28
  makeMain(mainHub);
29
29
  };
30
30
  return (Component) => {
31
- switchMainHub();
32
31
  const WrappedComponent = wrap(Component);
33
32
  const SentryLogger = (props) => {
34
- useEffect(() => revertMainHub, []);
33
+ useEffect(() => {
34
+ switchMainHub();
35
+ return revertMainHub;
36
+ }, []);
35
37
  return (React.createElement(ErrorBoundary, null,
36
38
  React.createElement(WrappedComponent, { ...props })));
37
39
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.6.0-beta.13",
3
+ "version": "0.6.0-beta.15",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -33,7 +33,7 @@
33
33
  "@lookiero/messaging": "^8.0.0",
34
34
  "@lookiero/messaging-react": "^8.0.0",
35
35
  "@react-spring/native": "^9.5.5",
36
- "@sentry/react-native": "^4.12.0",
36
+ "@sentry/react-native": "^4.13.0",
37
37
  "inline-style-prefixer": "6.0.1",
38
38
  "react-native-safe-area-context": "^4.4.1",
39
39
  "react-native-svg": "^12.1.1",