Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); const core = require('@sentry/core'); const debugBuild = require('../debug-build.js'); function getEffectiveRpcPropagation(options) { const { enableRpcTracePropagation, instrumentPrototypeMethods } = options; if (enableRpcTracePropagation !== void 0) { if (instrumentPrototypeMethods !== void 0) { debugBuild.DEBUG_BUILD && core.debug.warn( "[Sentry] Both `enableRpcTracePropagation` and `instrumentPrototypeMethods` are set. Using `enableRpcTracePropagation` and ignoring `instrumentPrototypeMethods`." ); } return enableRpcTracePropagation; } if (instrumentPrototypeMethods !== void 0) { debugBuild.DEBUG_BUILD && core.debug.warn( "[Sentry] `instrumentPrototypeMethods` is deprecated and will be removed in a future major version. Please use `enableRpcTracePropagation` instead." ); return instrumentPrototypeMethods === true || Array.isArray(instrumentPrototypeMethods) && instrumentPrototypeMethods.length > 0; } return false; } exports.getEffectiveRpcPropagation = getEffectiveRpcPropagation; //# sourceMappingURL=rpcOptions.js.map