nostr-tools
Advanced tools
Comparing version 0.16.0 to 0.16.1
export function matchFilter(filter, event) { | ||
if (filter.ids && filter.ids.indexOf(event.id) !== -1) return false | ||
if (filter.kinds && filter.kinds.indexOf(event.kind) !== -1) return false | ||
if (filter.ids && filter.ids.indexOf(event.id) === -1) return false | ||
if (filter.kinds && filter.kinds.indexOf(event.kind) === -1) return false | ||
if (filter.authors && filter.authors.indexOf(event.pubkey) === -1) | ||
@@ -5,0 +5,0 @@ return false |
{ | ||
"name": "nostr-tools", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"description": "Tools for making a Nostr client.", | ||
@@ -5,0 +5,0 @@ "repository": { |