Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
Maintainers
9
Versions
515
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/core - npm Package Compare versions

Comparing version 0.5.3 to 0.5.4

6

dist/base.d.ts
import { Breadcrumb, Context, SdkInfo, SentryEvent } from '@sentry/shim';
import { DSN } from './dsn';
import { Backend, Frontend, Options, Scope } from './interfaces';
import { SendStatus } from './status';
/** A class object that can instanciate Backend objects. */

@@ -135,3 +136,3 @@ export interface BackendClass<B extends Backend, O extends Options> {

/**
* Sends an event (either error or message) to Sentry.
* Processes an event (either error or message) and sends it to Sentry.
*

@@ -149,5 +150,6 @@ * This also adds breadcrumbs and context information to the event. However,

* @param scope A scope containing event metadata.
* @param send A function to actually send the event.
* @returns A Promise that resolves with the event status.
*/
private sendEvent(event, scope);
protected processEvent(event: SentryEvent, scope: Scope, send: (finalEvent: SentryEvent) => Promise<number>): Promise<SendStatus>;
}

@@ -187,5 +187,8 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var _this = this;
return __generator(this, function (_a) {
switch (_a.label) {
case 0: return [4 /*yield*/, this.sendEvent(event, scope)];
case 0: return [4 /*yield*/, this.processEvent(event, scope, function (finalEvent) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
return [2 /*return*/, this.getBackend().sendEvent(finalEvent)];
}); }); })];
case 1:

@@ -339,3 +342,3 @@ _a.sent();

/**
* Sends an event (either error or message) to Sentry.
* Processes an event (either error or message) and sends it to Sentry.
*

@@ -353,5 +356,6 @@ * This also adds breadcrumbs and context information to the event. However,

* @param scope A scope containing event metadata.
* @param send A function to actually send the event.
* @returns A Promise that resolves with the event status.
*/
FrontendBase.prototype.sendEvent = function (event, scope) {
FrontendBase.prototype.processEvent = function (event, scope, send) {
return __awaiter(this, void 0, void 0, function () {

@@ -373,3 +377,3 @@ var prepared, _a, shouldSend, beforeSend, afterSend, finalEvent, code, status;

finalEvent = beforeSend ? beforeSend(prepared) : prepared;
return [4 /*yield*/, this.getBackend().sendEvent(finalEvent)];
return [4 /*yield*/, send(finalEvent)];
case 2:

@@ -376,0 +380,0 @@ code = _b.sent();

{
"name": "@sentry/core",
"version": "0.5.3",
"version": "0.5.4",
"description": "Base implementation for all Sentry JavaScript SDKs",

@@ -18,3 +18,3 @@ "repository": "git://github.com/getsentry/raven-js.git",

"dependencies": {
"@sentry/shim": "0.5.3"
"@sentry/shim": "0.5.4"
},

@@ -21,0 +21,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc