1234567891011121314151617181920212223242526272829303132333435363738 |
- "use strict";
- Object.defineProperty(exports, "__esModule", {
- value: true
- });
- exports.stripInternalQueries = stripInternalQueries;
- exports.stripInternalSearchParams = stripInternalSearchParams;
- const INTERNAL_QUERY_NAMES = [
- "__nextFallback",
- "__nextLocale",
- "__nextDefaultLocale",
- "__nextIsNotFound",
- // RSC
- "__flight__",
- // Routing
- "__flight_router_state_tree__",
- "__flight_prefetch__",
- ];
- const EXTENDED_INTERNAL_QUERY_NAMES = [
- "__nextDataReq"
- ];
- function stripInternalQueries(query) {
- for (const name of INTERNAL_QUERY_NAMES){
- delete query[name];
- }
- }
- function stripInternalSearchParams(searchParams, extended) {
- for (const name of INTERNAL_QUERY_NAMES){
- searchParams.delete(name);
- }
- if (extended) {
- for (const name of EXTENDED_INTERNAL_QUERY_NAMES){
- searchParams.delete(name);
- }
- }
- return searchParams;
- }
- //# sourceMappingURL=internal-utils.js.map
|