Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
Maintainers
12
Versions
526
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 5.7.0 to 5.7.1

8

dist/basebackend.d.ts

@@ -24,5 +24,5 @@ import { Event, EventHint, Options, Severity, Transport } from '@sentry/types';

/** Creates a {@link Event} from an exception. */
eventFromException(exception: any, hint?: EventHint): Promise<Event>;
eventFromException(exception: any, hint?: EventHint): PromiseLike<Event>;
/** Creates a {@link Event} from a plain message. */
eventFromMessage(message: string, level?: Severity, hint?: EventHint): Promise<Event>;
eventFromMessage(message: string, level?: Severity, hint?: EventHint): PromiseLike<Event>;
/** Submits the event to Sentry */

@@ -61,7 +61,7 @@ sendEvent(event: Event): void;

*/
eventFromException(_exception: any, _hint?: EventHint): Promise<Event>;
eventFromException(_exception: any, _hint?: EventHint): PromiseLike<Event>;
/**
* @inheritDoc
*/
eventFromMessage(_message: string, _level?: Severity, _hint?: EventHint): Promise<Event>;
eventFromMessage(_message: string, _level?: Severity, _hint?: EventHint): PromiseLike<Event>;
/**

@@ -68,0 +68,0 @@ * @inheritDoc

@@ -39,3 +39,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

BaseBackend.prototype.sendEvent = function (event) {
this._transport.sendEvent(event).catch(function (reason) {
this._transport.sendEvent(event).then(null, function (reason) {
utils_1.logger.error("Error while sending event: " + reason);

@@ -42,0 +42,0 @@ });

@@ -83,7 +83,7 @@ import { Scope } from '@sentry/hub';

*/
flush(timeout?: number): Promise<boolean>;
flush(timeout?: number): PromiseLike<boolean>;
/**
* @inheritDoc
*/
close(timeout?: number): Promise<boolean>;
close(timeout?: number): PromiseLike<boolean>;
/**

@@ -98,3 +98,3 @@ * @inheritDoc

/** Waits for the client to be done with processing. */
protected _isClientProcessing(timeout?: number): Promise<{
protected _isClientProcessing(timeout?: number): PromiseLike<{
ready: boolean;

@@ -121,3 +121,3 @@ interval: number;

*/
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): Promise<Event | null>;
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null>;
/**

@@ -141,3 +141,3 @@ * This function adds all used integrations to the SDK info in the event.

*/
protected _processEvent(event: Event, hint?: EventHint, scope?: Scope): Promise<Event>;
protected _processEvent(event: Event, hint?: EventHint, scope?: Scope): PromiseLike<Event>;
/**

@@ -144,0 +144,0 @@ * Resolves before send Promise and calls resolve/reject on parent SyncPromise.

@@ -74,3 +74,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

})
.catch(function (reason) {
.then(null, function (reason) {
utils_1.logger.error(reason);

@@ -98,3 +98,3 @@ _this._processing = false;

})
.catch(function (reason) {
.then(null, function (reason) {
utils_1.logger.error(reason);

@@ -118,3 +118,3 @@ _this._processing = false;

})
.catch(function (reason) {
.then(null, function (reason) {
utils_1.logger.error(reason);

@@ -342,3 +342,3 @@ _this._processing = false;

})
.catch(function () {
.then(null, function () {
reject('`beforeSend` threw an error, will not send event.');

@@ -363,3 +363,3 @@ });

})
.catch(function (e) {
.then(null, function (e) {
reject("beforeSend rejected with " + e);

@@ -366,0 +366,0 @@ });

@@ -7,8 +7,8 @@ import { Event, Response, Transport } from '@sentry/types';

*/
sendEvent(_: Event): Promise<Response>;
sendEvent(_: Event): PromiseLike<Response>;
/**
* @inheritDoc
*/
close(_?: number): Promise<boolean>;
close(_?: number): PromiseLike<boolean>;
}
//# sourceMappingURL=noop.d.ts.map

@@ -24,5 +24,5 @@ import { Event, EventHint, Options, Severity, Transport } from '@sentry/types';

/** Creates a {@link Event} from an exception. */
eventFromException(exception: any, hint?: EventHint): Promise<Event>;
eventFromException(exception: any, hint?: EventHint): PromiseLike<Event>;
/** Creates a {@link Event} from a plain message. */
eventFromMessage(message: string, level?: Severity, hint?: EventHint): Promise<Event>;
eventFromMessage(message: string, level?: Severity, hint?: EventHint): PromiseLike<Event>;
/** Submits the event to Sentry */

@@ -61,7 +61,7 @@ sendEvent(event: Event): void;

*/
eventFromException(_exception: any, _hint?: EventHint): Promise<Event>;
eventFromException(_exception: any, _hint?: EventHint): PromiseLike<Event>;
/**
* @inheritDoc
*/
eventFromMessage(_message: string, _level?: Severity, _hint?: EventHint): Promise<Event>;
eventFromMessage(_message: string, _level?: Severity, _hint?: EventHint): PromiseLike<Event>;
/**

@@ -68,0 +68,0 @@ * @inheritDoc

@@ -38,3 +38,3 @@ import { logger, SentryError } from '@sentry/utils';

BaseBackend.prototype.sendEvent = function (event) {
this._transport.sendEvent(event).catch(function (reason) {
this._transport.sendEvent(event).then(null, function (reason) {
logger.error("Error while sending event: " + reason);

@@ -41,0 +41,0 @@ });

@@ -83,7 +83,7 @@ import { Scope } from '@sentry/hub';

*/
flush(timeout?: number): Promise<boolean>;
flush(timeout?: number): PromiseLike<boolean>;
/**
* @inheritDoc
*/
close(timeout?: number): Promise<boolean>;
close(timeout?: number): PromiseLike<boolean>;
/**

@@ -98,3 +98,3 @@ * @inheritDoc

/** Waits for the client to be done with processing. */
protected _isClientProcessing(timeout?: number): Promise<{
protected _isClientProcessing(timeout?: number): PromiseLike<{
ready: boolean;

@@ -121,3 +121,3 @@ interval: number;

*/
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): Promise<Event | null>;
protected _prepareEvent(event: Event, scope?: Scope, hint?: EventHint): PromiseLike<Event | null>;
/**

@@ -141,3 +141,3 @@ * This function adds all used integrations to the SDK info in the event.

*/
protected _processEvent(event: Event, hint?: EventHint, scope?: Scope): Promise<Event>;
protected _processEvent(event: Event, hint?: EventHint, scope?: Scope): PromiseLike<Event>;
/**

@@ -144,0 +144,0 @@ * Resolves before send Promise and calls resolve/reject on parent SyncPromise.

@@ -73,3 +73,3 @@ import * as tslib_1 from "tslib";

})
.catch(function (reason) {
.then(null, function (reason) {
logger.error(reason);

@@ -97,3 +97,3 @@ _this._processing = false;

})
.catch(function (reason) {
.then(null, function (reason) {
logger.error(reason);

@@ -117,3 +117,3 @@ _this._processing = false;

})
.catch(function (reason) {
.then(null, function (reason) {
logger.error(reason);

@@ -341,3 +341,3 @@ _this._processing = false;

})
.catch(function () {
.then(null, function () {
reject('`beforeSend` threw an error, will not send event.');

@@ -362,3 +362,3 @@ });

})
.catch(function (e) {
.then(null, function (e) {
reject("beforeSend rejected with " + e);

@@ -365,0 +365,0 @@ });

@@ -7,8 +7,8 @@ import { Event, Response, Transport } from '@sentry/types';

*/
sendEvent(_: Event): Promise<Response>;
sendEvent(_: Event): PromiseLike<Response>;
/**
* @inheritDoc
*/
close(_?: number): Promise<boolean>;
close(_?: number): PromiseLike<boolean>;
}
//# sourceMappingURL=noop.d.ts.map
{
"name": "@sentry/core",
"version": "5.7.0",
"version": "5.7.1",
"description": "Base implementation for all Sentry JavaScript SDKs",

@@ -19,6 +19,6 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/hub": "5.7.0",
"@sentry/minimal": "5.7.0",
"@sentry/types": "5.7.0",
"@sentry/utils": "5.7.0",
"@sentry/hub": "5.7.1",
"@sentry/minimal": "5.7.1",
"@sentry/types": "5.7.1",
"@sentry/utils": "5.7.1",
"tslib": "^1.9.3"

@@ -25,0 +25,0 @@ },

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

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

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

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

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