hadron-document
Advanced tools
Comparing version 0.27.0 to 0.28.0
@@ -152,9 +152,9 @@ 'use strict'; | ||
generateObject() { | ||
if (this.currentValue) { | ||
return this.currentValue; | ||
} | ||
if (this.currentType === 'Array') { | ||
return ObjectGenerator.generateArray(this.elements); | ||
} | ||
return ObjectGenerator.generate(this.elements); | ||
if (this.elements) { | ||
return ObjectGenerator.generate(this.elements); | ||
} | ||
return this.currentValue; | ||
} | ||
@@ -161,0 +161,0 @@ |
@@ -7,3 +7,3 @@ { | ||
"homepage": "https://github.com/mongodb-js/hadron-document", | ||
"version": "0.27.0", | ||
"version": "0.28.0", | ||
"repository": { | ||
@@ -10,0 +10,0 @@ "type": "git", |
32295