From ccf5167d4ddb22fabd2e302d56b0543a404be9a3 Mon Sep 17 00:00:00 2001 From: HoJeong Go Date: Thu, 28 Nov 2024 11:35:33 +0100 Subject: [PATCH] chore: export referenceable components (#4476) refs #4465 --- packages/adblocker/src/index.ts | 3 ++- packages/adblocker/src/lists.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/adblocker/src/index.ts b/packages/adblocker/src/index.ts index 99f9b0fa7f..df3f710eef 100644 --- a/packages/adblocker/src/index.ts +++ b/packages/adblocker/src/index.ts @@ -23,6 +23,7 @@ export type { } from './request.js'; export { default as CosmeticFilter } from './filters/cosmetic.js'; export { default as NetworkFilter } from './filters/network.js'; +export { default as Preprocessor } from './preprocessor.js'; export { FilterType, detectFilterType, @@ -33,7 +34,7 @@ export { parseFilter, parseFilters, } from './lists.js'; -export type { IListDiff, IRawDiff } from './lists.js'; +export type { IListDiff, IRawDiff, NonSupportedFilter } from './lists.js'; export * from './fetch.js'; export { hasUnicode, tokenizeNoSkip as tokenize } from './utils.js'; export { isUTF8 } from './encoding.js'; diff --git a/packages/adblocker/src/lists.ts b/packages/adblocker/src/lists.ts index 9a7ebb63c5..c29f1c8a96 100644 --- a/packages/adblocker/src/lists.ts +++ b/packages/adblocker/src/lists.ts @@ -153,7 +153,7 @@ export function f(strings: TemplateStringsArray): NetworkFilter | CosmeticFilter return parseFilter(strings[0]); } -interface NonSupportedFilter { +export interface NonSupportedFilter { lineNumber: number; filter: string; filterType: FilterType;