@live-change/db
Advanced tools
Comparing version 0.3.21 to 0.3.22
@@ -132,2 +132,5 @@ const { TableWriter, LogWriter } = require('./queryUpdate.js') | ||
} | ||
debug(...args) { | ||
console.log('QUERY DEBUG', ...args) | ||
} | ||
} | ||
@@ -134,0 +137,0 @@ |
@@ -9,2 +9,3 @@ const ReactiveDao = require("@live-change/dao") | ||
#valuePromise = null | ||
#oldValue = null | ||
@@ -22,3 +23,4 @@ constructor(queryReader, callback) { | ||
if(this._queryReader.state == READER_DISPOSED) return | ||
this.#callback(value, null) | ||
this.#callback(value, this.#oldValue) | ||
this.#oldValue = value | ||
if(!this.#resolved) this.#valuePromiseResolve(value) | ||
@@ -307,2 +309,5 @@ } | ||
} | ||
debug(...args) { | ||
console.log('QUERY DEBUG', ...args) | ||
} | ||
} | ||
@@ -335,3 +340,2 @@ | ||
await this.readPromise | ||
console.log("PUT PUT", object) | ||
const id = object.id | ||
@@ -338,0 +342,0 @@ this.putByField('id', id, object, reverse, oldObject) |
{ | ||
"name": "@live-change/db", | ||
"version": "0.3.21", | ||
"version": "0.3.22", | ||
"description": "Database with observable data for live queries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
77083
2326