(proxyHost: string)
| 43 | if (proxyHost === "i.pximg.net") { |
| 44 | return { |
| 45 | ...baseHeaders, |
| 46 | "Host": proxyHost, |
| 47 | "Referer": "https://www.pixiv.net/" |
| 48 | }; |
| 49 | } |
| 50 | |
| 51 | return baseHeaders; |
| 52 | }; |
| 53 | |
| 54 | const dataPath = createDirectoryInAssets("zpr"); |
| 55 | |
| 56 | async function lifecycleDelay(ms: number, label: string): Promise<void> { |
| 57 | const lifecycle = tryGetCurrentGenerationContext(); |
| 58 | if (lifecycle) { |
| 59 | await lifecycle.delay(ms, { label }); |
no outgoing calls
no test coverage detected