Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongoose-sort-encrypted-field

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongoose-sort-encrypted-field - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

4

lib/utils.js

@@ -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;

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc