Socket
Socket
Sign inDemoInstall

@sentry/core

Package Overview
Dependencies
Maintainers
9
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 4.5.4 to 4.6.0

4

dist/baseclient.d.ts

@@ -139,2 +139,6 @@ import { Scope } from '@sentry/hub';

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

@@ -141,0 +145,0 @@ /**

@@ -362,3 +362,3 @@ "use strict";

*/
BaseClient.prototype.close = function (timeout) {
BaseClient.prototype.flush = function (timeout) {
return tslib_1.__awaiter(this, void 0, void 0, function () {

@@ -381,2 +381,12 @@ return tslib_1.__generator(this, function (_a) {

*/
BaseClient.prototype.close = function (timeout) {
return tslib_1.__awaiter(this, void 0, void 0, function () {
return tslib_1.__generator(this, function (_a) {
return [2 /*return*/, this.flush(timeout)];
});
});
};
/**
* @inheritDoc
*/
BaseClient.prototype.getIntegrations = function () {

@@ -383,0 +393,0 @@ return this.integrations || {};

10

dist/integrations/inboundfilters.js

@@ -161,8 +161,10 @@ "use strict";

if (event.stacktrace) {
// tslint:disable-next-line:no-unsafe-any
return event.stacktrace.frames[0].filename;
// tslint:disable:no-unsafe-any
var frames_1 = event.stacktrace.frames;
return frames_1[frames_1.length - 1].filename;
}
else if (event.exception) {
// tslint:disable-next-line:no-unsafe-any
return event.exception.values[0].stacktrace.frames[0].filename;
// tslint:disable:no-unsafe-any
var frames_2 = event.exception.values[0].stacktrace.frames;
return frames_2[frames_2.length - 1].filename;
}

@@ -169,0 +171,0 @@ else {

@@ -172,4 +172,4 @@ import { Scope } from '@sentry/hub';

/**
* A promise that resolves whenever the request buffer is empty.
* If you provide a timeout and the buffer takes longer to drain the promise returns false.
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*

@@ -179,2 +179,9 @@ * @param timeout Maximum time in ms the client should wait.

close(timeout?: number): Promise<boolean>;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
flush(timeout?: number): Promise<boolean>;
/** Returns an array of installed integrations on the client. */

@@ -181,0 +188,0 @@ getIntegration<T extends Integration>(integartion: IntegrationClass<T>): T | null;

@@ -17,5 +17,2 @@ "use strict";

}
if (hub_1.getCurrentHub().getClient()) {
return;
}
var client = new clientClass(options);

@@ -22,0 +19,0 @@ hub_1.getCurrentHub().bindClient(client);

@@ -139,2 +139,6 @@ import { Scope } from '@sentry/hub/esm';

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

@@ -141,0 +145,0 @@ /**

@@ -292,3 +292,3 @@ import { Status, } from '@sentry/types/esm';

*/
async close(timeout) {
async flush(timeout) {
return (await Promise.all([

@@ -304,2 +304,8 @@ this.getBackend()

*/
async close(timeout) {
return this.flush(timeout);
}
/**
* @inheritDoc
*/
getIntegrations() {

@@ -306,0 +312,0 @@ return this.integrations || {};

@@ -148,8 +148,10 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub/esm';

if (event.stacktrace) {
// tslint:disable-next-line:no-unsafe-any
return event.stacktrace.frames[0].filename;
// tslint:disable:no-unsafe-any
const frames = event.stacktrace.frames;
return frames[frames.length - 1].filename;
}
else if (event.exception) {
// tslint:disable-next-line:no-unsafe-any
return event.exception.values[0].stacktrace.frames[0].filename;
// tslint:disable:no-unsafe-any
const frames = event.exception.values[0].stacktrace.frames;
return frames[frames.length - 1].filename;
}

@@ -156,0 +158,0 @@ else {

@@ -172,4 +172,4 @@ import { Scope } from '@sentry/hub/esm';

/**
* A promise that resolves whenever the request buffer is empty.
* If you provide a timeout and the buffer takes longer to drain the promise returns false.
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*

@@ -179,2 +179,9 @@ * @param timeout Maximum time in ms the client should wait.

close(timeout?: number): Promise<boolean>;
/**
* A promise that resolves when all current events have been sent.
* If you provide a timeout and the queue takes longer to drain the promise returns false.
*
* @param timeout Maximum time in ms the client should wait.
*/
flush(timeout?: number): Promise<boolean>;
/** Returns an array of installed integrations on the client. */

@@ -181,0 +188,0 @@ getIntegration<T extends Integration>(integartion: IntegrationClass<T>): T | null;

@@ -15,5 +15,2 @@ import { getCurrentHub } from '@sentry/hub/esm';

}
if (getCurrentHub().getClient()) {
return;
}
const client = new clientClass(options);

@@ -20,0 +17,0 @@ getCurrentHub().bindClient(client);

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

@@ -18,4 +18,4 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/hub": "4.5.4",
"@sentry/minimal": "4.5.4",
"@sentry/hub": "4.6.0",
"@sentry/minimal": "4.6.0",
"@sentry/types": "4.5.3",

@@ -22,0 +22,0 @@ "@sentry/utils": "4.5.4",

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