rag-context-optimizer / frontend /node_modules /next /dist /server /lib /decode-query-path-parameter.js
Download frontend/node_modules/next/dist/server/lib/decode-query-path-parameter.js from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/server/lib/decode-query-path-parameter.js
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/server/lib/decode-query-path-parameter.js
-
curl -L -o decode-query-path-parameter.js https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/server/lib/decode-query-path-parameter.js
688 Bytes
| /** | |
| * Decodes a query path parameter. | |
| * | |
| * @param value - The value to decode. | |
| * @returns The decoded value. | |
| */ "use strict"; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| Object.defineProperty(exports, "decodeQueryPathParameter", { | |
| enumerable: true, | |
| get: function() { | |
| return decodeQueryPathParameter; | |
| } | |
| }); | |
| function decodeQueryPathParameter(value) { | |
| // When deployed to Vercel, the value may be encoded, so this attempts to | |
| // decode it and returns the original value if it fails. | |
| try { | |
| return decodeURIComponent(value); | |
| } catch { | |
| return value; | |
| } | |
| } | |
| //# sourceMappingURL=decode-query-path-parameter.js.map |