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.16 to 0.2.17

10

lib/utils.js

@@ -129,3 +129,3 @@ "use strict";

if (!silent) {
console.time(`mongoose-sort-encrypted-field -> updateSortFieldsForDocument() -> objectId: ${objectId}, timeTaken: `);
console.time(`mongoose-sort-encrypted-field -> updateSortFieldsForDocument() -> objectId: ${objectId}, fieldName: ${fieldName}, sortFieldName: ${sortFieldName}, timeTaken: `);
}

@@ -141,8 +141,8 @@ const { predecessorSortId, successorSortId } = await documentsBinarySearch(model, fieldName, fieldValue, sortFieldName);

if (!silent)
console.log(`mongoose-sort-encrypted-field -> Got collions, retrying... objectId: ${objectId}`);
console.log(`mongoose-sort-encrypted-field -> objectId: ${objectId} fieldName: ${fieldName}, sortFieldName: ${sortFieldName}, Got collions, retrying...`);
// Retrigering sortId generation due to collion
throw new Error(`mongoose-sort-encrypted-field -> Got collions, retrying... objectId: ${objectId}`);
throw new Error(`mongoose-sort-encrypted-field -> objectId: ${objectId} fieldName: ${fieldName}, sortFieldName: ${sortFieldName}, Got collions, retrying...`);
}
if (!silent) {
console.timeEnd(`mongoose-sort-encrypted-field -> updateSortFieldsForDocument() -> objectId: ${objectId}, timeTaken: `);
console.timeEnd(`mongoose-sort-encrypted-field -> updateSortFieldsForDocument() -> objectId: ${objectId}, fieldName: ${fieldName}, sortFieldName: ${sortFieldName}, timeTaken: `);
}

@@ -154,3 +154,3 @@ }

if (!silent) {
console.time(`mongoose-sort-encrypted-field -> generateSortIdForAllDocuments() -> fieldName: ${fieldName}, sortFieldName: ${sortFieldName}, timeTaken: `);
console.time(`mongoose-sort-encrypted-field -> generateSortIdForAllDocuments() -> fieldName: ${fieldName}, sortFieldName: ${sortFieldName}, sortFieldName: ${sortFieldName}, timeTaken: `);
}

@@ -157,0 +157,0 @@ const documents = await model.find({}, { [fieldName]: 1 }).exec();

{
"name": "mongoose-sort-encrypted-field",
"version": "0.2.16",
"version": "0.2.17",
"description": "Mongoose plugin to enable sorting on encrypted fields",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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