diff --git a/packages/node/src/integrations/undici/types.ts b/packages/node/src/integrations/undici/types.ts index f56e708f456c..d885984671bf 100644 --- a/packages/node/src/integrations/undici/types.ts +++ b/packages/node/src/integrations/undici/types.ts @@ -1,6 +1,7 @@ // Vendored from https://github.com/DefinitelyTyped/DefinitelyTyped/blob/5a94716c6788f654aea7999a5fc28f4f1e7c48ad/types/node/diagnostics_channel.d.ts import type { Span } from '@sentry/core'; +import type { URL } from 'url'; // License: // This project is licensed under the MIT license. @@ -224,7 +225,7 @@ export interface UndiciRequest { method?: string; path: string; headers: string; - addHeader(key: string, value: string): Request; + addHeader(key: string, value: string): RequestWithSentry; } export interface UndiciResponse { diff --git a/packages/node/src/requestdata.ts b/packages/node/src/requestdata.ts index a0d5aed926a9..bc07fcf92f8b 100644 --- a/packages/node/src/requestdata.ts +++ b/packages/node/src/requestdata.ts @@ -320,11 +320,5 @@ function extractQueryParams(req: PolymorphicRequest): string | Record { if (d2done) { done(); } - }); + }, 0); }); runWithAsyncContext(() => { @@ -131,7 +131,7 @@ describe('domains', () => { if (d1done) { done(); } - }); + }, 0); }); }); }); diff --git a/packages/node/test/async/hooks.test.ts b/packages/node/test/async/hooks.test.ts index a08271230579..ad477e03d477 100644 --- a/packages/node/test/async/hooks.test.ts +++ b/packages/node/test/async/hooks.test.ts @@ -130,7 +130,7 @@ conditionalTest({ min: 12 })('async_hooks', () => { if (d2done) { done(); } - }); + }, 0); }); runWithAsyncContext(() => { @@ -142,7 +142,7 @@ conditionalTest({ min: 12 })('async_hooks', () => { if (d1done) { done(); } - }); + }, 0); }); }); }); diff --git a/packages/node/tsconfig.json b/packages/node/tsconfig.json index bf45a09f2d71..5fc0658105eb 100644 --- a/packages/node/tsconfig.json +++ b/packages/node/tsconfig.json @@ -4,6 +4,6 @@ "include": ["src/**/*"], "compilerOptions": { - // package-specific options + "lib": ["es6"] } }