Fix const bug

This commit is contained in:
Jonathan Staab
2023-07-20 10:05:09 -07:00
parent d6defe2844
commit 5cbb229708
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "paravel",
"version": "0.1.17",
"version": "0.1.18",
"description": "Yet another toolkit for nostr",
"repository": {
"type": "git",
+2 -1
View File
@@ -8,7 +8,8 @@ export class Executor {
this.target = target
}
subscribe(filters, {onEvent, onEose}) {
const closed = false
let closed = false
const id = createSubId('REQ')
const eventListener = (url, subid, e) => subid === id && onEvent?.(url, e)
const eoseListener = (url, subid) => subid === id && onEose?.(url)