@live-change/db-store-indexeddb 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Store.js +2 -1
- package/package.json +3 -3
package/lib/Store.js
CHANGED
|
@@ -400,6 +400,7 @@ class Store {
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
async handleChannelMessage(message) {
|
|
403
|
+
console.log("CHANNEL MESSAGE", message)
|
|
403
404
|
switch(message.type) {
|
|
404
405
|
case 'put' : {
|
|
405
406
|
const { object: objectJson, oldObjectJson } = message
|
|
@@ -679,7 +680,7 @@ class Store {
|
|
|
679
680
|
for(const rangeObservable of rangeObservables) {
|
|
680
681
|
rangeObservable.deleteObject(object)
|
|
681
682
|
}
|
|
682
|
-
this.channel.postMessage({ type: "delete", object: this.serialization.stringify(object) })
|
|
683
|
+
if(object) this.channel.postMessage({ type: "delete", object: this.serialization.stringify(object) })
|
|
683
684
|
return object
|
|
684
685
|
}
|
|
685
686
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/db-store-indexeddb",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "Database with observable data for live queries",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"tape": "^5.7.4"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@live-change/dao": "^0.8.
|
|
29
|
+
"@live-change/dao": "^0.8.8",
|
|
30
30
|
"@live-change/interval-tree": "^1.0.12",
|
|
31
31
|
"broadcast-channel": "^4.2.0"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "77eafa414e091c8d34ae63ee8927d53f3bde893d"
|
|
34
34
|
}
|