create project
This commit is contained in:
33
kitabcitab/node_modules/next/dist/server/internal-utils.js
generated
vendored
Normal file
33
kitabcitab/node_modules/next/dist/server/internal-utils.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.stripInternalQueries = stripInternalQueries;
|
||||
exports.stripInternalSearchParams = stripInternalSearchParams;
|
||||
const INTERNAL_QUERY_NAMES = [
|
||||
"__nextFallback",
|
||||
"__nextLocale",
|
||||
"__nextDefaultLocale",
|
||||
"__nextIsNotFound",
|
||||
];
|
||||
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
|
||||
Reference in New Issue
Block a user