UNPKG

next

Version:

The React Framework

79 lines (77 loc) 3.07 kB
/** @internal */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { ReadonlyURLSearchParams: null, RedirectType: null, forbidden: null, notFound: null, permanentRedirect: null, redirect: null, unauthorized: null, unstable_rethrow: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { ReadonlyURLSearchParams: function() { return ReadonlyURLSearchParams; }, RedirectType: function() { return _redirecterror.RedirectType; }, forbidden: function() { return _forbidden.forbidden; }, notFound: function() { return _notfound.notFound; }, permanentRedirect: function() { return _redirect.permanentRedirect; }, redirect: function() { return _redirect.redirect; }, unauthorized: function() { return _unauthorized.unauthorized; }, unstable_rethrow: function() { return _unstablerethrow.unstable_rethrow; } }); const _redirect = require("./redirect"); const _redirecterror = require("./redirect-error"); const _notfound = require("./not-found"); const _forbidden = require("./forbidden"); const _unauthorized = require("./unauthorized"); const _unstablerethrow = require("./unstable-rethrow"); class ReadonlyURLSearchParamsError extends Error { constructor(){ super('Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams'); } } class ReadonlyURLSearchParams extends URLSearchParams { /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ append() { throw new ReadonlyURLSearchParamsError(); } /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ delete() { throw new ReadonlyURLSearchParamsError(); } /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ set() { throw new ReadonlyURLSearchParamsError(); } /** @deprecated Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams */ sort() { throw new ReadonlyURLSearchParamsError(); } } 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=navigation.react-server.js.map