From 61691421e433575d952cc3d984e47d6e6b55e9c2 Mon Sep 17 00:00:00 2001 From: Marc Jorge Date: Mon, 23 Jan 2023 14:48:53 +0100 Subject: [PATCH] fix: SentryInterceptorOptions request type --- lib/sentry.interfaces.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sentry.interfaces.ts b/lib/sentry.interfaces.ts index 4410406..79aaac5 100644 --- a/lib/sentry.interfaces.ts +++ b/lib/sentry.interfaces.ts @@ -1,7 +1,7 @@ -import { ModuleMetadata, Type } from "@nestjs/common/interfaces"; +import { ModuleMetadata, Type } from '@nestjs/common/interfaces'; import { Integration, Options } from '@sentry/types'; -import { ConsoleLoggerOptions, HttpException } from "@nestjs/common"; -import { SeverityLevel } from "@sentry/node"; +import { ConsoleLoggerOptions } from '@nestjs/common'; +import { SeverityLevel } from '@sentry/node'; export interface SentryCloseOptions { enabled: boolean; @@ -44,9 +44,9 @@ export interface SentryInterceptorOptions { level?: SeverityLevel; // https://github.com/getsentry/sentry-javascript/blob/master/packages/node/src/handlers.ts#L163 - request?: boolean; + request?: boolean | string[]; // default: true = ['cookies', 'data', 'headers', 'method', 'query_string', 'url'] serverName?: boolean; transaction?: boolean | 'path' | 'methodPath' | 'handler'; // https://github.com/getsentry/sentry-javascript/blob/master/packages/node/src/handlers.ts#L16 user?: boolean | string[]; version?: boolean; -} \ No newline at end of file +}