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>
28 lines
1,022 B
Text
28 lines
1,022 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const object = require('../utils/object.js');
|
|
|
|
const SCOPE_ON_START_SPAN_FIELD = '_sentryScope';
|
|
const ISOLATION_SCOPE_ON_START_SPAN_FIELD = '_sentryIsolationScope';
|
|
|
|
/** Store the scope & isolation scope for a span, which can the be used when it is finished. */
|
|
function setCapturedScopesOnSpan(span, scope, isolationScope) {
|
|
if (span) {
|
|
object.addNonEnumerableProperty(span, ISOLATION_SCOPE_ON_START_SPAN_FIELD, isolationScope);
|
|
object.addNonEnumerableProperty(span, SCOPE_ON_START_SPAN_FIELD, scope);
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Grabs the scope and isolation scope off a span that were active when the span was started.
|
|
*/
|
|
function getCapturedScopesOnSpan(span) {
|
|
return {
|
|
scope: (span )[SCOPE_ON_START_SPAN_FIELD],
|
|
isolationScope: (span )[ISOLATION_SCOPE_ON_START_SPAN_FIELD],
|
|
};
|
|
}
|
|
|
|
exports.getCapturedScopesOnSpan = getCapturedScopesOnSpan;
|
|
exports.setCapturedScopesOnSpan = setCapturedScopesOnSpan;
|
|
//# sourceMappingURL=utils.js.map
|