Skip to content

Commit e700166

Browse files
committed
Use correct import paths
1 parent 32ad76c commit e700166

File tree

2 files changed

+13
-15
lines changed

2 files changed

+13
-15
lines changed

package/src/fetchers.ts

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { toDebug, toLog } from './index'
1+
import { toDebug, toLog } from "./helpers"
22

33
interface fetchHtmlResponse {
44
html?: string
@@ -13,19 +13,18 @@ export interface Manifest {
1313
}[]
1414
}
1515

16-
const turnstileTitle = '<title>Just a moment...</title>'
16+
const turnstileTitle = "<title>Just a moment...</title>"
1717

1818
const headers: HeadersInit = {
19-
'Cache-Control': 'max-age=0',
20-
'Accept-Language': 'en-US;q=0.9,en;q=0.7',
21-
'Sec-Ch-Ua': '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
22-
'Sec-Ch-Ua-Mobile': '?0',
23-
'Sec-Ch-Ua-Platform': '"macOS"',
24-
'Sec-Fetch-Dest': 'document',
25-
'Sec-Fetch-Site': 'none',
26-
'Sec-Fetch-User': '?1',
27-
'User-Agent':
28-
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36',
19+
"Cache-Control": "max-age=0",
20+
"Accept-Language": "en-US;q=0.9,en;q=0.7",
21+
"Sec-Ch-Ua": '"Not.A/Brand";v="8", "Chromium";v="114", "Google Chrome";v="114"',
22+
"Sec-Ch-Ua-Mobile": "?0",
23+
"Sec-Ch-Ua-Platform": '"macOS"',
24+
"Sec-Fetch-Dest": "document",
25+
"Sec-Fetch-Site": "none",
26+
"Sec-Fetch-User": "?1",
27+
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
2928
}
3029

3130
export async function fetchHtml(url: string): Promise<fetchHtmlResponse> {
@@ -42,7 +41,7 @@ export async function fetchHtml(url: string): Promise<fetchHtmlResponse> {
4241
const isRedirect = resp.redirected
4342

4443
if (isCaptcha) {
45-
toDebug('html', html)
44+
toDebug("html", html)
4645
return { captchaProtected: true }
4746
}
4847

package/src/parsers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { toDebug, toLog } from "./index"
2-
import { sizesToNumber } from "./helpers"
1+
import { sizesToNumber, toDebug, toLog } from "./helpers"
32
import type { Manifest } from "./fetchers"
43

54
export interface Icon {

0 commit comments

Comments
 (0)