Files
Hugues PouillotandGitHub 937a04bc9a feat(node): Add Posthog NestJS Interceptor (#3197)
* feat(node): Add NestJS ExceptionFilter for error tracking

* refactor(node): Switch NestJS integration from ExceptionFilter to Interceptor

* feat(node): Add context propagation and optional exception capture to NestJS interceptor

* fix(node): Skip 4xx exceptions, parse x-forwarded-for, disable exception capture by default

* fix(node): Use withContext instead of enterContext to prevent context leaking across requests

* fix(example-nestjs): Fix module resolution for posthog-node/nestjs subpath import

* fix(node): Handle malformed x-forwarded-for with empty first entry

* fix(example-nestjs): Update default PostHog host to us.posthog.com

* fix(node): Fix NestJS interceptor tests to use waitForFlushTimer pattern

* clean context logic

* clean imports

* add changeset

* use enterContext instead
2026-03-05 10:09:53 +00:00

23 lines
655 B
JSON

{
"compilerOptions": {
"module": "Node16",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"target": "ES2021",
"sourceMap": true,
"outDir": "./dist",
"moduleResolution": "nodenext",
"baseUrl": "./",
"incremental": true,
"skipLibCheck": true,
"strictNullChecks": true,
"noImplicitAny": false,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": false,
"noFallthroughCasesInSwitch": false
}
}