From d5d5780d02c919f91c548e222d07ce0d9d8d154a Mon Sep 17 00:00:00 2001 From: 3y3 <3y3@ya.ru> Date: Tue, 9 Jul 2024 10:35:43 +0300 Subject: [PATCH] feat: Expose CriticalProcessingError --- src/consumer/index.ts | 2 ++ src/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/consumer/index.ts b/src/consumer/index.ts index d5062f8..88ebe72 100644 --- a/src/consumer/index.ts +++ b/src/consumer/index.ts @@ -3,6 +3,8 @@ import {dropUselessTokens, eruler, gobble} from './utils'; import {split} from './split'; import {CriticalProcessingError} from './error'; +export {CriticalProcessingError}; + const replace = (from: number, to: number, source: string, past: string) => { const start = source.slice(0, from); const end = source.slice(to); diff --git a/src/index.ts b/src/index.ts index 83ecf9a..a4a167f 100644 --- a/src/index.ts +++ b/src/index.ts @@ -3,3 +3,4 @@ export type {ExtractOptions, ComposeOptions} from './api'; export {extract, compose} from './api'; export {linkRefs, unlinkRefs} from './json'; +export {CriticalProcessingError} from './consumer';