Spaces:
Running
Running
Download node_modules/next/dist/server/lib/decode-query-path-parameter.js from cafe3310/ling-open-studio: direct link, hf CLI and curl.
- Browser
- Download file 688 Bytes
-
https://huggingface.co/spaces/cafe3310/ling-open-studio/resolve/main/node_modules/next/dist/server/lib/decode-query-path-parameter.js
- Command line
-
hf download hf://spaces/cafe3310/ling-open-studio/node_modules/next/dist/server/lib/decode-query-path-parameter.js
-
curl -L -o decode-query-path-parameter.js https://huggingface.co/spaces/cafe3310/ling-open-studio/resolve/main/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 |