@lookiero/checkout 0.6.0-beta.6 → 0.6.0-beta.8

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.
@@ -0,0 +1,4 @@
1
+ import { BrowserClient, Hub } from "@sentry/browser";
2
+ import { ErrorBoundary } from "@sentry/react";
3
+ import { BrowserTracing } from "@sentry/tracing";
4
+ export { BrowserClient as Client, Hub, ErrorBoundary, BrowserTracing as Tracing };
@@ -0,0 +1,4 @@
1
+ import { BrowserClient, Hub } from "@sentry/browser";
2
+ import { ErrorBoundary } from "@sentry/react";
3
+ import { BrowserTracing } from "@sentry/tracing";
4
+ export { BrowserClient as Client, Hub, ErrorBoundary, BrowserTracing as Tracing };
@@ -0,0 +1,2 @@
1
+ import { ReactNativeClient, Hub, ErrorBoundary, ReactNativeTracing } from "@sentry/react-native";
2
+ export { ReactNativeClient as Client, Hub, ErrorBoundary, ReactNativeTracing as Tracing };
@@ -0,0 +1,2 @@
1
+ import { ReactNativeClient, Hub, ErrorBoundary, ReactNativeTracing } from "@sentry/react-native";
2
+ export { ReactNativeClient as Client, Hub, ErrorBoundary, ReactNativeTracing as Tracing };
@@ -1,4 +1,3 @@
1
- import "@sentry/tracing";
2
1
  import { ComponentType } from "react";
3
2
  import { Platform } from "react-native";
4
3
  interface SentryLoggerFunctionArgs {
@@ -1,32 +1,30 @@
1
1
  // import { defaultStackParser, makeFetchTransport } from "@sentry/browser";
2
2
  // import { FetchImpl } from "@sentry/browser/types/transports/utils";
3
3
  import { makeMain } from "@sentry/core";
4
- import * as Sentry from "@sentry/react-native";
5
4
  // import { ReactNativeTransportOptions } from "@sentry/react-native/dist/js/options";
6
5
  // import { makeReactNativeTransport } from "@sentry/react-native/dist/js/transports/native";
7
6
  // import { NATIVE } from "@sentry/react-native/dist/js/wrapper";
8
- import "@sentry/tracing";
7
+ // import "@sentry/tracing";
9
8
  // import { Transport } from "@sentry/types";
10
9
  import React, { useEffect } from "react";
11
10
  import { Platform } from "react-native";
11
+ import { Client, Hub, ErrorBoundary, Tracing } from "./SentryDependencies";
12
12
  const sentryLogger = ({ publicKey, environment, release, project }) => {
13
13
  let mainHub;
14
- const client = new Sentry.ReactNativeClient({
14
+ const client = new Client({
15
15
  environment,
16
16
  release,
17
17
  dsn: `https://${publicKey}@o179049.ingest.sentry.io/${project}`,
18
- integrations: [
19
- new Sentry.ReactNativeTracing({
20
- enableAppStartTracking: true,
21
- }),
22
- ],
18
+ integrations: [new Tracing()],
23
19
  tracesSampleRate: 1.0,
24
20
  debug: true,
21
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
22
+ // @ts-ignore
25
23
  enableNative: Platform.OS !== "web",
26
24
  // stackParser: defaultStackParser,
27
25
  // transport: defaultTransport,
28
26
  });
29
- const hub = new Sentry.Hub(client);
27
+ const hub = new Hub(client);
30
28
  const switchMainHub = () => {
31
29
  if (!mainHub) {
32
30
  mainHub = makeMain(hub);
@@ -37,15 +35,15 @@ const sentryLogger = ({ publicKey, environment, release, project }) => {
37
35
  };
38
36
  return (Component) => {
39
37
  switchMainHub();
40
- const WrappedComponent = Sentry.wrap(Component);
38
+ // const WrappedComponent = Sentry.wrap(Component);
41
39
  // eslint-disable-next-line react/display-name
42
40
  return (props) => {
43
41
  useEffect(() => revertMainHub, []);
44
42
  return (
45
43
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
46
44
  // @ts-ignore
47
- React.createElement(Sentry.ErrorBoundary, null,
48
- React.createElement(WrappedComponent, { ...props })));
45
+ React.createElement(ErrorBoundary, null,
46
+ React.createElement(Component, { ...props })));
49
47
  };
50
48
  };
51
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lookiero/checkout",
3
- "version": "0.6.0-beta.6",
3
+ "version": "0.6.0-beta.8",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [