From 02fd5d4b820aaf07136b2e56cb08f1016f984543 Mon Sep 17 00:00:00 2001 From: Affidev Date: Sun, 11 Aug 2024 10:16:23 +0700 Subject: [PATCH] default cheerio --- packages/scraper-bmkg/src/gempa.ts | 2 +- packages/scraper-bmkg/src/tsunami.ts | 2 +- packages/scraper-facebook/src/facebook-v1.ts | 2 +- packages/scraper-googleit/src/google-it.ts | 2 +- packages/scraper-images/src/google-image.ts | 2 +- packages/scraper-images/src/pinterest.ts | 2 +- packages/scraper-images/src/sticker-telegram.ts | 2 +- packages/scraper-images/src/wallpaper.ts | 2 +- packages/scraper-instagram/src/instagramdl-v1.ts | 2 +- packages/scraper-instagram/src/instagramstory-v1.ts | 2 +- packages/scraper-lyrics/src/lyrics-v1.ts | 2 +- packages/scraper-lyrics/src/lyrics-v2.ts | 2 +- packages/scraper-mediafire/src/mediafire-dl.ts | 2 +- packages/scraper-news/src/antaranews.ts | 2 +- packages/scraper-news/src/cnbcindonesia.ts | 2 +- packages/scraper-news/src/kompas.ts | 2 +- packages/scraper-news/src/liputan6.ts | 2 +- packages/scraper-news/src/merdeka.ts | 2 +- packages/scraper-news/src/suaracom.ts | 2 +- packages/scraper-others/src/KBBI.ts | 2 +- packages/scraper-others/src/bioskop.ts | 2 +- packages/scraper-others/src/chord.ts | 2 +- packages/scraper-others/src/jadwal-tv.ts | 2 +- packages/scraper-others/src/kodepos.ts | 2 +- packages/scraper-religions/src/jadwalsholat.ts | 2 +- packages/scraper-sfilemobi/src/sfilemobi-dl.ts | 2 +- packages/scraper-sfilemobi/src/sfilemobi-search.ts | 2 +- packages/scraper-snapsave/src/snapsave.ts | 2 +- packages/scraper-tiktok/src/tiktok-v1.ts | 2 +- packages/scraper-twitter/src/twitter-v1.ts | 2 +- packages/scraper-wikipedia/src/wikipedia.ts | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/packages/scraper-bmkg/src/gempa.ts b/packages/scraper-bmkg/src/gempa.ts index d85d2f00..11bf6838 100644 --- a/packages/scraper-bmkg/src/gempa.ts +++ b/packages/scraper-bmkg/src/gempa.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Gempa, GempaNow, GempaNowSchema, GempaRealtime, GempaRealtimeSchema, GempaSchema diff --git a/packages/scraper-bmkg/src/tsunami.ts b/packages/scraper-bmkg/src/tsunami.ts index a06f4506..354a8c6d 100644 --- a/packages/scraper-bmkg/src/tsunami.ts +++ b/packages/scraper-bmkg/src/tsunami.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Tsunami, TsunamiSchema } from '../types/index.js' export default async function tsunami (): Promise { diff --git a/packages/scraper-facebook/src/facebook-v1.ts b/packages/scraper-facebook/src/facebook-v1.ts index d1ae8116..d493e199 100644 --- a/packages/scraper-facebook/src/facebook-v1.ts +++ b/packages/scraper-facebook/src/facebook-v1.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { FacebookDlArgsSchema, FacebookDlMediaSchema, FacebookDlSchema } from '../types/facebook-v1.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-googleit/src/google-it.ts b/packages/scraper-googleit/src/google-it.ts index bf0d06ca..68997466 100644 --- a/packages/scraper-googleit/src/google-it.ts +++ b/packages/scraper-googleit/src/google-it.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { GoogleItArgsSchema, GoogleItSchema, GoogleIt } from '../types/google-it.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-images/src/google-image.ts b/packages/scraper-images/src/google-image.ts index bec70cd7..292db4ef 100644 --- a/packages/scraper-images/src/google-image.ts +++ b/packages/scraper-images/src/google-image.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import got from 'got' import { GoogleImage, GoogleImageSchema } from '../types/index.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-images/src/pinterest.ts b/packages/scraper-images/src/pinterest.ts index dd6dc310..364eb4d4 100644 --- a/packages/scraper-images/src/pinterest.ts +++ b/packages/scraper-images/src/pinterest.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import got from 'got' import { Pinterest, PinterestSchema } from '../types/index.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-images/src/sticker-telegram.ts b/packages/scraper-images/src/sticker-telegram.ts index e2ee2826..d4dc7544 100644 --- a/packages/scraper-images/src/sticker-telegram.ts +++ b/packages/scraper-images/src/sticker-telegram.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import got from 'got' import { StickerTelegram, StickerTelegramSchema } from '../types/index.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-images/src/wallpaper.ts b/packages/scraper-images/src/wallpaper.ts index 57e876de..474201f5 100644 --- a/packages/scraper-images/src/wallpaper.ts +++ b/packages/scraper-images/src/wallpaper.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import got from 'got' import { WallpaperSchema } from '../types/index.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-instagram/src/instagramdl-v1.ts b/packages/scraper-instagram/src/instagramdl-v1.ts index 0823c004..ba739f5e 100644 --- a/packages/scraper-instagram/src/instagramdl-v1.ts +++ b/packages/scraper-instagram/src/instagramdl-v1.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { DEFAULT_HEADERS } from './constant.js' import { Instagramdl, diff --git a/packages/scraper-instagram/src/instagramstory-v1.ts b/packages/scraper-instagram/src/instagramstory-v1.ts index feca616f..dfd25bdc 100644 --- a/packages/scraper-instagram/src/instagramstory-v1.ts +++ b/packages/scraper-instagram/src/instagramstory-v1.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { DEFAULT_HEADERS } from './constant.js' import { InstagramStory, diff --git a/packages/scraper-lyrics/src/lyrics-v1.ts b/packages/scraper-lyrics/src/lyrics-v1.ts index 21e088e4..79260538 100644 --- a/packages/scraper-lyrics/src/lyrics-v1.ts +++ b/packages/scraper-lyrics/src/lyrics-v1.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { generateMusixmatchHash } from './util.js' import { LyricsArgsSchema } from '../types/index.js' import { diff --git a/packages/scraper-lyrics/src/lyrics-v2.ts b/packages/scraper-lyrics/src/lyrics-v2.ts index ea212b39..80f467dc 100644 --- a/packages/scraper-lyrics/src/lyrics-v2.ts +++ b/packages/scraper-lyrics/src/lyrics-v2.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { LyricsArgsSchema } from '../types/index.js' import { LyricsV2MetadataResponseSchema, diff --git a/packages/scraper-mediafire/src/mediafire-dl.ts b/packages/scraper-mediafire/src/mediafire-dl.ts index 52134a05..68237bf2 100644 --- a/packages/scraper-mediafire/src/mediafire-dl.ts +++ b/packages/scraper-mediafire/src/mediafire-dl.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { DEFAULT_HEADERS } from './constant.js' import { parseFileSize } from './util.js' import { MediafiredlArgsSchema, MediafiredlSchema } from '../types/mediafire-dl.js' diff --git a/packages/scraper-news/src/antaranews.ts b/packages/scraper-news/src/antaranews.ts index 0c2717ae..44cd5e12 100644 --- a/packages/scraper-news/src/antaranews.ts +++ b/packages/scraper-news/src/antaranews.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { AntaraNewsSchema, AntaraNews } from '../types/index.js' export default async function antaranews (): Promise { diff --git a/packages/scraper-news/src/cnbcindonesia.ts b/packages/scraper-news/src/cnbcindonesia.ts index 15732fce..e3160f17 100644 --- a/packages/scraper-news/src/cnbcindonesia.ts +++ b/packages/scraper-news/src/cnbcindonesia.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { CNBCIndonesia, CNBCIndonesiaSchema } from '../types/index.js' export default async function cnbcindonesia (): Promise { diff --git a/packages/scraper-news/src/kompas.ts b/packages/scraper-news/src/kompas.ts index 4c9456e1..ff398d2a 100644 --- a/packages/scraper-news/src/kompas.ts +++ b/packages/scraper-news/src/kompas.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Kompas, KompasSchema } from '../types/index.js' export default async function kompas (): Promise { diff --git a/packages/scraper-news/src/liputan6.ts b/packages/scraper-news/src/liputan6.ts index 74514fac..1078a377 100644 --- a/packages/scraper-news/src/liputan6.ts +++ b/packages/scraper-news/src/liputan6.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Liputan6, Liputan6Schema } from '../types/index.js' export default async function liputan6 (): Promise { diff --git a/packages/scraper-news/src/merdeka.ts b/packages/scraper-news/src/merdeka.ts index cc18e633..eabe9bda 100644 --- a/packages/scraper-news/src/merdeka.ts +++ b/packages/scraper-news/src/merdeka.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Merdeka, MerdekaSchema } from '../types/index.js' export default async function merdeka (): Promise { diff --git a/packages/scraper-news/src/suaracom.ts b/packages/scraper-news/src/suaracom.ts index 138d12f7..efcf330c 100644 --- a/packages/scraper-news/src/suaracom.ts +++ b/packages/scraper-news/src/suaracom.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Suaracom, SuaracomSchema } from '../types/index.js' export default async function suaracom (): Promise { diff --git a/packages/scraper-others/src/KBBI.ts b/packages/scraper-others/src/KBBI.ts index 70d8f0e5..0ef18b7d 100644 --- a/packages/scraper-others/src/KBBI.ts +++ b/packages/scraper-others/src/KBBI.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Kbbi, KbbiArgsSchema, KbbiSchema } from '../types/index.js' /** diff --git a/packages/scraper-others/src/bioskop.ts b/packages/scraper-others/src/bioskop.ts index b18e2c7b..681ad091 100644 --- a/packages/scraper-others/src/bioskop.ts +++ b/packages/scraper-others/src/bioskop.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { Bioskop, BioskopArgsSchema, diff --git a/packages/scraper-others/src/chord.ts b/packages/scraper-others/src/chord.ts index 02fe3020..6fbdb20e 100644 --- a/packages/scraper-others/src/chord.ts +++ b/packages/scraper-others/src/chord.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { ChordArgsSchema, Chord, ChordSchema } from '../types/index.js' export async function chord (query: string): Promise { diff --git a/packages/scraper-others/src/jadwal-tv.ts b/packages/scraper-others/src/jadwal-tv.ts index b2d89020..1be8f388 100644 --- a/packages/scraper-others/src/jadwal-tv.ts +++ b/packages/scraper-others/src/jadwal-tv.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { JadwalTV, JadwalTVArgsSchema, diff --git a/packages/scraper-others/src/kodepos.ts b/packages/scraper-others/src/kodepos.ts index c5f5349c..196cb79f 100644 --- a/packages/scraper-others/src/kodepos.ts +++ b/packages/scraper-others/src/kodepos.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { KodePosArgsSchema, KodePosSchema } from '../types/kodepos.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-religions/src/jadwalsholat.ts b/packages/scraper-religions/src/jadwalsholat.ts index 562123b2..3a5a21cd 100644 --- a/packages/scraper-religions/src/jadwalsholat.ts +++ b/packages/scraper-religions/src/jadwalsholat.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import got from 'got' import { didyoumean } from '../utils/index.js' import { diff --git a/packages/scraper-sfilemobi/src/sfilemobi-dl.ts b/packages/scraper-sfilemobi/src/sfilemobi-dl.ts index b82ebb03..cf2a9ad1 100644 --- a/packages/scraper-sfilemobi/src/sfilemobi-dl.ts +++ b/packages/scraper-sfilemobi/src/sfilemobi-dl.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { DEFAULT_HEADERS } from './constant.js' import { SfilemobidlArgsSchema, SfilemobidlSchema } from '../types/sfilemobi-dl.js' diff --git a/packages/scraper-sfilemobi/src/sfilemobi-search.ts b/packages/scraper-sfilemobi/src/sfilemobi-search.ts index 3b13aa99..87a801da 100644 --- a/packages/scraper-sfilemobi/src/sfilemobi-search.ts +++ b/packages/scraper-sfilemobi/src/sfilemobi-search.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { parseFileSize } from './util.js' import { DEFAULT_HEADERS } from './constant.js' import { SfilemobiSearch, SfilemobiSearchArgsSchema, SfilemobiSearchSchema } from '../types/sfilemobi-search.js' diff --git a/packages/scraper-snapsave/src/snapsave.ts b/packages/scraper-snapsave/src/snapsave.ts index 745efd63..bb7ea486 100644 --- a/packages/scraper-snapsave/src/snapsave.ts +++ b/packages/scraper-snapsave/src/snapsave.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import FormData from 'form-data' import { SnapSave, SnapSaveArgsSchema, SnapSaveSchema } from '../types/snapsave.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-tiktok/src/tiktok-v1.ts b/packages/scraper-tiktok/src/tiktok-v1.ts index c955a723..406b104c 100644 --- a/packages/scraper-tiktok/src/tiktok-v1.ts +++ b/packages/scraper-tiktok/src/tiktok-v1.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import { TiktokDlArgsSchema, TiktokDlSchema } from '../types/tiktok-v1.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-twitter/src/twitter-v1.ts b/packages/scraper-twitter/src/twitter-v1.ts index 3bda228b..2d2a8c90 100644 --- a/packages/scraper-twitter/src/twitter-v1.ts +++ b/packages/scraper-twitter/src/twitter-v1.ts @@ -1,5 +1,5 @@ import got from 'got' -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import FormData from 'form-data' import { TwitterDlArgsSchema, TwitterDLResponseSchema, TwitterDlSchema } from '../types/twitter-v1.js' import { DEFAULT_HEADERS } from './constant.js' diff --git a/packages/scraper-wikipedia/src/wikipedia.ts b/packages/scraper-wikipedia/src/wikipedia.ts index 05241615..f5bf2f70 100644 --- a/packages/scraper-wikipedia/src/wikipedia.ts +++ b/packages/scraper-wikipedia/src/wikipedia.ts @@ -1,4 +1,4 @@ -import cheerio from 'cheerio' +import * as cheerio from 'cheerio' import got from 'got' import { Wikipedia,