Versions 175 to 318
Lines 49–59 at 318 (were 49–57 at 175)
5050
52− * What a reader may not do. Edits and records (which old edit mods send on
53− * their own) and publishes answer 200 {ok: false, reason}, so a mod only logs
54− * it; the rest are refused outright.
Lines 318–324 at 318 (were 316–322 at 175)
316318 return { status: 200, body: history.blame(q.file, num(q.from), num(q.to), num(q.version), draft, who) };
319− return { status: 200, body: history.why(q.file, line, draft, who) };
Lines 352–368 at 318 (were 350–355 at 175)
350352 const limit = q.limit !== undefined && Number.isInteger(Number(q.limit)) ? Number(q.limit) : undefined;
356+ // GET ?version=<n>&versions=<n,n>: version n of shared with those versions left out (without.ts).
360+ const version = q.version !== undefined && /^\d+$/.test(q.version) ? Number(q.version) : undefined;
362+ if (version === undefined || versions.length === 0 || versions.some((s) => !/^\s*\d+\s*$/.test(s)))
354367 // GETs: ?draft=<name> (shared when absent); log ?limit, ?path; show ?version; file ?path, ?version; compare ?from, ?to.
Lines 394–401 at 318 (were 381–387 at 175)
383396 if (from === undefined || to === undefined) return fail(400, "compare needs ?from=<number>&to=<number>");
384− return { status: 200, body: history.compare(from, to, draft, who) };
387401 if (q.version === undefined || !Number.isInteger(version)) return fail(400, "show needs ?version=<number>");
- MCP
- compare on this site's /mcp
- CLI
- abso diff 175 318 worker/project/http.ts --json
- JSON
- /christopher/abso-core/compare/175..318?file=worker%2Fproject%2Fhttp.ts&format=json