Comparing version 3.1.3 to 3.1.4
@@ -440,4 +440,5 @@ /** | ||
var indexFields = Object.keys(fieldOrSpec); | ||
var generateFinder = options.generateFinder === undefined || options.generateFinder === true; | ||
if (indexFields.length === 1) { | ||
if (generateFinder && indexFields.length === 1) { | ||
var field = indexFields[0]; | ||
@@ -444,0 +445,0 @@ // only create special finder if the index is not on a sub document |
@@ -543,4 +543,5 @@ /** | ||
var indexFields = Object.keys(fieldOrSpec); | ||
var generateFinder = options.generateFinder === undefined || options.generateFinder === true; | ||
if (indexFields.length === 1) { | ||
if (generateFinder && indexFields.length === 1) { | ||
var field = indexFields[0]; | ||
@@ -547,0 +548,0 @@ // only create special finder if the index is not on a sub document |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"engines": { | ||
@@ -11,0 +11,0 @@ "node": ">=0.4.12" |
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
77498
2501