(domain: string)
| 60 | } |
| 61 | |
| 62 | async function getSetCookies(domain: string) { |
| 63 | const href = url.format({ hostname: domain, protocol: "http" }); |
| 64 | const res = await get(href); |
| 65 | return res.headers.getSetCookie(); |
| 66 | } |
| 67 | |
| 68 | function toCookies(setCookies: string[]) { |
| 69 | return setCookies.map((c) => c.split(";")[0]); |
no test coverage detected
searching dependent graphs…