Comparing version 0.5.5 to 0.5.6
@@ -160,3 +160,3 @@ 'use strict'; | ||
(0, _forEach2.default)(fields, function (val, keyPath) { | ||
var valKeys = (0, _keys3.default)(val); | ||
var valKeys = _checkTypes2.default.object(val) && (0, _keys3.default)(val) || []; | ||
if ((0, _indexOf3.default)(keyPath.split('.'), '$') >= 0) { | ||
@@ -163,0 +163,0 @@ throw Error('Minimongo doesn\'t support $ operator in projections yet.'); |
@@ -100,3 +100,3 @@ import _check from 'check-types'; | ||
_each(fields, (val, keyPath) => { | ||
const valKeys = _keys(val); | ||
const valKeys = (_check.object(val) && _keys(val)) || []; | ||
if (_indexOf(keyPath.split('.'), '$') >= 0) { | ||
@@ -103,0 +103,0 @@ throw Error('Minimongo doesn\'t support $ operator in projections yet.'); |
{ | ||
"name": "marsdb", | ||
"version": "0.5.5", | ||
"version": "0.5.6", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Artem Artemev", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
896390