@sentry/remix
Version:
Official Sentry SDK for Remix
28 lines (23 loc) • 762 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
var core = require('@sentry/core');
var PACKAGE_NAME_PREFIX = 'npm:@sentry/';
/**
* A builder for the SDK metadata in the options for the SDK initialization.
* @param options sdk options object that gets mutated
* @param names list of package names
*/
function buildMetadata(options, names) {
options._metadata = options._metadata || {};
options._metadata.sdk =
options._metadata.sdk ||
({
name: 'sentry.javascript.remix',
packages: names.map(name => ({
name: `${PACKAGE_NAME_PREFIX}${name}`,
version: core.SDK_VERSION,
})),
version: core.SDK_VERSION,
} );
}
exports.buildMetadata = buildMetadata;
//# sourceMappingURL=metadata.js.map