Commit Graph

14 Commits

Author SHA1 Message Date
Alex Gleason 718032022c
just format 2023-08-31 13:42:15 -05:00
Alex Gleason 08885ab8da Refactor imports: use file extension, improve tree shaking, update tests 2023-05-12 17:03:41 -03:00
Alex Gleason 6a07d2d9d3 nip05: fix not calling underscored fetch 2023-05-07 21:18:22 -03:00
Alex Gleason 341ccc5ac5 nip05: move NIP05Result to the bottom, add another test 2023-05-07 21:18:22 -03:00
Alex Gleason d2a9af2586 nip05 refactoring 2023-05-07 21:18:22 -03:00
channelninja 731705047a fix(nip05): allow dot in name 2023-04-09 19:32:58 -03:00
fiatjaf 63cbc4133a
nip05 domain must have a dot. 2023-03-02 21:32:53 -03:00
fiatjaf 086f8830e3
catch fetch error on nip05. 2023-03-02 08:21:17 -03:00
Luis Miguel 61f397463d nip05 supports uppercase
nip05 says `NIP-05 assumes the <local-part> part will be restricted to the characters a-z0-9-_., case insensitive`

So a lot of people is starting the names with uppercase. See here:

`https://nostr-check.com/.well-known/nostr.json`

So I think we should change the regex to accept lowercase or uppercase.

Another way to do it would be to do a `.toLowerCase` at the beginning, but then we would need to do this search ignoring the case:

```
if (!res?.names?.[name])
```

So maybe for now this is enough?
2023-01-31 10:22:11 -03:00
fiatjaf f7e510e1c8
nip05 regex name check. 2022-12-23 15:04:24 -03:00
fiatjaf c08bdac7a7
catch usage of global fetch for nodejs.
fixes https://github.com/fiatjaf/nostr-tools/issues/53
2022-12-23 11:36:37 -03:00
fiatjaf 3f1025f551
nip05.queryProfile() and test. 2022-12-20 18:36:49 -03:00
fiatjaf 72781e0eab
nip05 typescript fixes. 2022-12-20 16:16:59 -03:00
fiatjaf de8bdd8370
fix typescript types everywhere, delete pool.js and refactor relay.js to use event listeners everywhere. 2022-12-18 17:02:19 -03:00