Skip to content

Commit 50e8ee1

Browse files
fix sentry type
1 parent 01c8d1f commit 50e8ee1

File tree

5 files changed

+7
-27
lines changed

5 files changed

+7
-27
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"peerDependencies": {
2525
"@babel/runtime": "^7.x",
26-
"@sentry/core": "^9.5.0"
26+
"@sentry/core": "^9.x"
2727
},
2828
"peerDependenciesMeta": {
2929
"@sentry/core": {

src/handlers/interfaces.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { INodeDetails, TORUS_NETWORK_TYPE } from "@toruslabs/constants";
2+
import { Sentry } from "@toruslabs/http-helpers";
23
import { KeyType, TorusKey } from "@toruslabs/torus.js";
34

4-
import { Sentry } from "../sentry";
55
import { AGGREGATE_VERIFIER_TYPE, LOGIN_TYPE, TORUS_METHOD_TYPE, UX_MODE_TYPE } from "../utils/enums";
66

77
export type TorusGenericObject = {

src/login.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { type INodeDetails, TORUS_NETWORK_TYPE } from "@toruslabs/constants";
22
import { NodeDetailManager } from "@toruslabs/fetch-node-details";
3+
import { Sentry } from "@toruslabs/http-helpers";
34
import { keccak256, type KeyType, Torus, TorusKey } from "@toruslabs/torus.js";
45

56
import createHandler from "./handlers/HandlerFactory";
@@ -21,7 +22,6 @@ import {
2122
TorusVerifierResponse,
2223
} from "./handlers/interfaces";
2324
import { registerServiceWorker } from "./registerServiceWorker";
24-
import SentryHandler from "./sentry";
2525
import { AGGREGATE_VERIFIER, SENTRY_TXNS, TORUS_METHOD, UX_MODE, UX_MODE_TYPE } from "./utils/enums";
2626
import { serializeError } from "./utils/error";
2727
import { handleRedirectParameters, isFirefox, padUrlString } from "./utils/helpers";
@@ -52,7 +52,7 @@ class CustomAuth {
5252

5353
storageHelper: StorageHelper;
5454

55-
sentryHandler: SentryHandler;
55+
sentryHandler: Sentry;
5656

5757
constructor({
5858
baseUrl,
@@ -109,7 +109,7 @@ class CustomAuth {
109109
if (enableLogging) log.enableAll();
110110
else log.disableAll();
111111
this.storageHelper = new StorageHelper(storageServerUrl);
112-
this.sentryHandler = new SentryHandler(sentry);
112+
this.sentryHandler = sentry;
113113
}
114114

115115
async init({ skipSw = false, skipInit = false, skipPrefetch = false }: InitParams = {}): Promise<void> {

src/sentry.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)