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>
35 lines
823 B
Text
35 lines
823 B
Text
class _AsyncLocalStorage {
|
|
__unenv__ = true;
|
|
_currentStore;
|
|
_enterStore;
|
|
_enabled = true;
|
|
getStore() {
|
|
return this._currentStore ?? this._enterStore;
|
|
}
|
|
disable() {
|
|
this._enabled = false;
|
|
}
|
|
enable() {
|
|
this._enabled = true;
|
|
}
|
|
enterWith(store) {
|
|
this._enterStore = store;
|
|
}
|
|
run(store, callback, ...args) {
|
|
this._currentStore = store;
|
|
const res = callback(...args);
|
|
this._currentStore = undefined;
|
|
return res;
|
|
}
|
|
exit(callback, ...args) {
|
|
const _previousStore = this._currentStore;
|
|
this._currentStore = undefined;
|
|
const res = callback(...args);
|
|
this._currentStore = _previousStore;
|
|
return res;
|
|
}
|
|
static snapshot() {
|
|
throw new Error("[unenv] `AsyncLocalStorage.snapshot` is not implemented!");
|
|
}
|
|
}
|
|
export const AsyncLocalStorage = globalThis.AsyncLocalStorage || _AsyncLocalStorage;
|