Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
9
Versions
536
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 4.6.3 to 4.6.4

2

dist/version.d.ts
export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "4.6.3";
export declare const SDK_VERSION = "4.6.4";

@@ -1,2 +0,3 @@

import { API, BaseClient, SentryError } from '@sentry/core/esm';
import { API, BaseClient } from '@sentry/core/esm';
import { logger } from '@sentry/utils/esm/logger';
import { getGlobalObject } from '@sentry/utils/esm/misc';

@@ -50,8 +51,14 @@ import { BrowserBackend } from './backend';

}
if (!this.isEnabled()) {
logger.error('Trying to call showReportDialog with Sentry Client is disabled');
return;
}
const dsn = options.dsn || this.getDsn();
if (!options.eventId) {
throw new SentryError('Missing `eventId` option in showReportDialog call');
logger.error('Missing `eventId` option in showReportDialog call');
return;
}
if (!dsn) {
throw new SentryError('Missing `Dsn` option in showReportDialog call');
logger.error('Missing `Dsn` option in showReportDialog call');
return;
}

@@ -58,0 +65,0 @@ const script = document.createElement('script');

@@ -6,3 +6,3 @@ import { API, getCurrentHub } from '@sentry/core/esm';

import { getEventDescription, getGlobalObject, parseUrl } from '@sentry/utils/esm/misc';
import { deserialize, fill, serializeObject } from '@sentry/utils/esm/object';
import { deserialize, fill, safeNormalize } from '@sentry/utils/esm/object';
import { includes, safeJoin } from '@sentry/utils/esm/string';

@@ -91,3 +91,3 @@ import { supportsBeacon, supportsHistory, supportsNativeFetch } from '@sentry/utils/esm/supports';

extra: {
arguments: serializeObject(args, 2),
arguments: safeNormalize(args, 3),
},

@@ -102,3 +102,3 @@ logger: 'console',

breadcrumbData.message = `Assertion failed: ${safeJoin(args.slice(1), ' ') || 'console.assert'}`;
breadcrumbData.data.extra.arguments = serializeObject(args.slice(1), 2);
breadcrumbData.data.extra.arguments = safeNormalize(args.slice(1), 3);
}

@@ -105,0 +105,0 @@ }

import { captureException, getCurrentHub, withScope } from '@sentry/core/esm';
import { isFunction } from '@sentry/utils/esm/is';
import { htmlTreeAsString } from '@sentry/utils/esm/misc';
import { serializeObject } from '@sentry/utils/esm/object';
import { safeNormalize } from '@sentry/utils/esm/object';
const debounceDuration = 1000;

@@ -77,3 +77,3 @@ let keypressTimeout;

...processedEvent.extra,
arguments: serializeObject(args, 2),
arguments: safeNormalize(args, 3),
};

@@ -115,2 +115,13 @@ return processedEvent;

});
// Restore original function name (not all browsers allow that)
try {
Object.defineProperty(sentryWrapped, 'name', {
get() {
return fn.name;
},
});
}
catch (_oO) {
/*no-empty*/
}
return sentryWrapped;

@@ -117,0 +128,0 @@ }

export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "4.6.3";
export declare const SDK_VERSION = "4.6.4";
export const SDK_NAME = 'sentry.javascript.browser';
export const SDK_VERSION = '4.6.3';
export const SDK_VERSION = '4.6.4';
//# sourceMappingURL=version.js.map
{
"name": "@sentry/browser",
"version": "4.6.3",
"version": "4.6.4",
"description": "Offical Sentry SDK for browsers",

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

"dependencies": {
"@sentry/core": "4.6.3",
"@sentry/core": "4.6.4",
"@sentry/types": "4.5.3",
"@sentry/utils": "4.6.3",
"@sentry/utils": "4.6.4",
"tslib": "^1.9.3"

@@ -23,0 +23,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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