@sentry/remix
Version:
Official Sentry SDK for Remix
46 lines (40 loc) • 1.91 kB
JavaScript
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const core = require('@sentry/core');
const debugBuild = require('../utils/debug-build.js');
const react = require('@sentry/react');
const sdk = require('./sdk.js');
const errors = require('./errors.js');
const performance = require('./performance.js');
const browserTracingIntegration = require('./browserTracingIntegration.js');
// import/export got a false positive, and affects most of our index barrel files
// can be removed once following issue is fixed: https://github.com/import-js/eslint-plugin-import/issues/703
/* eslint-disable import/export */
// This is a no-op function that does nothing. It's here to make sure that the
// function signature is the same as in the server SDK.
// See issue: https://github.com/getsentry/sentry-javascript/issues/9594
/* eslint-disable @typescript-eslint/no-unused-vars */
/**
*
*/
async function captureRemixServerException(err, name, request) {
debugBuild.DEBUG_BUILD &&
core.debug.warn(
'`captureRemixServerException` is a server-only function and should not be called in the browser. ' +
'This function is a no-op in the browser environment.',
);
}
exports.init = sdk.init;
exports.captureRemixErrorBoundaryError = errors.captureRemixErrorBoundaryError;
exports.withSentry = performance.withSentry;
exports.browserTracingIntegration = browserTracingIntegration.browserTracingIntegration;
exports.captureRemixServerException = captureRemixServerException;
Object.prototype.hasOwnProperty.call(react, '__proto__') &&
!Object.prototype.hasOwnProperty.call(exports, '__proto__') &&
Object.defineProperty(exports, '__proto__', {
enumerable: true,
value: react['__proto__']
});
Object.keys(react).forEach(k => {
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = react[k];
});
//# sourceMappingURL=index.js.map