@sentry/core
Advanced tools
Comparing version 4.6.5 to 4.6.6
import { Scope } from '@sentry/hub'; | ||
import { Breadcrumb, Integration, IntegrationClass, SentryBreadcrumbHint, SentryEvent, SentryEventHint, SentryResponse, Severity } from '@sentry/types'; | ||
import { Breadcrumb, Integration, IntegrationClass, SdkInfo, SentryBreadcrumbHint, SentryEvent, SentryEventHint, SentryResponse, Severity } from '@sentry/types'; | ||
import { BackendClass } from './basebackend'; | ||
@@ -118,2 +118,7 @@ import { Dsn } from './dsn'; | ||
/** | ||
* This function adds all used integrations to the SDK info in the event. | ||
* @param sdkInfo The sdkInfo of the event that will be filled with all integrations. | ||
*/ | ||
protected _addIntegrations(sdkInfo?: SdkInfo): void; | ||
/** | ||
* Processes an event (either error or message) and sends it to Sentry. | ||
@@ -120,0 +125,0 @@ * |
@@ -246,2 +246,3 @@ "use strict"; | ||
} | ||
this._addIntegrations(prepared.sdk); | ||
// This should be the last thing called, since we want that | ||
@@ -257,2 +258,12 @@ // {@link Hub.addEventProcessor} gets the finished prepared event. | ||
/** | ||
* This function adds all used integrations to the SDK info in the event. | ||
* @param sdkInfo The sdkInfo of the event that will be filled with all integrations. | ||
*/ | ||
BaseClient.prototype._addIntegrations = function (sdkInfo) { | ||
var integrationsArray = Object.keys(this.integrations); | ||
if (sdkInfo && integrationsArray.length > 0) { | ||
sdkInfo.integrations = integrationsArray; | ||
} | ||
}; | ||
/** | ||
* Processes an event (either error or message) and sends it to Sentry. | ||
@@ -259,0 +270,0 @@ * |
@@ -73,3 +73,3 @@ "use strict"; | ||
if (is_1.isError(value)) { | ||
value = value.name || value.constructor.name; | ||
value = value.toString(); | ||
} | ||
@@ -76,0 +76,0 @@ extraErrorInfo[key] = value; |
import { Scope } from '@sentry/hub/esm'; | ||
import { Breadcrumb, Integration, IntegrationClass, SentryBreadcrumbHint, SentryEvent, SentryEventHint, SentryResponse, Severity } from '@sentry/types/esm'; | ||
import { Breadcrumb, Integration, IntegrationClass, SdkInfo, SentryBreadcrumbHint, SentryEvent, SentryEventHint, SentryResponse, Severity } from '@sentry/types/esm'; | ||
import { BackendClass } from './basebackend'; | ||
@@ -118,2 +118,7 @@ import { Dsn } from './dsn'; | ||
/** | ||
* This function adds all used integrations to the SDK info in the event. | ||
* @param sdkInfo The sdkInfo of the event that will be filled with all integrations. | ||
*/ | ||
protected _addIntegrations(sdkInfo?: SdkInfo): void; | ||
/** | ||
* Processes an event (either error or message) and sends it to Sentry. | ||
@@ -120,0 +125,0 @@ * |
@@ -197,2 +197,3 @@ import { Status, } from '@sentry/types/esm'; | ||
} | ||
this._addIntegrations(prepared.sdk); | ||
// This should be the last thing called, since we want that | ||
@@ -206,2 +207,12 @@ // {@link Hub.addEventProcessor} gets the finished prepared event. | ||
/** | ||
* This function adds all used integrations to the SDK info in the event. | ||
* @param sdkInfo The sdkInfo of the event that will be filled with all integrations. | ||
*/ | ||
_addIntegrations(sdkInfo) { | ||
const integrationsArray = Object.keys(this.integrations); | ||
if (sdkInfo && integrationsArray.length > 0) { | ||
sdkInfo.integrations = integrationsArray; | ||
} | ||
} | ||
/** | ||
* Processes an event (either error or message) and sends it to Sentry. | ||
@@ -208,0 +219,0 @@ * |
@@ -70,3 +70,3 @@ import { addGlobalEventProcessor, getCurrentHub } from '@sentry/hub/esm'; | ||
if (isError(value)) { | ||
value = value.name || value.constructor.name; | ||
value = value.toString(); | ||
} | ||
@@ -73,0 +73,0 @@ extraErrorInfo[key] = value; |
{ | ||
"name": "@sentry/core", | ||
"version": "4.6.5", | ||
"version": "4.6.6", | ||
"description": "Base implementation for all Sentry JavaScript SDKs", | ||
@@ -5,0 +5,0 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", |
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
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
388309
4776