Rocky_Mountain_Vending/.pnpm-store/v10/files/c6/0bd1487d29830a89018e6d6510399b4980a84a34e7f5081ef9e1ba978ff58f7649be9bb35078143feedcc1cdc0ac14e4fdce3446ab2b0570b07d188755f0da
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

52 lines
No EOL
2 KiB
Text

// This module can be shared between both pages router and app router
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
0 && (module.exports = {
isRecoverableError: null,
onRecoverableError: null
});
function _export(target, all) {
for(var name in all)Object.defineProperty(target, name, {
enumerable: true,
get: all[name]
});
}
_export(exports, {
isRecoverableError: function() {
return isRecoverableError;
},
onRecoverableError: function() {
return onRecoverableError;
}
});
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
const _bailouttocsr = require("../../shared/lib/lazy-dynamic/bailout-to-csr");
const _iserror = /*#__PURE__*/ _interop_require_default._(require("../../lib/is-error"));
const _reportglobalerror = require("./report-global-error");
const recoverableErrors = new WeakSet();
function isRecoverableError(error) {
return recoverableErrors.has(error);
}
const onRecoverableError = (error)=>{
// x-ref: https://github.com/facebook/react/pull/28736
let cause = (0, _iserror.default)(error) && 'cause' in error ? error.cause : error;
// Skip certain custom errors which are not expected to be reported on client
if ((0, _bailouttocsr.isBailoutToCSRError)(cause)) return;
if (process.env.NODE_ENV !== 'production') {
const { decorateDevError } = require('../../next-devtools/userspace/app/errors/stitched-error');
const causeError = decorateDevError(cause);
recoverableErrors.add(causeError);
cause = causeError;
}
(0, _reportglobalerror.reportGlobalError)(cause);
};
if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {
Object.defineProperty(exports.default, '__esModule', { value: true });
Object.assign(exports.default, exports);
module.exports = exports.default;
}
//# sourceMappingURL=on-recoverable-error.js.map