Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
8
Versions
534
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.0.4 to 4.0.5

52

dist/client.d.ts

@@ -5,2 +5,26 @@ import { BaseClient, Scope } from '@sentry/core';

/**
* All properties the report dialog supports
*/
export interface ReportDialogOptions {
[key: string]: any;
eventId?: string;
dsn?: DsnLike;
user?: {
email?: string;
name?: string;
};
lang?: string;
title?: string;
subtitle?: string;
subtitle2?: string;
labelName?: string;
labelEmail?: string;
labelComments?: string;
labelClose?: string;
labelSubmit?: string;
errorGeneric?: string;
errorFormEntry?: string;
successMessage?: string;
}
/**
* The Sentry Browser SDK Client.

@@ -22,24 +46,8 @@ *

protected prepareEvent(event: SentryEvent, scope?: Scope, hint?: SentryEventHint): Promise<SentryEvent | null>;
/** JSDoc */
showReportDialog(options: {
[key: string]: any;
eventId?: string;
dsn?: DsnLike;
user?: {
email?: string;
name?: string;
};
lang?: string;
title?: string;
subtitle?: string;
subtitle2?: string;
labelName?: string;
labelEmail?: string;
labelComments?: string;
labelClose?: string;
labelSubmit?: string;
errorGeneric?: string;
errorFormEntry?: string;
successMessage?: string;
}): void;
/**
* Show a report dialog to the user to send feedback to a specific event.
*
* @param options Set individual options for the dialog
*/
showReportDialog(options?: ReportDialogOptions): void;
}
export { Breadcrumb, Request, SdkInfo, SentryEvent, SentryException, SentryResponse, Severity, StackFrame, Stacktrace, Status, Thread, User, } from '@sentry/types';
export { addBreadcrumb, captureException, captureEvent, captureMessage, configureScope, withScope, getHubFromCarrier, getCurrentHub, Hub, Scope, } from '@sentry/core';
export { BrowserBackend, BrowserOptions } from './backend';
export { BrowserClient } from './client';
export { BrowserClient, ReportDialogOptions } from './client';
export { defaultIntegrations, forceLoad, init, lastEventId, onLoad, showReportDialog } from './sdk';

@@ -6,0 +6,0 @@ export { SDK_NAME, SDK_VERSION } from './version';

@@ -12,5 +12,14 @@ import { Integration } from '@sentry/types';

}
/** JSDoc */
interface BreadcrumbIntegrations {
beacon?: boolean;
console?: boolean;
dom?: boolean;
fetch?: boolean;
history?: boolean;
sentry?: boolean;
xhr?: boolean;
}
/** Default Breadcrumbs instrumentations */
export declare class Breadcrumbs implements Integration {
private readonly config;
/**

@@ -20,14 +29,8 @@ * @inheritDoc

name: string;
/** JSDoc */
private readonly options;
/**
* @inheritDoc
*/
constructor(config?: {
beacon?: boolean;
console?: boolean;
dom?: boolean;
fetch?: boolean;
history?: boolean;
sentry?: boolean;
xhr?: boolean;
});
constructor(options?: BreadcrumbIntegrations);
/** JSDoc */

@@ -52,6 +55,5 @@ private instrumentBeacon;

* - History API
*
* Can be disabled or individually configured via the `autoBreadcrumbs` config option
*/
install(options?: BrowserOptions): void;
}
export {};
import { Integration } from '@sentry/types';
/** JSDoc */
interface GlobalHandlersIntegrations {
onerror: boolean;
onunhandledrejection: boolean;
}
/** Global handlers */
export declare class GlobalHandlers implements Integration {
private readonly options;
/**

@@ -9,6 +13,6 @@ * @inheritDoc

name: string;
constructor(options?: {
onerror: boolean;
onunhandledrejection: boolean;
});
/** JSDoc */
private readonly options;
/** JSDoc */
constructor(options?: GlobalHandlersIntegrations);
/**

@@ -21,1 +25,2 @@ * @inheritDoc

}
export {};

@@ -47,3 +47,3 @@ import { Integration } from '@sentry/types';

export declare class ReportingObserver implements Integration {
private readonly config;
private readonly options;
/**

@@ -56,3 +56,3 @@ * @inheritDoc

*/
constructor(config?: {
constructor(options?: {
types?: ReportTypes[];

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

@@ -5,3 +5,3 @@ import { Integrations as CoreIntegrations } from '@sentry/core';

import { Breadcrumbs, GlobalHandlers, LinkedErrors, ReportingObserver, TryCatch, UserAgent } from './integrations';
export declare const defaultIntegrations: (CoreIntegrations.Dedupe | CoreIntegrations.InboundFilters | CoreIntegrations.FunctionToString | CoreIntegrations.SDKInformation | TryCatch | Breadcrumbs | GlobalHandlers | ReportingObserver | LinkedErrors | UserAgent)[];
export declare const defaultIntegrations: (CoreIntegrations.Dedupe | CoreIntegrations.InboundFilters | CoreIntegrations.FunctionToString | TryCatch | Breadcrumbs | GlobalHandlers | ReportingObserver | LinkedErrors | UserAgent)[];
/**

@@ -8,0 +8,0 @@ * The Sentry Browser SDK Client.

export declare const SDK_NAME = "sentry.javascript.browser";
export declare const SDK_VERSION = "4.0.4";
export declare const SDK_VERSION = "4.0.5";
{
"name": "@sentry/browser",
"version": "4.0.4",
"version": "4.0.5",
"description": "Offical Sentry SDK for browsers",

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

"dependencies": {
"@sentry/core": "4.0.3",
"@sentry/core": "4.0.5",
"@sentry/types": "4.0.1",
"@sentry/utils": "4.0.1",
"@sentry/utils": "4.0.5",
"md5": "2.2.1"

@@ -62,6 +62,6 @@ },

"fix:tslint": "tslint --fix -t stylish -p .",
"test": "karma start karma/karma.unit.config.js",
"test:watch": "karma start karma/karma.unit.config.js --auto-watch --no-single-run",
"test:integration": "karma start karma/karma.integration.config.js",
"test:integration:watch": "karma start karma/karma.integration.config.js --auto-watch --no-single-run",
"test": "karma start test/karma/karma.unit.config.js",
"test:watch": "karma start test/karma/karma.unit.config.js --auto-watch --no-single-run",
"test:integration": "karma start test/karma/karma.integration.config.js",
"test:integration:watch": "karma start test/karma/karma.integration.config.js --auto-watch --no-single-run",
"size:check": "cat build/bundle.min.js | gzip -9 | wc -c | awk '{$1=$1/1024; print $1,\"kB\";}'",

@@ -68,0 +68,0 @@ "version": "node ../../scripts/versionbump.js src/version.ts"

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

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