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.4.0 to 0.4.1

1

lib/constants.js
"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,

7

lib/modelsQueue.js

@@ -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.*/

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