mongoose-sort-encrypted-field
Advanced tools
Comparing version 0.4.0 to 0.4.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PLUGIN_OPTIONS = exports.REDIS_QUEUE_CLIENT_OPTIONS = void 0; | ||
const Redis = require("ioredis"); | ||
const REDIS_QUEUE_CLIENT_OPTIONS = { | ||
@@ -6,0 +5,0 @@ redis: null, |
@@ -32,8 +32,5 @@ "use strict"; | ||
class ModelsQueue { | ||
client; | ||
noOfGroups; | ||
groupIdToSortIdManagerMap = {}; | ||
redisClient; | ||
constructor(redisQueueClientOptions) { | ||
this.groupIdToSortIdManagerMap = {}; | ||
this.groupIdToSortIdManagerMap = {}; | ||
redisQueueClientOptions = { | ||
@@ -60,3 +57,3 @@ ...constants_1.REDIS_QUEUE_CLIENT_OPTIONS, | ||
async getPendingJobsCount() { | ||
const metrics = await modelsQueue.client.getMetrics(100); | ||
const metrics = await this.client.getMetrics({ topMessageGroupsLimit: 100 }); | ||
const pendingJobsCount = metrics.topMessageGroupsMessageBacklogLength; | ||
@@ -63,0 +60,0 @@ return pendingJobsCount; |
@@ -6,9 +6,2 @@ "use strict"; | ||
class SortIdManager { | ||
model; | ||
fieldName; | ||
sortFieldName; | ||
silent; | ||
ignoreCases; | ||
noOfBytesForSortId; | ||
noOfBytesToIncreaseOnSaturation; | ||
constructor(model, fieldName, sortFieldName) { | ||
@@ -15,0 +8,0 @@ this.model = model; |
{ | ||
"name": "mongoose-sort-encrypted-field", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Mongoose plugin to enable sorting on encrypted fields", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
{ | ||
"compilerOptions": { | ||
"incremental": true, /* Enable incremental compilation */ | ||
"target": "es2022", /* Specify ECMAScript target version: */ | ||
"target": "es2020", /* Specify ECMAScript target version: */ | ||
"module": "commonjs", /* 'none', 'commonjs', 'amd', 'system', etc */ | ||
@@ -6,0 +6,0 @@ "declaration": true, /* Concatenate & emit output to single file.*/ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
63005
1803