Skip to content

Commit 8d9fe35

Browse files
authored
ref(nestjs): Move decorators to folder (getsentry#13509)
Just moving the decorators to improve the structure of the nest SDK package a bit.
1 parent 7e9a038 commit 8d9fe35

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: packages/nestjs/src/error-decorator.ts renamed to packages/nestjs/src/decorators/with-sentry.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { captureException } from '@sentry/core';
2-
import { isExpectedError } from './helpers';
2+
import { isExpectedError } from '../helpers';
33

44
/**
55
* A decorator to wrap user-defined exception filters and add Sentry error reporting.

Diff for: packages/nestjs/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ export * from '@sentry/node';
22

33
export { init } from './sdk';
44

5-
export { SentryTraced } from './span-decorator';
6-
export { SentryCron } from './cron-decorator';
7-
export { WithSentry } from './error-decorator';
5+
export { SentryTraced } from './decorators/sentry-traced';
6+
export { SentryCron } from './decorators/sentry-cron';
7+
export { WithSentry } from './decorators/with-sentry';

0 commit comments

Comments
 (0)