)thrownewError(`More than ${Math.floor(100*this.corruptAlertThreshold)}% of the data file is corrupt, the wrong beforeDeserialization hook may be used. Cautiously refusing to start NeDB to prevent dataloss`)
tdata.push(...Object.values(dataById))
consttdata=Object.values(dataById)
return{data:tdata,indexes:indexes}
}
@ -192,7 +191,6 @@ class Persistence {
*/
treatRawStream(rawStream,cb){
constdataById={}
consttdata=[]
constindexes={}
// Last line of every data file is usually blank so not really corrupt