mirror of
https://github.com/txtdot/txtdot
synced 2024-10-18 14:40:19 +03:00
Rearranged imports
This commit is contained in:
parent
7f6b7c2215
commit
b31bbc547e
@ -5,6 +5,9 @@ import axios from "../types/axios";
|
|||||||
import micromatch from "micromatch";
|
import micromatch from "micromatch";
|
||||||
|
|
||||||
import { JSDOM } from "jsdom";
|
import { JSDOM } from "jsdom";
|
||||||
|
import DOMPurify from "dompurify";
|
||||||
|
|
||||||
|
import { Readable } from "stream";
|
||||||
|
|
||||||
import readability from "./readability";
|
import readability from "./readability";
|
||||||
import google, { GoogleDomains } from "./google";
|
import google, { GoogleDomains } from "./google";
|
||||||
@ -14,10 +17,8 @@ import isLocalResource from "../utils/islocal";
|
|||||||
|
|
||||||
import { LocalResourceError, NotHtmlMimetypeError } from "../errors/main";
|
import { LocalResourceError, NotHtmlMimetypeError } from "../errors/main";
|
||||||
import { HandlerInput } from "./handler-input";
|
import { HandlerInput } from "./handler-input";
|
||||||
import { Readable } from "stream";
|
|
||||||
import { decodeStream, parseEncodingName } from "../utils/http";
|
import { decodeStream, parseEncodingName } from "../utils/http";
|
||||||
import replaceHref from "../utils/replace-href";
|
import replaceHref from "../utils/replace-href";
|
||||||
import DOMPurify from "dompurify";
|
|
||||||
|
|
||||||
export default async function handlePage(
|
export default async function handlePage(
|
||||||
url: string, // remote URL
|
url: string, // remote URL
|
||||||
|
Loading…
Reference in New Issue
Block a user