Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

systemic-redis

Package Overview
Dependencies
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemic-redis - npm Package Compare versions

Comparing version 2.0.1 to 2.1.0

.eslintignore

27

index.js

@@ -7,23 +7,4 @@ module.exports = (options) => {

const connectToRedis = () =>
new Promise((resolve) => {
client.on('ready', () => {
logger.info(`Connection to redis reached ready state.`);
resolve();
});
});
const connectToRedis = () => client.connect();
const closeRedisConnection = () =>
new Promise((resolve, reject) => {
if (!client) {
reject(new Error('Client has not been initialized.'));
return;
}
logger.info(`Disconnecting from ${config.url || config.host || '127.0.0.1'}`);
client.quit(() => {
resolve();
});
});
const start = async (dependencies) => {

@@ -62,3 +43,3 @@ config = { ...dependencies.config };

*/
keepAlive && setInterval(() => {
keepAlive && setInterval(() => {
client.ping();

@@ -70,5 +51,3 @@ }, keepAliveTimer);

const stop = async () => {
await closeRedisConnection();
};
const stop = async () => client.disconnect();

@@ -75,0 +54,0 @@ return {

{
"name": "systemic-redis",
"version": "2.0.1",
"version": "2.1.0",
"description": "A systemic redis component",

@@ -12,2 +12,4 @@ "main": "index.js",

"scripts": {
"lint": "eslint . --ext .js",
"lint:fix": "npm run lint -- --fix",
"test": "echo \"Error: no test specified\" && exit 1"

@@ -22,5 +24,10 @@ },

"dependencies": {
"redis": "^3.1.2"
"redis": "^4.3.1"
},
"devDependencies": {},
"devDependencies": {
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"eslint": "^8.1.0",
"husky": "^7.0.4"
},
"repository": {

@@ -27,0 +34,0 @@ "type": "git",

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