Alex Gleason
41265a19f5
event.test: tamper with things in a more evil way
2023-09-03 12:12:42 -05:00
Alex Gleason
d88761907a
verifySignature: set verifiedSymbol to false on failure, DRY return values
2023-09-02 18:08:09 -05:00
Alex Gleason
8325d4351e
just format
2023-09-02 17:40:00 -05:00
Alex Gleason
62bf592d72
finishEvent: return a VerifiedEvent
2023-09-02 17:39:35 -05:00
Alex Gleason
54f3bedf38
verifySignature: return false if the id is invalid
2023-09-02 17:39:28 -05:00
Alex Gleason
34e0ad8c41
Add a symbol to verified events
2023-09-02 18:04:10 -03:00
Egge
e9eac28bab
Added eoseSubTimeout to pool's SubscriptionOptions ( #284 )
...
* added timeout sub option
* made eoseSubTimeout optional
2023-09-01 07:50:12 -03:00
fiatjaf_
85035d61f2
Merge pull request #287 from alexgleason/prettier
...
Fix tests, format everything with prettier and enforce prettier+eslint in the CI
2023-09-01 07:48:06 -03:00
Alex Gleason
cf46560619
ci: ensure just is available to the runner
2023-08-31 13:52:56 -05:00
Alex Gleason
e7aa23cb1d
README: add a note about typescript 5.0
2023-08-31 13:51:17 -05:00
Alex Gleason
5977d68ec2
nip98.test: remove outdated/failing test
2023-08-31 13:47:16 -05:00
Alex Gleason
48767d382d
relay.test: increase querying timeout to 10s
2023-08-31 13:45:39 -05:00
Alex Gleason
718032022c
just format
2023-08-31 13:42:15 -05:00
Alex Gleason
2a70bb18ff
pool: use triple-equals
2023-08-31 13:41:40 -05:00
Alex Gleason
9effe807d1
filter: remove unused import for Kind
2023-08-31 13:41:25 -05:00
Alex Gleason
899c2bd0dc
eslint: remove conflicting generator-star-spacing rule
2023-08-31 13:41:06 -05:00
Alex Gleason
918d514a25
Upgrade all eslint deps
2023-08-31 13:37:45 -05:00
Alex Gleason
48cb9046c4
Add eslint-config-prettier to solve conflicts between prettier and eslint
2023-08-31 13:27:28 -05:00
Alex Gleason
864dd28b26
justfile: improve lint/format commands
2023-08-31 13:25:30 -05:00
Alex Gleason
fa085367c9
Add eslint to just format
2023-08-31 13:22:43 -05:00
Alex Gleason
350951b88e
Add eslint to just lint
2023-08-31 13:21:10 -05:00
Alex Gleason
c6133f7160
ci: run prettier on every commit
2023-08-31 13:14:16 -05:00
Alex Gleason
470512bbeb
prettier: increase printWidth, enable bracketSpacing, alphabetize
2023-08-31 13:00:50 -05:00
Alex Gleason
c3acb82464
Upgrade Prettier to v3.0.3
2023-08-31 12:59:54 -05:00
Alex Gleason
fc23d05764
Merge pull request #283 from jiftechnify/fix-code-samples
...
Fix code samples in README
2023-08-27 12:14:32 -05:00
jiftechnify
8296ce897c
fix a code sample in README
...
- add pool.close() usage
2023-08-28 01:54:33 +09:00
jiftechnify
3ca78c0e13
fix code samples in README
2023-08-28 01:47:35 +09:00
Alex Gleason
837a05e54d
Add kinds module to classify events by kind
2023-08-26 22:26:04 -03:00
ffaex
32fd25556b
added new event kind 1063
...
see https://github.com/nostr-protocol/nips/blob/master/94.md
v1.14.2
2023-08-21 15:03:23 -03:00
Sepehr Safari
0925f5db81
add batchedList method to SimplePool
2023-08-21 10:44:33 -03:00
fiatjaf
bce976fecd
get rid of httpmethod enum.
2023-08-16 14:07:26 -03:00
fiatjaf
45e479d7aa
let it throw.
2023-08-16 13:59:31 -03:00
Jon Staab
b92407b156
nip44 updates ( #278 )
...
Co-authored-by: Jonathan Staab <shtaab@gmail.com >
2023-08-16 13:53:37 -03:00
Pierre Buyle
2431896921
fix(nip98): Add support for HEAD, PUT, CONNECT, OPTIONS, TRACE and PATCH http methods
...
This PR adds common HTTP methods (as listed on https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods )
2023-08-15 11:03:47 -03:00
Jonathan Staab
d13eecad4a
Add support for nip44
2023-08-12 20:46:32 -03:00
Alex Gleason
df6f887d7e
Event, Filter: allow any kind number
...
Fixes https://github.com/nbd-wtf/nostr-tools/issues/275
2023-08-12 20:13:53 -03:00
Alex Gleason
e00362e7c9
Filter: let tag queries be undefined
2023-08-12 16:30:24 -03:00
fiatjaf
9efdd16e26
fix check for undefined ws
...
fixes https://github.com/nbd-wtf/nostr-tools/issues/271
2023-08-11 07:09:40 -03:00
Alex Gleason
de7e128818
Merge pull request #267 from Airtune/nip98-extract-pubkey
...
+nip98.unpackEventFromToken +nip98.validateEvent
2023-08-08 08:48:29 -05:00
Airtune
4978c858e7
Update nip98.ts examples
2023-08-08 02:45:23 -04:00
Airtune
16c7ae2a70
+nip98.unpackEventFromToken +nip98.validateEvent
2023-08-07 22:16:23 -04:00
fiatjaf
3368e8c00e
bump minor version because of the breaking change on publish()
...
yes, I don't understand semver
v1.14.0
2023-07-31 23:05:36 -03:00
Airtune
e5a3ad9855
Export nip28 functions in index.ts and bump version ( #265 )
2023-07-31 23:04:45 -03:00
Airtune
03185c654b
Create nip28.ts and nip28.test.ts ( #264 )
2023-07-31 08:29:45 -03:00
fiatjaf
9d690814ca
turn .publish() into a normal async function returning a promise.
...
this simplifies the code and makes the API more intuitive.
we used to need the event emitter thing because we were subscribing to the same relay
to check if the event had been published, but that is not necessary now that we assume
an OK response will always come.
closes https://github.com/nbd-wtf/nostr-tools/issues/262
2023-07-30 18:23:05 -03:00
fiatjaf
17590cce91
tag v1.13.1
v1.13.1
2023-07-23 10:15:00 -03:00
Pavan Joshi
ee9f37e192
Update package.json to upgrade scure/bip39 ( #254 )
...
* Update package.json to upgrade scure/bip39
scure/bip39 1.2.0 causing problem of "Can't resolve '@scure/bip39/wordlists/english' ... because it was resolved as fully specified "
* Update package.json
2023-07-23 09:41:53 -03:00
fiatjaf
c1848d78a0
tag v1.13.0
v1.13.0
2023-07-17 13:14:10 -03:00
Dolu
81776ba811
fix(nip98): add export
2023-07-17 11:51:12 -03:00
Dolu
915d6d729b
feat(nip98): add getToken and validateToken
2023-07-17 11:51:12 -03:00