@lookiero/checkout 0.6.0-beta.7 → 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.
- package/dist/shared/logging/SentryDependencies.d.ts +4 -0
- package/dist/shared/logging/SentryDependencies.js +4 -0
- package/dist/shared/logging/SentryDependencies.native.d.ts +2 -0
- package/dist/shared/logging/SentryDependencies.native.js +2 -0
- package/dist/shared/logging/SentryLogger.d.ts +0 -1
- package/dist/shared/logging/SentryLogger.js +6 -8
- package/package.json +1 -1
|
@@ -1,27 +1,25 @@
|
|
|
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 { ReactNativeClient, Hub, ErrorBoundary, ReactNativeTracing } 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
|
|
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 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,
|