/
home
/
techb158
/
balavpn.abdallabala.com
/
node_modules
/
next
/
dist
/
esm
/
server
/
lib
/
/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/server/lib
mkdir
upload
Name
Size
Mode
Actions
cache-handlers/
-
0777
rm
experimental/
-
0777
rm
incremental-cache/
-
0777
rm
module-loader/
-
0777
rm
router-utils/
-
0777
rm
server-ipc/
-
0777
rm
trace/
-
0777
rm
app-dir-module.js
1164
0666
edit
dl
rm
app-dir-module.js.map
2598
0666
edit
dl
rm
app-info-log.js
2723
0666
edit
dl
rm
app-info-log.js.map
5827
0666
edit
dl
rm
async-callback-set.js
519
0666
edit
dl
rm
async-callback-set.js.map
1097
0666
edit
dl
rm
cache-control.js
583
0666
edit
dl
rm
cache-control.js.map
1622
0666
edit
dl
rm
chrome-devtools-workspace.js
2297
0666
edit
dl
rm
chrome-devtools-workspace.js.map
4145
0666
edit
dl
rm
clone-response.js
2883
0666
edit
dl
rm
clone-response.js.map
4441
0666
edit
dl
rm
cpu-profile.js
1020
0666
edit
dl
rm
cpu-profile.js.map
2061
0666
edit
dl
rm
decode-query-path-parameter.js
458
0666
edit
dl
rm
decode-query-path-parameter.js.map
740
0666
edit
dl
rm
dedupe-fetch.js
5085
0666
edit
dl
rm
dedupe-fetch.js.map
7374
0666
edit
dl
rm
dev-bundler-service.js
3110
0666
edit
dl
rm
dev-bundler-service.js.map
5838
0666
edit
dl
rm
disk-lru-cache.external.js
1857
0666
edit
dl
rm
disk-lru-cache.external.js.map
3149
0666
edit
dl
rm
etag.js
1148
0666
edit
dl
rm
etag.js.map
2165
0666
edit
dl
rm
find-page-file.js
5445
0666
edit
dl
rm
find-page-file.js.map
9480
0666
edit
dl
rm
fix-mojibake.js
523
0666
edit
dl
rm
fix-mojibake.js.map
1026
0666
edit
dl
rm
format-hostname.js
332
0666
edit
dl
rm
format-hostname.js.map
616
0666
edit
dl
rm
i18n-provider.js
5531
0666
edit
dl
rm
i18n-provider.js.map
9041
0666
edit
dl
rm
implicit-tags.js
2450
0666
edit
dl
rm
implicit-tags.js.map
5238
0666
edit
dl
rm
is-ipv6.js
2090
0666
edit
dl
rm
is-ipv6.js.map
3388
0666
edit
dl
rm
is-rsc-request.js
278
0666
edit
dl
rm
is-rsc-request.js.map
518
0666
edit
dl
rm
lazy-result.js
939
0666
edit
dl
rm
lazy-result.js.map
1869
0666
edit
dl
rm
lru-cache.js
7148
0666
edit
dl
rm
lru-cache.js.map
11374
0666
edit
dl
rm
match-next-data-pathname.js
312
0666
edit
dl
rm
match-next-data-pathname.js.map
629
0666
edit
dl
rm
mock-request.js
14794
0666
edit
dl
rm
mock-request.js.map
22879
0666
edit
dl
rm
node-fs-methods.js
364
0666
edit
dl
rm
node-fs-methods.js.map
946
0666
edit
dl
rm
parse-stack.js
1561
0666
edit
dl
rm
parse-stack.js.map
2983
0666
edit
dl
rm
patch-fetch.js
44939
0666
edit
dl
rm
patch-fetch.js.map
64721
0666
edit
dl
rm
patch-set-header.js
1368
0666
edit
dl
rm
patch-set-header.js.map
2471
0666
edit
dl
rm
render-server.js
2988
0666
edit
dl
rm
render-server.js.map
6276
0666
edit
dl
rm
router-server.js
30157
0666
edit
dl
rm
router-server.js.map
46962
0666
edit
dl
rm
server-action-request-meta.js
1530
0666
edit
dl
rm
server-action-request-meta.js.map
3030
0666
edit
dl
rm
source-maps.js
8172
0666
edit
dl
rm
source-maps.js.map
14812
0666
edit
dl
rm
start-server.js
16797
0666
edit
dl
rm
start-server.js.map
27727
0666
edit
dl
rm
streaming-metadata.js
762
0666
edit
dl
rm
streaming-metadata.js.map
1582
0666
edit
dl
rm
to-route.js
582
0666
edit
dl
rm
to-route.js.map
848
0666
edit
dl
rm
types.js
46
0666
edit
dl
rm
types.js.map
451
0666
edit
dl
rm
utils.js
8516
0666
edit
dl
rm
utils.js.map
13627
0666
edit
dl
rm
worker-utils.js
755
0666
edit
dl
rm
worker-utils.js.map
1120
0666
edit
dl
rm
Edit:
/home/techb158/balavpn.abdallabala.com/node_modules/next/dist/esm/server/lib/dedupe-fetch.js.map
(7374B)
{"version":3,"sources":["../../../src/server/lib/dedupe-fetch.ts"],"sourcesContent":["/**\n * Based on https://github.com/facebook/react/blob/d4e78c42a94be027b4dc7ed2659a5fddfbf9bd4e/packages/react/src/ReactFetch.js\n */\nimport * as React from 'react'\nimport { cloneResponse } from './clone-response'\nimport { InvariantError } from '../../shared/lib/invariant-error'\n\nconst simpleCacheKey = '[\"GET\",[],null,\"follow\",null,null,null,null]' // generateCacheKey(new Request('https://blank'));\n\nfunction generateCacheKey(request: Request): string {\n // We pick the fields that goes into the key used to dedupe requests.\n // We don't include the `cache` field, because we end up using whatever\n // caching resulted from the first request.\n // Notably we currently don't consider non-standard (or future) options.\n // This might not be safe. TODO: warn for non-standard extensions differing.\n // IF YOU CHANGE THIS UPDATE THE simpleCacheKey ABOVE.\n return JSON.stringify([\n request.method,\n Array.from(request.headers.entries()),\n request.mode,\n request.redirect,\n request.credentials,\n request.referrer,\n request.referrerPolicy,\n request.integrity,\n ])\n}\n\ntype CacheEntry = [\n key: string,\n promise: Promise<Response>,\n response: Response | null,\n]\n\nexport function createDedupeFetch(originalFetch: typeof fetch) {\n const getCacheEntries = React.cache(\n // eslint-disable-next-line @typescript-eslint/no-unused-vars -- url is the cache key\n (url: string): CacheEntry[] => []\n )\n\n return function dedupeFetch(\n resource: URL | RequestInfo,\n options?: RequestInit\n ): Promise<Response> {\n if (options && options.signal) {\n // If we're passed a signal, then we assume that\n // someone else controls the lifetime of this object and opts out of\n // caching. It's effectively the opt-out mechanism.\n // Ideally we should be able to check this on the Request but\n // it always gets initialized with its own signal so we don't\n // know if it's supposed to override - unless we also override the\n // Request constructor.\n return originalFetch(resource, options)\n }\n // Normalize the Request\n let url: string\n let cacheKey: string\n if (typeof resource === 'string' && !options) {\n // Fast path.\n cacheKey = simpleCacheKey\n url = resource\n } else {\n // Normalize the request.\n // if resource is not a string or a URL (its an instance of Request)\n // then do not instantiate a new Request but instead\n // reuse the request as to not disturb the body in the event it's a ReadableStream.\n const request =\n typeof resource === 'string' || resource instanceof URL\n ? new Request(resource, options)\n : resource\n if (\n (request.method !== 'GET' && request.method !== 'HEAD') ||\n request.keepalive\n ) {\n // We currently don't dedupe requests that might have side-effects. Those\n // have to be explicitly cached. We assume that the request doesn't have a\n // body if it's GET or HEAD.\n // keepalive gets treated the same as if you passed a custom cache signal.\n return originalFetch(resource, options)\n }\n cacheKey = generateCacheKey(request)\n url = request.url\n }\n\n const cacheEntries = getCacheEntries(url)\n for (let i = 0, j = cacheEntries.length; i < j; i += 1) {\n const [key, promise] = cacheEntries[i]\n if (key === cacheKey) {\n return promise.then(() => {\n const response = cacheEntries[i][2]\n if (!response) throw new InvariantError('No cached response')\n\n // We're cloning the response using this utility because there exists\n // a bug in the undici library around response cloning. See the\n // following pull request for more details:\n // https://github.com/vercel/next.js/pull/73274\n const [cloned1, cloned2] = cloneResponse(response)\n cacheEntries[i][2] = cloned2\n return cloned1\n })\n }\n }\n\n // We pass the original arguments here in case normalizing the Request\n // doesn't include all the options in this environment.\n const promise = originalFetch(resource, options)\n const entry: CacheEntry = [cacheKey, promise, null]\n cacheEntries.push(entry)\n\n return promise.then((response) => {\n // We're cloning the response using this utility because there exists\n // a bug in the undici library around response cloning. See the\n // following pull request for more details:\n // https://github.com/vercel/next.js/pull/73274\n const [cloned1, cloned2] = cloneResponse(response)\n entry[2] = cloned2\n return cloned1\n })\n }\n}\n"],"names":["React","cloneResponse","InvariantError","simpleCacheKey","generateCacheKey","request","JSON","stringify","method","Array","from","headers","entries","mode","redirect","credentials","referrer","referrerPolicy","integrity","createDedupeFetch","originalFetch","getCacheEntries","cache","url","dedupeFetch","resource","options","signal","cacheKey","URL","Request","keepalive","cacheEntries","i","j","length","key","promise","then","response","cloned1","cloned2","entry","push"],"mappings":"AAAA;;CAEC,GACD,YAAYA,WAAW,QAAO;AAC9B,SAASC,aAAa,QAAQ,mBAAkB;AAChD,SAASC,cAAc,QAAQ,mCAAkC;AAEjE,MA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