Comparing version 1.1.2 to 1.1.3
@@ -70,5 +70,9 @@ module.exports = Query; | ||
*/ | ||
this.query = settings.state || {}; | ||
if (typeof settings.state === 'object' && settings.state !== null) { | ||
this.query = settings.state; | ||
} else { | ||
this.query = {}; | ||
} | ||
if (!this.query.where) { | ||
if (typeof this.query.where !== 'object' || this.query.where === null) { | ||
this.query.where = {}; | ||
@@ -75,0 +79,0 @@ } |
{ | ||
"name": "mio", | ||
"description": "A common model layer between client and server for building REST APIs and web applications.", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"homepage": "https://github.com/mio/mio", | ||
@@ -6,0 +6,0 @@ "repository": { |
424982
14037