/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/shared/lib/router/utils
NameSizeModeActions
add-locale.d.ts3650666editdlrm
add-locale.js10490666editdlrm
add-locale.js.map17150666editdlrm
add-path-prefix.d.ts2000666editdlrm
add-path-prefix.js5360666editdlrm
add-path-prefix.js.map8850666editdlrm
add-path-suffix.d.ts2580666editdlrm
add-path-suffix.js5360666editdlrm
add-path-suffix.js.map9440666editdlrm
app-paths.d.ts9000666editdlrm
app-paths.js15040666editdlrm
app-paths.js.map27120666editdlrm
as-path-to-search-params.d.ts790666editdlrm
as-path-to-search-params.js4840666editdlrm
as-path-to-search-params.js.map5650666editdlrm
cache-busting-search-param.d.ts5290666editdlrm
cache-busting-search-param.js27850666editdlrm
cache-busting-search-param.js.map47580666editdlrm
compare-states.d.ts1460666editdlrm
compare-states.js10700666editdlrm
compare-states.js.map19310666editdlrm
disable-smooth-scroll.d.ts3040666editdlrm
disable-smooth-scroll.js25150666editdlrm
disable-smooth-scroll.js.map36210666editdlrm
escape-path-delimiters.d.ts960666editdlrm
escape-path-delimiters.js5080666editdlrm
escape-path-delimiters.js.map7530666editdlrm
format-next-pathname-info.d.ts2610666editdlrm
format-next-pathname-info.js12900666editdlrm
format-next-pathname-info.js.map20900666editdlrm
format-url.d.ts2160666editdlrm
format-url.js39550666editdlrm
format-url.js.map57390666editdlrm
get-asset-path-from-route.d.ts840666editdlrm
get-asset-path-from-route.js6390666editdlrm
get-asset-path-from-route.js.map8460666editdlrm
get-dynamic-param.d.ts27750666editdlrm
get-dynamic-param.js39760666editdlrm
get-dynamic-param.js.map74420666editdlrm
get-next-pathname-info.d.ts14500666editdlrm
get-next-pathname-info.js24790666editdlrm
get-next-pathname-info.js.map51780666editdlrm
get-route-from-asset-path.d.ts880666editdlrm
get-route-from-asset-path.js9310666editdlrm
get-route-from-asset-path.js.map13240666editdlrm
html-bots.d.ts530666editdlrm
html-bots.js11350666editdlrm
html-bots.js.map11450666editdlrm
index.d.ts1210666editdlrm
index.js7660666editdlrm
index.js.map4300666editdlrm
interception-routes.d.ts3120666editdlrm
interception-routes.js43540666editdlrm
interception-routes.js.map50540666editdlrm
interpolate-as.d.ts1950666editdlrm
interpolate-as.js22420666editdlrm
interpolate-as.js.map38010666editdlrm
is-bot.d.ts2910666editdlrm
is-bot.js17640666editdlrm
is-bot.js.map19980666editdlrm
is-dynamic.d.ts3160666editdlrm
is-dynamic.js8670666editdlrm
is-dynamic.js.map14890666editdlrm
is-local-url.d.ts1470666editdlrm
is-local-url.js8540666editdlrm
is-local-url.js.map12710666editdlrm
middleware-route-matcher.d.ts4630666editdlrm
middleware-route-matcher.js9470666editdlrm
middleware-route-matcher.js.map17620666editdlrm
omit.d.ts1260666editdlrm
omit.js4400666editdlrm
omit.js.map7780666editdlrm
parse-path.d.ts3200666editdlrm
parse-path.js10410666editdlrm
parse-path.js.map15100666editdlrm
parse-relative-url.d.ts7450666editdlrm
parse-relative-url.js14760666editdlrm
parse-relative-url.js.map30150666editdlrm
parse-url.d.ts3650666editdlrm
parse-url.js9540666editdlrm
parse-url.js.map18430666editdlrm
path-has-prefix.d.ts3640666editdlrm
path-has-prefix.js5350666editdlrm
path-has-prefix.js.map9960666editdlrm
path-match.d.ts9890666editdlrm
path-match.js19610666editdlrm
path-match.js.map37730666editdlrm
prepare-destination.d.ts15270666editdlrm
prepare-destination.js106370666editdlrm
prepare-destination.js.map171870666editdlrm
querystring.d.ts3480666editdlrm
querystring.js22810666editdlrm
querystring.js.map32870666editdlrm
relativize-url.d.ts6790666editdlrm
relativize-url.js11210666editdlrm
relativize-url.js.map18720666editdlrm
remove-path-prefix.d.ts3890666editdlrm
remove-path-prefix.js12610666editdlrm
remove-path-prefix.js.map20000666editdlrm
remove-trailing-slash.d.ts2590666editdlrm
remove-trailing-slash.js5520666editdlrm
remove-trailing-slash.js.map5980666editdlrm
resolve-rewrites.d.ts6820666editdlrm
resolve-rewrites.js46700666editdlrm
resolve-rewrites.js.map77810666editdlrm
route-match-utils.d.ts15130666editdlrm
route-match-utils.js36750666editdlrm
route-match-utils.js.map57540666editdlrm
route-matcher.d.ts3840666editdlrm
route-matcher.js15090666editdlrm
route-matcher.js.map25580666editdlrm
route-regex.d.ts34920666editdlrm
route-regex.js94980666editdlrm
route-regex.js.map175770666editdlrm
sortable-routes.d.ts42490666editdlrm
sortable-routes.js63210666editdlrm
sortable-routes.js.map125300666editdlrm
sorted-routes.d.ts3440666editdlrm
sorted-routes.js116640666editdlrm
sorted-routes.js.map147880666editdlrm
Edit: /home/techb158/balavpn.abdallabala.com/node_modules/next/dist/shared/lib/router/utils/format-url.js (3955B)
// Format function modified from nodejs // Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); 0 && (module.exports = { formatUrl: null, formatWithValidation: null, urlObjectKeys: null }); function _export(target, all) { for(var name in all)Object.defineProperty(target, name, { enumerable: true, get: all[name] }); } _export(exports, { formatUrl: function() { return formatUrl; }, formatWithValidation: function() { return formatWithValidation; }, urlObjectKeys: function() { return urlObjectKeys; } }); const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard"); const _querystring = /*#__PURE__*/ _interop_require_wildcard._(require("./querystring")); const slashedProtocols = /https?|ftp|gopher|file/; function formatUrl(urlObj) { let { auth, hostname } = urlObj; let protocol = urlObj.protocol || ''; let pathname = urlObj.pathname || ''; let hash = urlObj.hash || ''; let query = urlObj.query || ''; let host = false; auth = auth ? encodeURIComponent(auth).replace(/%3A/i, ':') + '@' : ''; if (urlObj.host) { host = auth + urlObj.host; } else if (hostname) { host = auth + (~hostname.indexOf(':') ? "[" + hostname + "]" : hostname); if (urlObj.port) { host += ':' + urlObj.port; } } if (query && typeof query === 'object') { query = String(_querystring.urlQueryToSearchParams(query)); } let search = urlObj.search || query && "?" + query || ''; if (protocol && !protocol.endsWith(':')) protocol += ':'; if (urlObj.slashes || (!protocol || slashedProtocols.test(protocol)) && host !== false) { host = '//' + (host || ''); if (pathname && pathname[0] !== '/') pathname = '/' + pathname; } else if (!host) { host = ''; } if (hash && hash[0] !== '#') hash = '#' + hash; if (search && search[0] !== '?') search = '?' + search; pathname = pathname.replace(/[?#]/g, encodeURIComponent); search = search.replace('#', '%23'); return "" + protocol + host + pathname + search + hash; } const urlObjectKeys = [ 'auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes' ]; function formatWithValidation(url) { if (process.env.NODE_ENV === 'development') { if (url !== null && typeof url === 'object') { Object.keys(url).forEach((key)=>{ if (!urlObjectKeys.includes(key)) { console.warn("Unknown key passed via urlObject into url.format: " + key); } }); } } return formatUrl(url); } //# sourceMappingURL=format-url.js.map