Versions 28 to 29
Lines 3–9 at 29 (were 3–9 at 28)
44
6−import { mkdtempSync, rmSync, writeFileSync } from "node:fs";
Lines 43–62 at 29 (were 43–48 at 28)
46+ // Issue 8 carries an svg-drawn image on itself and again on a comment, plus one more on the comment.
51+ comments: [{ attachments: [logo, { id: "a00000000000c", name: "after.png", type: "image/png", size: 13 }] }],
59+ return res.writeHead(200, { "content-type": "image/png" }).end(`${served[1]}${served[2] ?? ""}`);
Lines 156–184 at 29 (were 142–147 at 28)
144158
159+ it("--save-attachments saves each attachment once, an svg's own file too, outside the folder", async () => {
166+ assert.deepEqual(names, ["a00000000000b-logo.svg", "a00000000000b-shot_one.png", "a00000000000c-after.png"]);
167+ assert.equal(readFileSync(join(out, "images", "a00000000000b-logo.svg"), "utf8"), "a00000000000b/source");
168+ assert.equal(readFileSync(join(out, "images", "a00000000000c-after.png"), "utf8"), "a00000000000c");
181+
- MCP
- compare on this site's /mcp
- CLI
- abso diff 28 29 client/test/attach.test.ts --json
- JSON
- /christopher/abso-core/compare/28..29?file=client%2Ftest%2Fattach.test.ts&format=json