Comparing version 1.0.2 to 1.0.3
@@ -7,4 +7,4 @@ var controller = {}; | ||
// If there is a '.' in the keyPath, recur on the subdoc and ... | ||
if (indexOfDot >= 0) { | ||
// If there is a '.' in the keyPath and keyPath doesn't present in the document, recur on the subdoc and ... | ||
if (indexOfDot >= 0 && !document[keyPath]) { | ||
var currentKey = keyPath.slice(0, indexOfDot), | ||
@@ -38,2 +38,2 @@ remainingKeyPath = keyPath.slice(indexOfDot + 1); | ||
module.exports = controller; | ||
module.exports = controller; |
@@ -5,3 +5,3 @@ { | ||
"description": "A document path library for Node.JS", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"repository": { | ||
@@ -41,2 +41,2 @@ "type": "git", | ||
"license": "MIT" | ||
} | ||
} |
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
44
5102
5