Skip to content

Commit

Permalink
Run npm lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hieu-w committed Dec 20, 2024
1 parent 655470f commit d610ca1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 21 deletions.
6 changes: 4 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-throw-literal */
import type { Span, StartSpanOptions } from "@sentry/types";
import merge from "deepmerge";
import logLevel, { levels, LogLevelDesc } from "loglevel";
Expand All @@ -14,6 +13,7 @@ export interface CustomOptions {
logTracingHeader?: boolean;
}

// eslint-disable-next-line @typescript-eslint/no-empty-object-type
export interface Data {}

let apiKey = "torus-default";
Expand Down Expand Up @@ -71,7 +71,9 @@ async function fetchAndTrace(url: string, init: RequestInit): Promise<Response>
let _url: URL | null = null;
try {
_url = new URL(url);
} catch (error) {}
} catch {
// ignore
}
if (sentry && _url && (tracingOrigins.includes(_url.origin) || tracingPaths.includes(_url.pathname))) {
const result = await sentry.startSpan<Promise<Response>>(
{
Expand Down
18 changes: 0 additions & 18 deletions test.mjs

This file was deleted.

1 change: 0 additions & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// eslint-disable-next-line import/no-unresolved
import { defineConfig } from "vitest/config";

export default defineConfig({
Expand Down

0 comments on commit d610ca1

Please sign in to comment.