@sentry/node
Advanced tools
Comparing version 0.4.0-beta.6 to 0.4.0-beta.7
@@ -23,2 +23,4 @@ import { Backend, Breadcrumb, Context, Frontend, Options, SentryEvent } from '@sentry/core'; | ||
} | boolean; | ||
/** Callback that is executed when a fatal global error occurs. */ | ||
onFatalError?(error: Error): void; | ||
} | ||
@@ -25,0 +27,0 @@ /** The Sentry Node SDK Backend. */ |
@@ -87,3 +87,3 @@ "use strict"; | ||
var _this = this; | ||
var dsn; | ||
var dsn, onFatalError; | ||
return __generator(this, function (_a) { | ||
@@ -95,2 +95,6 @@ dsn = this.frontend.getDSN(); | ||
raven_1.Raven.config(dsn.toString(), this.frontend.getOptions()).install(); | ||
onFatalError = this.frontend.getOptions().onFatalError; | ||
if (onFatalError) { | ||
raven_1.Raven.onFatalError = onFatalError; | ||
} | ||
// Hook into Raven's breadcrumb mechanism. This allows us to intercept | ||
@@ -97,0 +101,0 @@ // both breadcrumbs created internally by Raven and pass them to the |
@@ -9,2 +9,3 @@ import { Breadcrumb, SentryEvent } from '@sentry/core'; | ||
config(dsn: string, options: object): RavenInternal; | ||
onFatalError(error: Error): void; | ||
install(): void; | ||
@@ -11,0 +12,0 @@ send: SendMethod; |
{ | ||
"name": "@sentry/node", | ||
"version": "0.4.0-beta.6", | ||
"version": "0.4.0-beta.7", | ||
"description": "Offical Sentry SDK for Node.js", | ||
@@ -17,4 +17,4 @@ "repository": "https://github.com/getsentry/raven-js", | ||
"dependencies": { | ||
"@sentry/core": "^0.4.0-beta.6", | ||
"@sentry/utils": "^0.4.0-beta.6", | ||
"@sentry/core": "^0.4.0-beta.7", | ||
"@sentry/utils": "^0.4.0-beta.7", | ||
"raven": "^2.4.2" | ||
@@ -21,0 +21,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
30592
468
Updated@sentry/core@^0.4.0-beta.7
Updated@sentry/utils@^0.4.0-beta.7