Socket
Socket
Sign inDemoInstall

@sentry/integrations

Package Overview
Dependencies
6
Maintainers
11
Versions
384
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.81.1 to 7.82.0

2

cjs/captureconsole.js

@@ -38,3 +38,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

utils.addInstrumentationHandler('console', ({ args, level }) => {
utils.addConsoleInstrumentationHandler(({ args, level }) => {
if (!levels.includes(level)) {

@@ -41,0 +41,0 @@ return;

@@ -134,3 +134,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

url: xhr.responseURL,
method: method,
method,
status: xhr.status,

@@ -263,3 +263,3 @@ requestHeaders,

utils.addInstrumentationHandler('fetch', (handlerData) => {
utils.addFetchInstrumentationHandler(handlerData => {
const { response, args } = handlerData;

@@ -272,3 +272,3 @@ const [requestInfo, requestInit] = args ;

this._fetchResponseHandler(requestInfo, response, requestInit);
this._fetchResponseHandler(requestInfo, response , requestInit);
});

@@ -285,26 +285,19 @@ }

utils.addInstrumentationHandler(
'xhr',
(handlerData) => {
const { xhr } = handlerData;
utils.addXhrInstrumentationHandler(handlerData => {
const xhr = handlerData.xhr ;
const sentryXhrData = xhr[utils.SENTRY_XHR_DATA_KEY];
const sentryXhrData = xhr[utils.SENTRY_XHR_DATA_KEY];
if (!sentryXhrData) {
return;
}
if (!sentryXhrData) {
return;
}
const { method, request_headers: headers } = sentryXhrData;
const { method, request_headers: headers } = sentryXhrData;
if (!method) {
return;
}
try {
this._xhrResponseHandler(xhr, method, headers);
} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Error while extracting response event form XHR response', e);
}
},
);
try {
this._xhrResponseHandler(xhr, method, headers);
} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Error while extracting response event form XHR response', e);
}
});
}

@@ -311,0 +304,0 @@

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

import { CONSOLE_LEVELS, GLOBAL_OBJ, addInstrumentationHandler, severityLevelFromString, addExceptionMechanism, safeJoin } from '@sentry/utils';
import { CONSOLE_LEVELS, GLOBAL_OBJ, addConsoleInstrumentationHandler, severityLevelFromString, addExceptionMechanism, safeJoin } from '@sentry/utils';

@@ -36,3 +36,3 @@ /** Send Console API calls as Sentry Events */

addInstrumentationHandler('console', ({ args, level }) => {
addConsoleInstrumentationHandler(({ args, level }) => {
if (!levels.includes(level)) {

@@ -39,0 +39,0 @@ return;

import { isSentryRequestUrl, getCurrentHub } from '@sentry/core';
import { logger, supportsNativeFetch, addInstrumentationHandler, GLOBAL_OBJ, SENTRY_XHR_DATA_KEY, addExceptionMechanism } from '@sentry/utils';
import { logger, supportsNativeFetch, addFetchInstrumentationHandler, GLOBAL_OBJ, addXhrInstrumentationHandler, SENTRY_XHR_DATA_KEY, addExceptionMechanism } from '@sentry/utils';

@@ -132,3 +132,3 @@ /** HTTPClient integration creates events for failed client side HTTP requests. */

url: xhr.responseURL,
method: method,
method,
status: xhr.status,

@@ -261,3 +261,3 @@ requestHeaders,

addInstrumentationHandler('fetch', (handlerData) => {
addFetchInstrumentationHandler(handlerData => {
const { response, args } = handlerData;

@@ -270,3 +270,3 @@ const [requestInfo, requestInit] = args ;

this._fetchResponseHandler(requestInfo, response, requestInit);
this._fetchResponseHandler(requestInfo, response , requestInit);
});

@@ -283,26 +283,19 @@ }

addInstrumentationHandler(
'xhr',
(handlerData) => {
const { xhr } = handlerData;
addXhrInstrumentationHandler(handlerData => {
const xhr = handlerData.xhr ;
const sentryXhrData = xhr[SENTRY_XHR_DATA_KEY];
const sentryXhrData = xhr[SENTRY_XHR_DATA_KEY];
if (!sentryXhrData) {
return;
}
if (!sentryXhrData) {
return;
}
const { method, request_headers: headers } = sentryXhrData;
const { method, request_headers: headers } = sentryXhrData;
if (!method) {
return;
}
try {
this._xhrResponseHandler(xhr, method, headers);
} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Error while extracting response event form XHR response', e);
}
},
);
try {
this._xhrResponseHandler(xhr, method, headers);
} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Error while extracting response event form XHR response', e);
}
});
}

@@ -309,0 +302,0 @@

{
"name": "@sentry/integrations",
"version": "7.81.1",
"version": "7.82.0",
"description": "Pluggable integrations that can be used to enhance JS SDKs",

@@ -26,9 +26,9 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "7.81.1",
"@sentry/types": "7.81.1",
"@sentry/utils": "7.81.1",
"@sentry/core": "7.82.0",
"@sentry/types": "7.82.0",
"@sentry/utils": "7.82.0",
"localforage": "^1.8.1"
},
"devDependencies": {
"@sentry/browser": "7.81.1",
"@sentry/browser": "7.82.0",
"chai": "^4.1.2"

@@ -35,0 +35,0 @@ },

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc