securityos/node_modules/next/dist/server/lib/router-utils/filesystem.js.map

1 line
13 KiB
Plaintext
Raw Normal View History

2024-09-06 15:32:35 +00:00
{"version":3,"sources":["../../../../src/server/lib/router-utils/filesystem.ts"],"names":["buildCustomRoute","setupFsCheck","debug","setupDebug","type","item","basePath","caseSensitive","restrictedRedirectPaths","map","p","match","getPathMatch","source","strict","removeUnnamedParams","regexModifier","internal","regex","modifyRouteRegex","undefined","sensitive","check","opts","getItemsLru","dev","LRUCache","max","length","value","key","fsPath","itemPath","nextDataRoutes","Set","publicFolderItems","nextStaticFolderItems","legacyStaticFolderItems","appFiles","pageFiles","dynamicRoutes","middlewareMatcher","distDir","path","join","dir","config","publicFolderPath","nextStaticFolderPath","legacyStaticFolderPath","customRoutes","redirects","rewrites","beforeFiles","afterFiles","fallback","headers","buildId","prerenderManifest","middlewareManifest","buildIdPath","BUILD_ID_FILE","fs","readFile","file","recursiveReadDir","add","encodeURI","normalizePathSep","err","code","Log","warn","posix","output","routesManifestPath","ROUTES_MANIFEST","prerenderManifestPath","PRERENDER_MANIFEST","middlewareManifestPath","MIDDLEWARE_MANIFEST","pagesManifestPath","PAGES_MANIFEST","appRoutesManifestPath","APP_PATH_ROUTES_MANIFEST","routesManifest","JSON","parse","catch","pagesManifest","appRoutesManifest","Object","keys","i18n","normalizeLocalePath","locales","pathname","escapedBuildId","escapeStringRegexp","route","dataRoutes","isDynamicRoute","page","routeRegex","getRouteRegex","push","re","toString","getRouteMatcher","RegExp","dataRouteRegex","replace","groups","middleware","matchers","getMiddlewareRouteMatcher","Array","isArray","loadCustomRoutes","version","routes","notFoundRoutes","preview","previewModeId","require","randomBytes","previewModeSigningKey","previewModeEncryptionKey","experimental","caseSensitiveRoutes","handleLocale","locale","i18nResult","detectedLocale","ensureFn","interceptionRoutes","devVirtualFsItems","ensureCallback","fn","getItem","originalItemPath","itemKey","lruResult","get","minimalMode","endsWith","substring","pathHasPrefix","removePathPrefix","decodedItemPath","decodeURIComponent","itemsToCheck","items","curItemPath","curDecodedItemPath","isDynamicOutput","localeResult","defaultLocale","nextDataPrefix","startsWith","curLocaleResult","matchedItem","has","encodedCurItemPath","itemsRoot","isStaticAsset","includes","found","fileExists","FileType","File","tempItemPath","isAppFile","normalizeMetadataRoute","itemResult","set","getDynamicRoutes","getMiddlewareMatchers"],"mappings":";;;;;;;;;;;;;;;IAmEaA,gBAAgB;eAAhBA;;IA4BSC,YAAY;eAAZA;;;6DApFL;iEACF;6DACM;8DACE;iEACF;yEACQ;gCACI;4BACI;kCACJ;uBACF;8BACI;2BACN;4BACC;8BACE;+BACF;qCACM;kCACH;wCAES;2BASnC;kCAC0B;kCACM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkBvC,MAAMC,QAAQC,IAAAA,cAAU,EAAC;AASlB,MAAMH,mBAAmB,CAC9BI,MACAC,MACAC,UACAC;IAEA,MAAMC,0BAA0B;QAAC;KAAS,CAACC,GAAG,CAAC,CAACC,IAC9CJ,WAAW,CAAC,EAAEA,SAAS,EAAEI,EAAE,CAAC,GAAGA;IAEjC,MAAMC,QAAQC,IAAAA,uBAAY,EAACP,KAAKQ,MAAM,EAAE;QACtCC,QAAQ;QACRC,qBAAqB;QACrBC,eAAe,CAAC,AAACX,KAAaY,QAAQ,GAClC,CAACC,QACCC,IAAAA,gCAAgB,EACdD,OACAd,SAAS,aAAaI,0BAA0BY,aAEpDA;QACJC,WAAWd;IACb;IACA,OAAO;QACL,GAAGF,IAAI;QACP,GAAID,SAAS,YAAY;YAAEkB,OAAO;QAAK,IAAI,CAAC,CAAC;QAC7CX;IACF;AACF;AAEO,eAAeV,aAAasB,IAQlC;IACC,MAAMC,cAAc,CAACD,KAAKE,GAAG,GACzB,IAAIC,iBAAQ,CAA0B;QACpCC,KAAK,OAAO;QACZC,QAAOC,KAAK,EAAEC,GAAG;YACf,IAAI,CAACD,OAAO,OAAOC,CAAAA,uBAAAA,IAAKF,MAAM,KAAI;YAClC,OACE,AAACE,CAA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