viewmodel
Advanced tools
Comparing version 1.5.7 to 1.5.8
@@ -272,3 +272,3 @@ 'use strict'; | ||
checkConnection: function() { | ||
checkConnection: function(doNotEnsureIndexes) { | ||
if (this.collection) { | ||
@@ -283,2 +283,5 @@ return; | ||
this.collection = this.db.collection(this.collectionName); | ||
if (doNotEnsureIndexes) return; | ||
this.ensureIndexes(); | ||
@@ -288,3 +291,3 @@ }, | ||
clear: function (callback) { | ||
this.checkConnection(); | ||
this.checkConnection(true); | ||
@@ -291,0 +294,0 @@ if (!this.collection) { |
@@ -212,3 +212,3 @@ 'use strict'; | ||
checkConnection: function() { | ||
checkConnection: function(doNotEnsureIndexes) { | ||
if (this.collection) { | ||
@@ -223,2 +223,5 @@ return; | ||
this.collection = this.db.createCollection(this.collectionName + '.tingo'); | ||
if (doNotEnsureIndexes) return; | ||
this.ensureIndexes(); | ||
@@ -228,3 +231,3 @@ }, | ||
clear: function (callback) { | ||
this.checkConnection(); | ||
this.checkConnection(true); | ||
@@ -231,0 +234,0 @@ if (!this.collection) { |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.5.7", | ||
"version": "1.5.8", | ||
"private": false, | ||
@@ -14,9 +14,9 @@ "main": "index.js", | ||
"dependencies": { | ||
"async": "1.4.2", | ||
"async": "1.5.0", | ||
"dotty": "0.0.2", | ||
"jsondate": "0.0.1", | ||
"lodash": "3.10.1", | ||
"node-uuid": "1.4.3", | ||
"node-uuid": "1.4.7", | ||
"parent-require": "1.0.0", | ||
"sift": "2.0.9", | ||
"sift": "3.0.0", | ||
"tolerance": "1.0.0" | ||
@@ -29,3 +29,3 @@ }, | ||
"doqmentdb": ">=0.2.7", | ||
"elasticsearch": ">=5.0.0", | ||
"elasticsearch": "8.x.x", | ||
"eslint": ">=1.0.0", | ||
@@ -32,0 +32,0 @@ "expect.js": ">= 0.1.2", |
@@ -0,1 +1,4 @@ | ||
## [v1.5.8](https://github.com/adrai/node-viewmodel/compare/v1.5.7...v1.5.8) | ||
- mongodb: do not call ensureIndexes on clear | ||
## [v1.5.7](https://github.com/adrai/node-viewmodel/compare/v1.5.6...v1.5.7) | ||
@@ -2,0 +5,0 @@ - redis: fix wrong multi response handling |
103117
2791
+ Addedasync@1.5.0(transitive)
+ Addednode-uuid@1.4.7(transitive)
+ Addedsift@3.0.0(transitive)
- Removedasync@1.4.2(transitive)
- Removednode-uuid@1.4.3(transitive)
- Removedsift@2.0.9(transitive)
Updatedasync@1.5.0
Updatednode-uuid@1.4.7
Updatedsift@3.0.0