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>
30 lines
893 B
Text
30 lines
893 B
Text
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
|
const object = require('./object.js');
|
|
|
|
const SCOPE_SPAN_FIELD = '_sentrySpan';
|
|
|
|
/**
|
|
* Set the active span for a given scope.
|
|
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
*/
|
|
function _setSpanForScope(scope, span) {
|
|
if (span) {
|
|
object.addNonEnumerableProperty(scope , SCOPE_SPAN_FIELD, span);
|
|
} else {
|
|
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
delete (scope )[SCOPE_SPAN_FIELD];
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Get the active span for a given scope.
|
|
* NOTE: This should NOT be used directly, but is only used internally by the trace methods.
|
|
*/
|
|
function _getSpanForScope(scope) {
|
|
return scope[SCOPE_SPAN_FIELD];
|
|
}
|
|
|
|
exports._getSpanForScope = _getSpanForScope;
|
|
exports._setSpanForScope = _setSpanForScope;
|
|
//# sourceMappingURL=spanOnScope.js.map
|