@herdwatch/lokijs 1.5.12-dev.2 → 1.5.12-dev.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/lokijs.js +3 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@herdwatch/lokijs",
3
- "version": "1.5.12-dev.2",
3
+ "version": "1.5.12-dev.4",
4
4
  "description": "Fast document oriented javascript in-memory database",
5
5
  "homepage": "https://techfort.github.io/LokiJS/",
6
6
  "types": "index.d.ts",
package/src/lokijs.js CHANGED
@@ -6017,7 +6017,9 @@
6017
6017
 
6018
6018
  options = options || {};
6019
6019
 
6020
- this.data = [];
6020
+ if(!this.getData){
6021
+ this.data = [];
6022
+ }
6021
6023
  this.idIndex = null;
6022
6024
  this.cachedIndex = null;
6023
6025
  this.cachedBinaryIndex = null;