Spaces:
Running
Running
Download node_modules/next/dist/server/api-utils/get-cookie-parser.js from cafe3310/ling-open-studio: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/spaces/cafe3310/ling-open-studio/resolve/main/node_modules/next/dist/server/api-utils/get-cookie-parser.js
- Command line
-
hf download hf://spaces/cafe3310/ling-open-studio/node_modules/next/dist/server/api-utils/get-cookie-parser.js
-
curl -L -o get-cookie-parser.js https://huggingface.co/spaces/cafe3310/ling-open-studio/resolve/main/node_modules/next/dist/server/api-utils/get-cookie-parser.js
599 Bytes
| ; | |
| Object.defineProperty(exports, "__esModule", { | |
| value: true | |
| }); | |
| Object.defineProperty(exports, "getCookieParser", { | |
| enumerable: true, | |
| get: function() { | |
| return getCookieParser; | |
| } | |
| }); | |
| function getCookieParser(headers) { | |
| return function parseCookie() { | |
| const { cookie } = headers; | |
| if (!cookie) { | |
| return {}; | |
| } | |
| const { parse: parseCookieFn } = require('next/dist/compiled/cookie'); | |
| return parseCookieFn(Array.isArray(cookie) ? cookie.join('; ') : cookie); | |
| }; | |
| } | |
| //# sourceMappingURL=get-cookie-parser.js.map |