@sentry/nestjs
Advanced tools
Comparing version
@@ -18,3 +18,16 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
() => { | ||
return originalMethod.apply(this, args); | ||
let result; | ||
try { | ||
result = originalMethod.apply(this, args); | ||
} catch (e) { | ||
core.captureException(e); | ||
throw e; | ||
} | ||
if (core.isThenable(result)) { | ||
return result.then(undefined, e => { | ||
core.captureException(e); | ||
throw e; | ||
}); | ||
} | ||
return result; | ||
}, | ||
@@ -21,0 +34,0 @@ monitorConfig, |
@@ -1,2 +0,2 @@ | ||
import { captureException } from '@sentry/core'; | ||
import { captureException, isThenable } from '@sentry/core'; | ||
import * as Sentry from '@sentry/node'; | ||
@@ -17,3 +17,16 @@ import { startSpan } from '@sentry/node'; | ||
() => { | ||
return originalMethod.apply(this, args); | ||
let result; | ||
try { | ||
result = originalMethod.apply(this, args); | ||
} catch (e) { | ||
captureException(e); | ||
throw e; | ||
} | ||
if (isThenable(result)) { | ||
return result.then(undefined, e => { | ||
captureException(e); | ||
throw e; | ||
}); | ||
} | ||
return result; | ||
}, | ||
@@ -20,0 +33,0 @@ monitorConfig, |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"9.33.0","sideEffects":false} | ||
{"type":"module","version":"9.34.0-alpha.1","sideEffects":false} |
{ | ||
"name": "@sentry/nestjs", | ||
"version": "9.33.0", | ||
"version": "9.34.0-alpha.1", | ||
"description": "Official Sentry SDK for NestJS", | ||
@@ -52,4 +52,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"@opentelemetry/semantic-conventions": "^1.34.0", | ||
"@sentry/core": "9.33.0", | ||
"@sentry/node": "9.33.0" | ||
"@sentry/core": "9.34.0-alpha.1", | ||
"@sentry/node": "9.34.0-alpha.1" | ||
}, | ||
@@ -56,0 +56,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
252874
0.83%2373
1.11%1
Infinity%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated