dexie-relay
Advanced tools
Comparing version 3.0.4 to 3.0.5
21
index.js
@@ -49,4 +49,15 @@ import {Client} from 'relay-to-relay' | ||
this.client.on('message', this.#message) | ||
this.#routine = setInterval(() => { | ||
this.#adds.clear() | ||
for(const [prop, update] of this.#edits.entries()){ | ||
if((Date.now() - update) > this.timer.expire){ | ||
this.#edits.delete(prop) | ||
} | ||
} | ||
this.#subs.clear() | ||
}, this.timer.redo) | ||
} | ||
#routine | ||
#adds = new Set() | ||
@@ -56,12 +67,2 @@ #edits = new Map() | ||
#routine = setInterval(() => { | ||
this.#adds.clear() | ||
for(const [prop, update] of this.#edits.entries()){ | ||
if((Date.now() - update) > this.timer.expire){ | ||
this.#edits.delete(prop) | ||
} | ||
} | ||
this.#subs.clear() | ||
}, this.timer.redo) | ||
async #message(data, nick){ | ||
@@ -68,0 +69,0 @@ try { |
{ | ||
"name": "dexie-relay", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "scripts": { |
12055
289