Fix const bug
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "paravel",
|
"name": "paravel",
|
||||||
"version": "0.1.17",
|
"version": "0.1.18",
|
||||||
"description": "Yet another toolkit for nostr",
|
"description": "Yet another toolkit for nostr",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
+2
-1
@@ -8,7 +8,8 @@ export class Executor {
|
|||||||
this.target = target
|
this.target = target
|
||||||
}
|
}
|
||||||
subscribe(filters, {onEvent, onEose}) {
|
subscribe(filters, {onEvent, onEose}) {
|
||||||
const closed = false
|
let closed = false
|
||||||
|
|
||||||
const id = createSubId('REQ')
|
const id = createSubId('REQ')
|
||||||
const eventListener = (url, subid, e) => subid === id && onEvent?.(url, e)
|
const eventListener = (url, subid, e) => subid === id && onEvent?.(url, e)
|
||||||
const eoseListener = (url, subid) => subid === id && onEose?.(url)
|
const eoseListener = (url, subid) => subid === id && onEose?.(url)
|
||||||
|
|||||||
Reference in New Issue
Block a user