Suite of AT Protocol TypeScript libraries built on web standards
21
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: no root export of parseCidSafe

+3 -7
+1 -1
lex/deno.json
··· 1 1 { 2 2 "name": "@atp/lex", 3 - "version": "0.1.0-alpha.7", 3 + "version": "0.1.0-alpha.8", 4 4 "exports": { 5 5 ".": "./mod.ts", 6 6 "./cbor": "./cbor/mod.ts",
-1
lex/mod.ts
··· 2 2 3 3 export { l }; 4 4 export * from "./external.ts"; 5 - export { type CidParseOptions, parseCidSafe } from "./data/cid.ts"; 6 5 export * from "./json/mod.ts"; 7 6 8 7 if (import.meta.main) {
+2 -5
lex/tests/cid_test.ts
··· 1 - import { parseCidSafe } from "@atp/lex"; 2 1 import { parseCidSafe as parseCidSafeFromData } from "@atp/lex/data"; 3 2 import { assertEquals } from "@std/assert"; 4 3 5 4 const VALID_CID = "bafyreidfayvfuwqa7qlnopdjiqrxzs6blmoeu4rujcjtnci5beludirz2a"; 6 5 7 - Deno.test("safe CID parsers return parsed CID for valid input", () => { 8 - assertEquals(parseCidSafe(VALID_CID)?.toString(), VALID_CID); 6 + Deno.test("parseCidSafe returns parsed CID for valid input", () => { 9 7 assertEquals(parseCidSafeFromData(VALID_CID)?.toString(), VALID_CID); 10 8 }); 11 9 12 - Deno.test("safe CID parsers return null for invalid input", () => { 13 - assertEquals(parseCidSafe("not-a-cid"), null); 10 + Deno.test("parseCidSafe returns null for invalid input", () => { 14 11 assertEquals(parseCidSafeFromData("not-a-cid"), null); 15 12 });