mongoose-sort-encrypted-field
Advanced tools
Comparing version 0.2.16 to 0.2.17
@@ -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", |
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
28060