Socket
Socket
Sign inDemoInstall

@sentry/node

Package Overview
Dependencies
Maintainers
9
Versions
510
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0-beta.3 to 0.5.0-beta.4

9

dist/backend.d.ts

@@ -16,6 +16,7 @@ import { Backend, Frontend, Options } from '@sentry/core';

* Enables/disables automatic collection of breadcrumbs. Possible values are:
* false - all automatic breadcrumb collection disabled (default)
* true - all automatic breadcrumb collection enabled
* A dictionary of individual breadcrumb types that can be enabled/disabled:
* e.g.: { console: true, http: false }
*
* - `false`: all automatic breadcrumb collection disabled (default)
* - `true`: all automatic breadcrumb collection enabled
* - A dictionary of individual breadcrumb types that can be
* enabled/disabled: e.g.: `{ console: true, http: false }`
*/

@@ -22,0 +23,0 @@ autoBreadcrumbs?: {

@@ -60,12 +60,7 @@ "use strict";

}
raven_1.Raven.config(dsn.toString(true), this.frontend.getOptions()).install();
// There is no option for this so we have to overwrite it like this.
// We need this in SentryElectron.
var onFatalError = this.frontend.getOptions().onFatalError;
if (onFatalError) {
raven_1.Raven.onFatalError = onFatalError;
}
// Hook into Raven's breadcrumb mechanism. This allows us to intercept
// both breadcrumbs created internally by Raven and pass them to the
// Frontend first, before actually capturing them.
raven_1.Raven.config(dsn.toString(true), this.frontend.getOptions()).install(onFatalError);
// Hook into Raven's breadcrumb mechanism. This allows us to intercept both
// breadcrumbs created internally by Raven and pass them to the Frontend
// first, before actually capturing them.
raven_1.Raven.captureBreadcrumb = function (breadcrumb) {

@@ -78,7 +73,7 @@ shim_1.addBreadcrumb(breadcrumb);

raven_1.Raven.send = function (event, callback) {
if (callback) {
if (callback && callback.__SENTRY_CAPTURE__) {
callback(event);
}
else {
shim_1.captureEvent(event);
shim_1.captureEvent(event, callback);
}

@@ -95,2 +90,3 @@ };

return [2 /*return*/, new Promise(function (resolve) {
resolve.__SENTRY_CAPTURE__ = true;
raven_1.Raven.captureException(exception, resolve);

@@ -108,2 +104,3 @@ })];

return [2 /*return*/, new Promise(function (resolve) {
resolve.__SENTRY_CAPTURE__ = true;
raven_1.Raven.captureMessage(message, resolve);

@@ -110,0 +107,0 @@ })];

import { Breadcrumb, SentryEvent } from '@sentry/shim';
export declare type SendMethod = (event: SentryEvent, cb: (err: any) => void) => void;
export declare type SendMethod = (event: SentryEvent, cb?: (err: any) => void) => void;
/** Provides access to internal raven functionality. */

@@ -9,4 +9,3 @@ export interface RavenInternal {

config(dsn: string, options: object): RavenInternal;
onFatalError(error: Error): void;
install(): void;
install(onFatalError?: (error: Error) => void): void;
send: SendMethod;

@@ -13,0 +12,0 @@ version: string;

{
"name": "@sentry/node",
"version": "0.5.0-beta.3",
"version": "0.5.0-beta.4",
"description": "Offical Sentry SDK for Node.js",

@@ -17,4 +17,4 @@ "repository": "https://github.com/getsentry/raven-js/tree/next",

"dependencies": {
"@sentry/core": "0.5.0-beta.3",
"@sentry/shim": "0.5.0-beta.3",
"@sentry/core": "0.5.0-beta.4",
"@sentry/shim": "0.5.0-beta.4",
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc