Socket
Socket
Sign inDemoInstall

@dibs-tech/redis-interface

Package Overview
Dependencies
86
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.1 to 1.2.2

15

index.js

@@ -29,3 +29,3 @@ const { handleError } = require('@dibs-tech/dibs-error-handler');

/**
*
*
* @param {string} key Redis key

@@ -73,3 +73,3 @@ * @returns {Promise} JSON data

/**
*
*
* @param {string} key identifier

@@ -97,6 +97,7 @@ * @param {string} value value to store

})(err);
return null; }
return null;
}
}
/**
*
*
* @param {string} key identifier

@@ -122,3 +123,3 @@ * @param {object} options optional parameters

/**
*
*
* @param {string} key identifier

@@ -129,3 +130,3 @@ * @return {array} list from redis

try {
if (!redisClient) return null;
if (!redisClient) return [];
const data = await redisClient.lrangeAsync(key, 0, -1);

@@ -138,3 +139,3 @@ return data;

})(err);
return null;
return [];
}

@@ -141,0 +142,0 @@ }

@@ -6,3 +6,3 @@ {

},
"version": "1.2.1",
"version": "1.2.2",
"description": "Dibs redis interface driver",

@@ -24,3 +24,3 @@ "main": "index.js",

"dependencies": {
"@dibs-tech/dibs-error-handler": "^1.0.1",
"@dibs-tech/dibs-error-handler": "^1.0.2",
"bluebird": "^3.5.1",

@@ -27,0 +27,0 @@ "enum": "^2.5.0",

Sorry, the diff of this file is not supported yet

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