Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

redisearch

Package Overview
Dependencies
20
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

9

lib/redis-search.js

@@ -32,14 +32,6 @@ 'use strict';

}
if (!Object.keys(data).length) {
throw new Error('no data to index');
}
await indexData(namespace, data, id);
await redisClient.zadd(namespace + ':indexed:ids' , id);
};
Search.prototype.getIndexedCount = async function () {
return await redisClient.zcard(this.namespace + ':indexed:ids');
};
Search.prototype.query = async function (data, start, stop) {

@@ -143,3 +135,2 @@ var namespace = this.namespace;

await redisClient.del(namespace + ':id:' + id + ':indices');
await redisClient.zrem(namespace + ':indexed:ids' , id);
return this;

@@ -146,0 +137,0 @@ };

2

package.json

@@ -5,3 +5,3 @@ {

"description": "A plugin to search data with redis",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc