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 4.0.0-beta.6 to 4.0.0-beta.7

66

dist/base.js

@@ -118,8 +118,9 @@ "use strict";

if (!this.isEnabled()) {
return false;
return (this.installed = false);
}
if (this.installed === undefined) {
this.installed = this.getBackend().install();
var backend = this.getBackend();
if (!this.installed && backend.install) {
backend.install();
}
return this.installed;
return (this.installed = true);
};

@@ -249,33 +250,30 @@ /**

return __generator(this, function (_c) {
switch (_c.label) {
case 0:
_a = this.getOptions(), environment = _a.environment, _b = _a.maxBreadcrumbs, maxBreadcrumbs = _b === void 0 ? DEFAULT_BREADCRUMBS : _b, release = _a.release;
prepared = __assign({ sdk: this.getSdkInfo() }, event);
if (prepared.environment === undefined && environment !== undefined) {
prepared.environment = environment;
}
if (prepared.release === undefined && release !== undefined) {
prepared.release = release;
}
if (prepared.message) {
prepared.message = string_1.truncate(prepared.message, MAX_URL_LENGTH);
}
exception = prepared.exception &&
prepared.exception.values &&
prepared.exception.values[0];
if (exception && exception.value) {
exception.value = string_1.truncate(exception.value, MAX_URL_LENGTH);
}
request = prepared.request;
if (request && request.url) {
request.url = string_1.truncate(request.url, MAX_URL_LENGTH);
}
prepared.event_id = misc_1.uuid4();
if (!scope) return [3 /*break*/, 2];
return [4 /*yield*/, scope.applyToEvent(prepared, Math.min(maxBreadcrumbs, MAX_BREADCRUMBS))];
case 1:
_c.sent();
_c.label = 2;
case 2: return [2 /*return*/, prepared];
_a = this.getOptions(), environment = _a.environment, _b = _a.maxBreadcrumbs, maxBreadcrumbs = _b === void 0 ? DEFAULT_BREADCRUMBS : _b, release = _a.release;
prepared = __assign({ sdk: this.getSdkInfo() }, event);
if (prepared.environment === undefined && environment !== undefined) {
prepared.environment = environment;
}
if (prepared.release === undefined && release !== undefined) {
prepared.release = release;
}
if (prepared.message) {
prepared.message = string_1.truncate(prepared.message, MAX_URL_LENGTH);
}
exception = prepared.exception &&
prepared.exception.values &&
prepared.exception.values[0];
if (exception && exception.value) {
exception.value = string_1.truncate(exception.value, MAX_URL_LENGTH);
}
request = prepared.request;
if (request && request.url) {
request.url = string_1.truncate(request.url, MAX_URL_LENGTH);
}
prepared.event_id = misc_1.uuid4();
// This should be the last thing called, since we want that
// {@link Hub.addEventProcessor} gets the finished prepared event.
if (scope) {
return [2 /*return*/, scope.applyToEvent(prepared, Math.min(maxBreadcrumbs, MAX_BREADCRUMBS))];
}
return [2 /*return*/, prepared];
});

@@ -282,0 +280,0 @@ });

@@ -212,3 +212,3 @@ import { Scope } from '@sentry/hub';

/** Installs the SDK into the environment. */
install(): boolean;
install?(): boolean;
/** Creates a {@link SentryEvent} from an exception. */

@@ -215,0 +215,0 @@ eventFromException(exception: any): Promise<SentryEvent>;

{
"name": "@sentry/core",
"version": "4.0.0-beta.6",
"version": "4.0.0-beta.7",
"description": "Base implementation for all Sentry JavaScript SDKs",

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

"dependencies": {
"@sentry/hub": "4.0.0-beta.6",
"@sentry/minimal": "4.0.0-beta.6",
"@sentry/types": "4.0.0-beta.6",
"@sentry/utils": "4.0.0-beta.6"
"@sentry/hub": "4.0.0-beta.7",
"@sentry/minimal": "4.0.0-beta.7",
"@sentry/types": "4.0.0-beta.7",
"@sentry/utils": "4.0.0-beta.7"
},

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

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