/opt/canhelp/node_modules/next/dist/esm/server
NameSizeModeActions
after/-0755rm
api-utils/-0755rm
app-render/-0755rm
async-storage/-0755rm
base-http/-0755rm
dev/-0755rm
instrumentation/-0755rm
lib/-0755rm
node-environment-extensions/-0755rm
normalizers/-0755rm
og/-0755rm
request/-0755rm
response-cache/-0755rm
resume-data-cache/-0755rm
route-definitions/-0755rm
route-matcher-managers/-0755rm
route-matcher-providers/-0755rm
route-matchers/-0755rm
route-matches/-0755rm
route-modules/-0755rm
stream-utils/-0755rm
typescript/-0755rm
use-cache/-0755rm
web/-0755rm
accept-header.js38520644editdlrm
accept-header.js.map64540644editdlrm
base-server.js965210644editdlrm
base-server.js.map1621330644editdlrm
body-streams.js29790644editdlrm
body-streams.js.map54080644editdlrm
cache-dir.js3240644editdlrm
cache-dir.js.map6980644editdlrm
ci-info.js6560644editdlrm
ci-info.js.map13170644editdlrm
client-component-renderer-logger.js17390644editdlrm
client-component-renderer-logger.js.map29840644editdlrm
config-schema.js273500644editdlrm
config-schema.js.map541600644editdlrm
config-shared.js66020644editdlrm
config-shared.js.map580730644editdlrm
config-utils.js56760644editdlrm
config-utils.js.map65820644editdlrm
config.js714880644editdlrm
config.js.map996810644editdlrm
create-deduped-by-callsite-server-error-logger.js23300644editdlrm
create-deduped-by-callsite-server-error-logger.js.map36410644editdlrm
crypto-utils.js23300644editdlrm
crypto-utils.js.map42990644editdlrm
dynamic-rendering-utils.js29840644editdlrm
dynamic-rendering-utils.js.map48830644editdlrm
font-utils.js15540644editdlrm
font-utils.js.map30730644editdlrm
get-app-route-from-entrypoint.js4520644editdlrm
get-app-route-from-entrypoint.js.map8520644editdlrm
get-page-files.js5470644editdlrm
get-page-files.js.map16990644editdlrm
get-route-from-entrypoint.js7940644editdlrm
get-route-from-entrypoint.js.map13980644editdlrm
htmlescape.js5100644editdlrm
htmlescape.js.map9610644editdlrm
image-optimizer.js334240644editdlrm
image-optimizer.js.map553920644editdlrm
internal-utils.js5780644editdlrm
internal-utils.js.map13080644editdlrm
load-components.js62050644editdlrm
load-components.js.map131850644editdlrm
load-default-error-components.js15560644editdlrm
load-default-error-components.js.map38870644editdlrm
load-manifest.external.js23080644editdlrm
load-manifest.external.js.map57630644editdlrm
match-bundle.js3200644editdlrm
match-bundle.js.map7050644editdlrm
next-server.js654510644editdlrm
next-server.js.map1101450644editdlrm
next-typescript.js910644editdlrm
next-typescript.js.map2150644editdlrm
next.js135400644editdlrm
next.js.map269300644editdlrm
node-environment-baseline.js8760644editdlrm
node-environment-baseline.js.map15540644editdlrm
node-environment.js7570644editdlrm
node-environment.js.map11650644editdlrm
node-polyfill-crypto.js5440644editdlrm
node-polyfill-crypto.js.map10130644editdlrm
optimize-amp.js3600644editdlrm
optimize-amp.js.map8230644editdlrm
patch-error-inspect.js175330644editdlrm
patch-error-inspect.js.map285930644editdlrm
pipe-readable.js50210644editdlrm
pipe-readable.js.map77020644editdlrm
post-process.js18000644editdlrm
post-process.js.map39970644editdlrm
ReactDOMServerPages.d.ts380644editdlrm
ReactDOMServerPages.js5840644editdlrm
ReactDOMServerPages.js.map9560644editdlrm
render-result.js72040644editdlrm
render-result.js.map142390644editdlrm
render.js534870644editdlrm
render.js.map854420644editdlrm
request-meta.js13410644editdlrm
request-meta.js.map94330644editdlrm
require-hook.js22770644editdlrm
require-hook.js.map43970644editdlrm
require.js30420644editdlrm
require.js.map61070644editdlrm
revalidation-utils.js29170644editdlrm
revalidation-utils.js.map57080644editdlrm
route-kind.js8290644editdlrm
route-kind.js.map9270644editdlrm
send-payload.js21740644editdlrm
send-payload.js.map42120644editdlrm
send-response.js30400644editdlrm
send-response.js.map45980644editdlrm
serve-static.js13340644editdlrm
serve-static.js.map26030644editdlrm
server-route-utils.js10610644editdlrm
server-route-utils.js.map19990644editdlrm
server-utils.js153150644editdlrm
server-utils.js.map261390644editdlrm
setup-http-agent-env.js8320644editdlrm
setup-http-agent-env.js.map14390644editdlrm
utils.js26720644editdlrm
utils.js.map41390644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/server/load-manifest.external.js.map (5763B)
{"version":3,"sources":["../../src/server/load-manifest.external.ts"],"sourcesContent":["import type { DeepReadonly } from '../shared/lib/deep-readonly'\n\nimport { join } from 'path'\nimport { readFileSync } from 'fs'\nimport { runInNewContext } from 'vm'\nimport { deepFreeze } from '../shared/lib/deep-freeze'\n\nconst sharedCache = new Map()\n\n/**\n * Load a manifest file from the file system. Optionally cache the manifest in\n * memory to avoid reading the file multiple times using the provided cache or\n * defaulting to a shared module cache. The manifest is frozen to prevent\n * modifications if it is cached.\n *\n * @param path the path to the manifest file\n * @param shouldCache whether to cache the manifest in memory\n * @param cache the cache to use for storing the manifest\n * @returns the manifest object\n */\nexport function loadManifest(\n path: string,\n shouldCache: false\n): T\nexport function loadManifest(\n path: string,\n shouldCache?: boolean,\n cache?: Map,\n skipParse?: boolean\n): DeepReadonly\nexport function loadManifest(\n path: string,\n shouldCache?: true,\n cache?: Map,\n skipParse?: boolean\n): DeepReadonly\nexport function loadManifest(\n path: string,\n shouldCache: boolean = true,\n cache = sharedCache,\n skipParse = false\n): T {\n const cached = shouldCache && cache.get(path)\n if (cached) {\n return cached as T\n }\n\n let manifest: any = readFileSync(/* turbopackIgnore: true */ path, 'utf8')\n\n if (!skipParse) {\n manifest = JSON.parse(manifest)\n\n // Freeze the manifest so it cannot be modified if we're caching it.\n if (shouldCache) {\n manifest = deepFreeze(manifest)\n }\n }\n\n if (shouldCache) {\n cache.set(path, manifest)\n }\n\n return manifest\n}\n\nexport function evalManifest(\n path: string,\n shouldCache: false\n): T\nexport function evalManifest(\n path: string,\n shouldCache?: boolean,\n cache?: Map\n): DeepReadonly\nexport function evalManifest(\n path: string,\n shouldCache?: true,\n cache?: Map\n): DeepReadonly\nexport function evalManifest(\n path: string,\n shouldCache: boolean = true,\n cache = sharedCache\n): T {\n const cached = shouldCache && cache.get(path)\n if (cached) {\n return cached as T\n }\n\n const content = readFileSync(/* turbopackIgnore: true */ path, 'utf8')\n if (content.length === 0) {\n throw new Error('Manifest file is empty')\n }\n\n let contextObject = {}\n runInNewContext(content, contextObject)\n\n // Freeze the context object so it cannot be modified if we're caching it.\n if (shouldCache) {\n contextObject = deepFreeze(contextObject)\n }\n\n if (shouldCache) {\n cache.set(path, contextObject)\n }\n\n return contextObject as T\n}\n\nexport function loadManifestFromRelativePath({\n projectDir,\n distDir,\n manifest,\n shouldCache,\n cache,\n skipParse,\n handleMissing,\n useEval,\n}: {\n projectDir: string\n distDir: string\n manifest: string\n shouldCache?: boolean\n cache?: Map\n skipParse?: boolean\n handleMissing?: boolean\n useEval?: boolean\n}): DeepReadonly {\n try {\n const manifestPath = join(\n /* turbopackIgnore: true */ projectDir,\n distDir,\n manifest\n )\n\n if (useEval) {\n return evalManifest(manifestPath, shouldCache, cache)\n }\n return loadManifest(manifestPath, shouldCache, cache, skipParse)\n } catch (err) {\n if (handleMissing) {\n // TODO: should this be undefined\n return {} as DeepReadonly\n }\n throw err\n }\n}\n\nexport function clearManifestCache(path: string, cache = sharedCache): boolean {\n return cache.delete(path)\n}\n"],"names":["join","readFileSync","runInNewContext","deepFreeze","sharedCache","Map","loadManifest","path","shouldCache","cache","skipParse","cached","get","manifest","JSON","parse","set","evalManifest","content","length","Error","contextObject","loadManifestFromRelativePath","projectDir","distDir","handleMissing","useEval","manifestPath","err","clearManifestCache","delete"],"mappings":"AAEA,SAASA,IAAI,QAAQ,OAAM;AAC3B,SAASC,YAAY,QAAQ,KAAI;AACjC,SAASC,eAAe,QAAQ,KAAI;AACpC,SAASC,UAAU,QAAQ,4BAA2B;AAEtD,MAAMC,cAAc,IAAIC;AA6BxB,OAAO,SAASC,aACdC,IAAY,EACZC,cAAuB,IAAI,EAC3BC,QAAQL,WAAW,EACnBM,YAAY,KAAK;IAEjB,MAAMC,SAASH,eAAeC,MAAMG,GAAG,CAACL;IACxC,IAAII,QAAQ;QACV,OAAOA;IACT;IAEA,IAAIE,WAAgBZ,aAAa,yBAAyB,GAAGM,MAAM;IAEnE,IAAI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