rag-context-optimizer / frontend /node_modules /next /dist /esm /client /request /params.browser.prod.js
Download frontend/node_modules/next/dist/esm/client/request/params.browser.prod.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 1.32 kB
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/esm/client/request/params.browser.prod.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/esm/client/request/params.browser.prod.js
-
curl -L -o params.browser.prod.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/esm/client/request/params.browser.prod.js
1.32 kB
| import { wellKnownProperties } from '../../shared/lib/utils/reflect-utils'; | |
| const CachedParams = new WeakMap(); | |
| function makeUntrackedExoticParams(underlyingParams) { | |
| const cachedParams = CachedParams.get(underlyingParams); | |
| if (cachedParams) { | |
| return cachedParams; | |
| } | |
| const promise = Promise.resolve(underlyingParams); | |
| CachedParams.set(underlyingParams, promise); | |
| Object.keys(underlyingParams).forEach((prop)=>{ | |
| if (wellKnownProperties.has(prop)) { | |
| // These properties cannot be shadowed because they need to be the | |
| // true underlying value for Promises to work correctly at runtime | |
| } else { | |
| ; | |
| promise[prop] = underlyingParams[prop]; | |
| } | |
| }); | |
| return promise; | |
| } | |
| function makeUntrackedParams(underlyingParams) { | |
| const cachedParams = CachedParams.get(underlyingParams); | |
| if (cachedParams) { | |
| return cachedParams; | |
| } | |
| const promise = Promise.resolve(underlyingParams); | |
| CachedParams.set(underlyingParams, promise); | |
| return promise; | |
| } | |
| export function createRenderParamsFromClient(clientParams) { | |
| if (process.env.__NEXT_CACHE_COMPONENTS) { | |
| return makeUntrackedParams(clientParams); | |
| } | |
| return makeUntrackedExoticParams(clientParams); | |
| } | |
| //# sourceMappingURL=params.browser.prod.js.map |