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.6.3 to 4.6.4

10

dist/integrations/extraerrordata.d.ts
import { Integration, SentryEvent, SentryEventHint } from '@sentry/types';
/** JSDoc */
interface ExtraErrorDataOptions {
depth?: number;
}
/** Patch toString calls to return proper name for wrapped functions */
export declare class ExtraErrorData implements Integration {
private readonly options;
/**

@@ -15,2 +20,6 @@ * @inheritDoc

*/
constructor(options?: ExtraErrorDataOptions);
/**
* @inheritDoc
*/
setupOnce(): void;

@@ -26,1 +35,2 @@ /**

}
export {};

9

dist/integrations/extraerrordata.js

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

var ExtraErrorData = /** @class */ (function () {
function ExtraErrorData() {
/**
* @inheritDoc
*/
function ExtraErrorData(options) {
if (options === void 0) { options = { depth: 3 }; }
this.options = options;
/**

@@ -43,3 +48,3 @@ * @inheritDoc

var extra = tslib_1.__assign({}, event.extra);
var normalizedErrorData = object_1.safeNormalize(errorData);
var normalizedErrorData = object_1.safeNormalize(errorData, this.options.depth);
if (!is_1.isString(normalizedErrorData)) {

@@ -46,0 +51,0 @@ extra = tslib_1.__assign({}, event.extra, normalizedErrorData);

import { Integration, SentryEvent, SentryEventHint } from '@sentry/types/esm';
/** JSDoc */
interface ExtraErrorDataOptions {
depth?: number;
}
/** Patch toString calls to return proper name for wrapped functions */
export declare class ExtraErrorData implements Integration {
private readonly options;
/**

@@ -15,2 +20,6 @@ * @inheritDoc

*/
constructor(options?: ExtraErrorDataOptions);
/**
* @inheritDoc
*/
setupOnce(): void;

@@ -26,1 +35,2 @@ /**

}
export {};

@@ -7,3 +7,7 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub/esm';

export class ExtraErrorData {
constructor() {
/**
* @inheritDoc
*/
constructor(options = { depth: 3 }) {
this.options = options;
/**

@@ -38,3 +42,3 @@ * @inheritDoc

};
const normalizedErrorData = safeNormalize(errorData);
const normalizedErrorData = safeNormalize(errorData, this.options.depth);
if (!isString(normalizedErrorData)) {

@@ -41,0 +45,0 @@ extra = {

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

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

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

@@ -24,0 +24,0 @@ },

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