From 06634865ba92ac703757195b45c61b50d9c9581f Mon Sep 17 00:00:00 2001 From: Giga Alqeeq <52905881+giga-a@users.noreply.github.com> Date: Tue, 13 May 2025 09:59:25 -0700 Subject: [PATCH] Revert "Fix for cheerio module error" --- modules/extraction.js | 2 +- modules/fast-scan.js | 2 +- modules/helper.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/extraction.js b/modules/extraction.js index ec6074d8..2e5f1ae2 100755 --- a/modules/extraction.js +++ b/modules/extraction.js @@ -1,5 +1,5 @@ import helper from './helper.js' -import * as cheerio from 'cheerio' +import cheerio from 'cheerio' const strings_meta = new RegExp('regionsAllowed|width|height|color|rgba\\(|charset|viewport|refresh|equiv', 'i') diff --git a/modules/fast-scan.js b/modules/fast-scan.js index 418d21ea..2087e0c5 100755 --- a/modules/fast-scan.js +++ b/modules/fast-scan.js @@ -3,7 +3,7 @@ import extraction from './extraction.js' import async from 'async' import sanitizeHtml from 'sanitize-html' import {convert} from 'html-to-text' -import * as cheerio from 'cheerio' +import cheerio from 'cheerio' import engine from './engine.js' async function find_username_normal (req) { diff --git a/modules/helper.js b/modules/helper.js index 1a867e97..00779041 100755 --- a/modules/helper.js +++ b/modules/helper.js @@ -64,7 +64,7 @@ import fs from 'fs' import url from 'url' import {franc} from 'franc' import langs from 'langs' -import * as cheerio from 'cheerio' +import cheerio from 'cheerio' import path from 'path' import slash from 'slash' import colors from 'colors/safe.js'