@sentry/core
Advanced tools
Comparing version 4.6.3 to 4.6.4
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 {}; |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
385541
4744
+ Added@sentry/hub@4.6.4(transitive)
+ Added@sentry/minimal@4.6.4(transitive)
+ Added@sentry/utils@4.6.4(transitive)
- Removed@sentry/hub@4.6.3(transitive)
- Removed@sentry/minimal@4.6.3(transitive)
- Removed@sentry/utils@4.6.3(transitive)
Updated@sentry/hub@4.6.4
Updated@sentry/minimal@4.6.4
Updated@sentry/utils@4.6.4