Comparing version 5.0.0-next.5 to 5.0.0-next.6
@@ -9,2 +9,3 @@ "use strict"; | ||
const parseDateField_1 = require("./parseDateField"); | ||
const flattenObject_1 = require("../flattenObject"); | ||
/** | ||
@@ -22,2 +23,3 @@ * Turn query into an object readable by MongoDB. | ||
} | ||
const meta = {}; | ||
for (const [key, value] of Object.entries(extra)) { | ||
@@ -34,9 +36,7 @@ if ((0, isPrototypeAttribute_1.isPrototypeAttribute)(key)) | ||
else { | ||
if (!filterQuery.meta) | ||
filterQuery.meta = {}; | ||
filterQuery.meta[key] = newValue; | ||
meta[key] = newValue; | ||
} | ||
} | ||
return filterQuery; | ||
return { ...filterQuery, ...(0, flattenObject_1.flattenObject)(meta, "meta") }; | ||
} | ||
exports.parseFilterQuery = parseFilterQuery; |
{ | ||
"name": "medici", | ||
"version": "5.0.0-next.5", | ||
"version": "5.0.0-next.6", | ||
"description": "Simple double-entry accounting for Node + Mongoose", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
69820