From 21bd39426ae2446d350212656fb1bb505b69dae2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20BECHER?= Date: Sun, 19 May 2024 00:29:36 +0200 Subject: [PATCH] remove default exports --- src/index.ts | 2 +- src/pattern.ts | 2 +- src/placeholder.ts | 5 ++--- src/string-section.ts | 2 +- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index 7dbf8cc..41473db 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -export { PlaceholderOptions, PlaceholderSubstitutor } from "./placeholder.js"; +export * from "./placeholder.js"; export * from "./pattern.js"; export * as VariableResolvers from "./resolver/index.js"; export * from "./resolver/types.js"; diff --git a/src/pattern.ts b/src/pattern.ts index 8f3228d..e6a3541 100644 --- a/src/pattern.ts +++ b/src/pattern.ts @@ -1,4 +1,4 @@ -export default class PlaceholderPattern { +export class PlaceholderPattern { readonly #prefix: string; readonly #suffix: string; diff --git a/src/placeholder.ts b/src/placeholder.ts index 844fa18..2a7e082 100644 --- a/src/placeholder.ts +++ b/src/placeholder.ts @@ -1,12 +1,11 @@ import { AbortSubstitutionException, PlaceholderException } from "./exceptions.js"; -import PlaceholderPattern from "./pattern.js"; +import { PlaceholderPattern } from "./pattern.js"; import { EMPTY as emptyResolver } from "./resolver/index.js"; import { VariableResolver } from "./resolver/types.js"; -import StringSection from "./string-section.js"; +import { StringSection } from "./string-section.js"; import { UnknownVariableHandler } from "./unknown-variable-handler/types.js"; import { isDefined, Nullable } from "./utils.js"; - export type PlaceholderOptions = { pattern?: PlaceholderPattern; escapeChar?: string; diff --git a/src/string-section.ts b/src/string-section.ts index c9f0d77..d19fade 100644 --- a/src/string-section.ts +++ b/src/string-section.ts @@ -1,4 +1,4 @@ -export default class StringSection { +export class StringSection { readonly #parent: string; readonly #offset: number; readonly #length: number;