From 8f55dd857ea7abe7d58639cd57a31cd25719c1c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20B=C3=B6hm?= <188768+fb55@users.noreply.github.com> Date: Mon, 17 May 2021 14:41:15 +0100 Subject: [PATCH] fix: Rename parser adapter files (#1873) Fixes #1847 --- src/parse.ts | 4 ++-- src/parsers/{htmlparser2.ts => htmlparser2-adapter.ts} | 0 src/parsers/{parse5.ts => parse5-adapter.ts} | 0 src/static.ts | 4 ++-- 4 files changed, 4 insertions(+), 4 deletions(-) rename src/parsers/{htmlparser2.ts => htmlparser2-adapter.ts} (100%) rename src/parsers/{parse5.ts => parse5-adapter.ts} (100%) diff --git a/src/parse.ts b/src/parse.ts index 0b2f741b9c..9d57d30d2c 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -1,6 +1,6 @@ import { DomUtils } from 'htmlparser2'; -import { parse as parseWithHtmlparser2 } from './parsers/htmlparser2'; -import { parse as parseWithParse5 } from './parsers/parse5'; +import { parse as parseWithHtmlparser2 } from './parsers/htmlparser2-adapter'; +import { parse as parseWithParse5 } from './parsers/parse5-adapter'; import { Node, Document, diff --git a/src/parsers/htmlparser2.ts b/src/parsers/htmlparser2-adapter.ts similarity index 100% rename from src/parsers/htmlparser2.ts rename to src/parsers/htmlparser2-adapter.ts diff --git a/src/parsers/parse5.ts b/src/parsers/parse5-adapter.ts similarity index 100% rename from src/parsers/parse5.ts rename to src/parsers/parse5-adapter.ts diff --git a/src/static.ts b/src/static.ts index 71e2b94c40..b7bc4b463c 100644 --- a/src/static.ts +++ b/src/static.ts @@ -8,8 +8,8 @@ import { } from './options'; import { select } from 'cheerio-select'; import { ElementType, DomUtils } from 'htmlparser2'; -import { render as renderWithParse5 } from './parsers/parse5'; -import { render as renderWithHtmlparser2 } from './parsers/htmlparser2'; +import { render as renderWithParse5 } from './parsers/parse5-adapter'; +import { render as renderWithHtmlparser2 } from './parsers/htmlparser2-adapter'; /** * Helper function to render a DOM.