mirror of
https://github.com/MarSeventh/CloudFlare-ImgBed.git
synced 2026-04-27 07:35:07 +00:00
init
This commit is contained in:
23
node_modules/@sentry-internal/tracing/cjs/node/integrations/utils/node-utils.js
generated
vendored
Normal file
23
node_modules/@sentry-internal/tracing/cjs/node/integrations/utils/node-utils.js
generated
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
var {
|
||||
_optionalChain
|
||||
} = require('@sentry/utils');
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
/**
|
||||
* Check if Sentry auto-instrumentation should be disabled.
|
||||
*
|
||||
* @param getCurrentHub A method to fetch the current hub
|
||||
* @returns boolean
|
||||
*/
|
||||
// eslint-disable-next-line deprecation/deprecation
|
||||
function shouldDisableAutoInstrumentation(getCurrentHub) {
|
||||
// eslint-disable-next-line deprecation/deprecation
|
||||
const clientOptions = _optionalChain([getCurrentHub, 'call', _ => _(), 'access', _2 => _2.getClient, 'call', _3 => _3(), 'optionalAccess', _4 => _4.getOptions, 'call', _5 => _5()]);
|
||||
const instrumenter = _optionalChain([clientOptions, 'optionalAccess', _6 => _6.instrumenter]) || 'sentry';
|
||||
|
||||
return instrumenter !== 'sentry';
|
||||
}
|
||||
|
||||
exports.shouldDisableAutoInstrumentation = shouldDisableAutoInstrumentation;
|
||||
//# sourceMappingURL=node-utils.js.map
|
||||
Reference in New Issue
Block a user