@oh-my-pi/hashline 16.3.5 → 16.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/apply.d.ts +1 -1
- package/dist/types/block.d.ts +1 -1
- package/dist/types/diff-preview.d.ts +1 -1
- package/dist/types/format.d.ts +1 -1
- package/dist/types/fs.d.ts +1 -1
- package/dist/types/index.d.ts +17 -17
- package/dist/types/input.d.ts +1 -1
- package/dist/types/parser.d.ts +2 -2
- package/dist/types/patcher.d.ts +6 -6
- package/dist/types/recovery.d.ts +2 -2
- package/dist/types/stream.d.ts +1 -1
- package/dist/types/tokenizer.d.ts +2 -2
- package/package.json +1 -1
package/dist/types/apply.d.ts
CHANGED
package/dist/types/block.d.ts
CHANGED
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* This is intentionally decoupled from the diff producer: anything that
|
|
11
11
|
* emits the `<sign><lineNum>|<content>` shape works.
|
|
12
12
|
*/
|
|
13
|
-
import type { CompactDiffOptions, CompactDiffPreview } from "./types";
|
|
13
|
+
import type { CompactDiffOptions, CompactDiffPreview } from "./types.js";
|
|
14
14
|
export declare function buildCompactDiffPreview(diff: string, options?: CompactDiffOptions): CompactDiffPreview;
|
package/dist/types/format.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* display helpers. These are the single source of truth for the parser, the
|
|
4
4
|
* tokenizer, the prompt, and the formal grammar.
|
|
5
5
|
*/
|
|
6
|
-
import type { Cursor } from "./types";
|
|
6
|
+
import type { Cursor } from "./types.js";
|
|
7
7
|
/** File-section header delimiters: `[path#hash]`. */
|
|
8
8
|
export declare const HL_FILE_PREFIX = "[";
|
|
9
9
|
export declare const HL_FILE_SUFFIX = "]";
|
package/dist/types/fs.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export interface WriteResult {
|
|
|
7
7
|
/** Final text that was persisted. May differ from the input if the FS transformed it. */
|
|
8
8
|
text: string;
|
|
9
9
|
}
|
|
10
|
-
import type { FileOp } from "./types";
|
|
10
|
+
import type { FileOp } from "./types.js";
|
|
11
11
|
/** Optional hints for {@link Filesystem.preflightWrite}. */
|
|
12
12
|
export interface PreflightWriteOptions {
|
|
13
13
|
fileOp?: FileOp;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export * from "./apply";
|
|
2
|
-
export * from "./block";
|
|
3
|
-
export * from "./diff-preview";
|
|
4
|
-
export * from "./format";
|
|
5
|
-
export * from "./fs";
|
|
6
|
-
export * from "./input";
|
|
7
|
-
export * from "./messages";
|
|
8
|
-
export * from "./mismatch";
|
|
9
|
-
export * from "./normalize";
|
|
10
|
-
export * from "./parser";
|
|
11
|
-
export * from "./patcher";
|
|
12
|
-
export * from "./prefixes";
|
|
13
|
-
export * from "./recovery";
|
|
14
|
-
export * from "./snapshots";
|
|
15
|
-
export * from "./stream";
|
|
16
|
-
export * from "./tokenizer";
|
|
17
|
-
export * from "./types";
|
|
1
|
+
export * from "./apply.js";
|
|
2
|
+
export * from "./block.js";
|
|
3
|
+
export * from "./diff-preview.js";
|
|
4
|
+
export * from "./format.js";
|
|
5
|
+
export * from "./fs.js";
|
|
6
|
+
export * from "./input.js";
|
|
7
|
+
export * from "./messages.js";
|
|
8
|
+
export * from "./mismatch.js";
|
|
9
|
+
export * from "./normalize.js";
|
|
10
|
+
export * from "./parser.js";
|
|
11
|
+
export * from "./patcher.js";
|
|
12
|
+
export * from "./prefixes.js";
|
|
13
|
+
export * from "./recovery.js";
|
|
14
|
+
export * from "./snapshots.js";
|
|
15
|
+
export * from "./stream.js";
|
|
16
|
+
export * from "./tokenizer.js";
|
|
17
|
+
export * from "./types.js";
|
package/dist/types/input.d.ts
CHANGED
package/dist/types/parser.d.ts
CHANGED
package/dist/types/patcher.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Filesystem } from "./fs";
|
|
2
|
-
import type { Patch, PatchSection } from "./input";
|
|
3
|
-
import { type LineEnding } from "./normalize";
|
|
4
|
-
import { Recovery } from "./recovery";
|
|
5
|
-
import type { SnapshotStore } from "./snapshots";
|
|
6
|
-
import type { ApplyResult, BlockResolution, BlockResolver, FileOp } from "./types";
|
|
1
|
+
import type { Filesystem } from "./fs.js";
|
|
2
|
+
import type { Patch, PatchSection } from "./input.js";
|
|
3
|
+
import { type LineEnding } from "./normalize.js";
|
|
4
|
+
import { Recovery } from "./recovery.js";
|
|
5
|
+
import type { SnapshotStore } from "./snapshots.js";
|
|
6
|
+
import type { ApplyResult, BlockResolution, BlockResolver, FileOp } from "./types.js";
|
|
7
7
|
export interface PatcherOptions {
|
|
8
8
|
/** Storage backend used for all reads and writes. */
|
|
9
9
|
fs: Filesystem;
|
package/dist/types/recovery.d.ts
CHANGED
package/dist/types/stream.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { StreamOptions } from "./types";
|
|
1
|
+
import type { StreamOptions } from "./types.js";
|
|
2
2
|
export declare function streamHashLines(source: ReadableStream<Uint8Array> | AsyncIterable<Uint8Array>, options?: StreamOptions): AsyncGenerator<string>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Anchor, Cursor, ParsedRange } from "./types";
|
|
1
|
+
import type { Anchor, Cursor, ParsedRange } from "./types.js";
|
|
2
2
|
export declare function splitHashlineLines(text: string): string[];
|
|
3
3
|
export declare function cloneCursor(cursor: Cursor): Cursor;
|
|
4
4
|
/** Parse a bare line-number anchor. Throws on malformed input. */
|
|
@@ -70,4 +70,4 @@ export declare class Tokenizer {
|
|
|
70
70
|
isHeader(line: string): boolean;
|
|
71
71
|
isEnvelopeMarker(line: string): boolean;
|
|
72
72
|
}
|
|
73
|
-
export type { ParsedRange } from "./types";
|
|
73
|
+
export type { ParsedRange } from "./types.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@oh-my-pi/hashline",
|
|
4
|
-
"version": "16.3.
|
|
4
|
+
"version": "16.3.7",
|
|
5
5
|
"description": "Hashline: a compact, line-anchored patch language and applier. Pluggable FS/IO so it works over disk, in-memory, or any custom backend.",
|
|
6
6
|
"homepage": "https://omp.sh",
|
|
7
7
|
"author": "Can Boluk",
|