refactor(hashline-edit): remove unnecessary barrel re-exports of internal primitives
applySetLine, applyReplaceLines, applyInsertAfter, applyInsertBefore were re-exported from both edit-operations.ts and index.ts but have no external consumers — they are only used internally within the module. Only applyHashlineEdits (the public API) remains exported.
This commit is contained in:
parent
d28ebd10c1
commit
9a2e0f1add
@ -1,6 +1,6 @@
|
|||||||
import { describe, expect, it } from "bun:test"
|
import { describe, expect, it } from "bun:test"
|
||||||
import { applyHashlineEdits, applyInsertAfter, applyReplaceLines, applySetLine } from "./edit-operations"
|
import { applyHashlineEdits } from "./edit-operations"
|
||||||
import { applyAppend, applyPrepend } from "./edit-operation-primitives"
|
import { applyAppend, applyInsertAfter, applyPrepend, applyReplaceLines, applySetLine } from "./edit-operation-primitives"
|
||||||
import { computeLineHash } from "./hash-computation"
|
import { computeLineHash } from "./hash-computation"
|
||||||
import type { HashlineEdit } from "./types"
|
import type { HashlineEdit } from "./types"
|
||||||
|
|
||||||
|
|||||||
@ -88,9 +88,3 @@ export function applyHashlineEdits(content: string, edits: HashlineEdit[]): stri
|
|||||||
return applyHashlineEditsWithReport(content, edits).content
|
return applyHashlineEditsWithReport(content, edits).content
|
||||||
}
|
}
|
||||||
|
|
||||||
export {
|
|
||||||
applySetLine,
|
|
||||||
applyReplaceLines,
|
|
||||||
applyInsertAfter,
|
|
||||||
applyInsertBefore,
|
|
||||||
} from "./edit-operation-primitives"
|
|
||||||
|
|||||||
@ -16,9 +16,5 @@ export type {
|
|||||||
export { NIBBLE_STR, HASHLINE_DICT, HASHLINE_REF_PATTERN, HASHLINE_OUTPUT_PATTERN } from "./constants"
|
export { NIBBLE_STR, HASHLINE_DICT, HASHLINE_REF_PATTERN, HASHLINE_OUTPUT_PATTERN } from "./constants"
|
||||||
export {
|
export {
|
||||||
applyHashlineEdits,
|
applyHashlineEdits,
|
||||||
applyInsertAfter,
|
|
||||||
applyInsertBefore,
|
|
||||||
applyReplaceLines,
|
|
||||||
applySetLine,
|
|
||||||
} from "./edit-operations"
|
} from "./edit-operations"
|
||||||
export { createHashlineEditTool } from "./tools"
|
export { createHashlineEditTool } from "./tools"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user