Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
954 B
Text
29 lines
954 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const integration = require('../integration.js');
|
|
const aggregateErrors = require('../utils/aggregate-errors.js');
|
|
const eventbuilder = require('../utils/eventbuilder.js');
|
|
|
|
const DEFAULT_KEY = 'cause';
|
|
const DEFAULT_LIMIT = 5;
|
|
|
|
const INTEGRATION_NAME = 'LinkedErrors';
|
|
|
|
const _linkedErrorsIntegration = ((options = {}) => {
|
|
const limit = options.limit || DEFAULT_LIMIT;
|
|
const key = options.key || DEFAULT_KEY;
|
|
|
|
return {
|
|
name: INTEGRATION_NAME,
|
|
preprocessEvent(event, hint, client) {
|
|
const options = client.getOptions();
|
|
|
|
aggregateErrors.applyAggregateErrorsToEvent(eventbuilder.exceptionFromError, options.stackParser, key, limit, event, hint);
|
|
},
|
|
};
|
|
}) ;
|
|
|
|
const linkedErrorsIntegration = integration.defineIntegration(_linkedErrorsIntegration);
|
|
|
|
exports.linkedErrorsIntegration = linkedErrorsIntegration;
|
|
//# sourceMappingURL=linkederrors.js.map
|