@live-change/db
Advanced tools
Comparing version 0.3.46 to 0.3.47
@@ -265,13 +265,17 @@ const Table = require('./Table.js') | ||
handleUnhandledRejectionInIndex(name, reason, promise) { | ||
const config = this.config.indexes[name] | ||
if(!config) { | ||
console.error("INDEX IS ALREADY DELETED") | ||
return; | ||
} | ||
console.error("INDEX", name, "unhandledRejection", reason, "CODE:\n", config.code) | ||
console.error("DELETING INDEX", name) | ||
delete this.config.indexes[name] | ||
this.indexesListObservable.remove(name) | ||
if(this.onAutoRemoveIndex) this.onAutoRemoveIndex(name, config.uid) | ||
this.saveConfig(this.config) | ||
process.nextTick(() => { | ||
const config = this.config.indexes[name] | ||
if(!config) { | ||
console.error("INDEX", name, "IS ALREADY DELETED") | ||
console.trace("ALREADY DELETED") | ||
return; | ||
} | ||
delete this.config.indexes[name] | ||
this.indexesListObservable.remove(name) | ||
if(this.onAutoRemoveIndex) this.onAutoRemoveIndex(name, config.uid) | ||
this.saveConfig(this.config) | ||
}) | ||
} | ||
@@ -278,0 +282,0 @@ handleConfigUpdated() { |
{ | ||
"name": "@live-change/db", | ||
"version": "0.3.46", | ||
"version": "0.3.47", | ||
"description": "Database with observable data for live queries", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
86299
2571