mongoose-sort-encrypted-field
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -170,5 +170,5 @@ "use strict"; | ||
if (!aValue) | ||
return -1; | ||
if (!bValue) | ||
return 1; | ||
if (!bValue) | ||
return -1; | ||
aValue = ignoreCases ? aValue.toLowerCase() : aValue; | ||
@@ -175,0 +175,0 @@ bValue = ignoreCases ? bValue.toLowerCase() : bValue; |
{ | ||
"name": "mongoose-sort-encrypted-field", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Mongoose plugin to enable sorting on encrypted fields", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -177,4 +177,4 @@ const Base2N = require("@navpreetdevpuri/base-2-n"); | ||
if (!aValue && !bValue) return 0; | ||
if (!aValue) return 1; | ||
if (!bValue) return -1; | ||
if (!aValue) return -1; | ||
if (!bValue) return 1; | ||
aValue = ignoreCases ? aValue.toLowerCase() : aValue; | ||
@@ -181,0 +181,0 @@ bValue = ignoreCases ? bValue.toLowerCase() : bValue; |
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