@trapi/query
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -19,3 +19,3 @@ "use strict"; | ||
typeof data[key] === 'undefined' || | ||
query[key] === null || | ||
data[key] === null || | ||
Array.isArray(data[key]): | ||
@@ -27,2 +27,5 @@ const destinationKey = [...prefixParts, key].join('.'); | ||
// todo: this might be risky, if an entity has 'operator' and 'value' properties :( ^^ | ||
if (typeof data[key] !== 'object') { | ||
continue; | ||
} | ||
if ((0, index_1.hasOwnProperty)(data[key], 'operator') && | ||
@@ -29,0 +32,0 @@ (0, index_1.hasOwnProperty)(data[key], 'value')) { |
{ | ||
"name": "@trapi/query", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "An tiny library which provides utility types/functions for request and response query handling.", | ||
@@ -54,3 +54,3 @@ "main": "./dist/index.js", | ||
}, | ||
"gitHead": "4f2bc542708ccfd55d64efa0cc55a5eafea14f63" | ||
"gitHead": "d56eb2f242b01454a8aa04f5bb9e61e947adb004" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
149652
1588