Closed sepehr-safari closed 9 months ago
You may also find this useful: https://gitlab.com/soapbox-pub/ditto/-/blob/main/src/utils/nip98.ts?ref_type=heads
Some of the code in this repo is hard to trust without zod, and I end up rewriting it.
You may also find this useful: https://gitlab.com/soapbox-pub/ditto/-/blob/main/src/utils/nip98.ts?ref_type=heads
Some of the code in this repo is hard to trust without zod, and I end up rewriting it.
I could help adding Zod to nostr-tools, generally, if it was planned.
urlTag?.length !== 1 && urlTag?.[1] !== url
that "length !== 1" doesn't make sense.Boolean(body) && Object.keys(body).length > 0
that would fail in non-object inputs.