New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

haraka-plugin-redis

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

haraka-plugin-redis - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

6

Changes.md
### 2.0.1 - 2022-05-23
- fix: rename p* methods -> * (required in redis v4)
- dep(redis): bump 4.0 -> 4.1
### 2.0.0 - 2022-03-29

@@ -4,0 +10,0 @@

14

index.js

@@ -198,7 +198,7 @@ 'use strict';

await this.redis.psubscribe(pattern);
this.logdebug(this, `psubscribed to ${pattern}`);
await this.redis.subscribe(pattern);
this.logdebug(this, `subscribed to ${pattern}`);
}
exports.redis_subscribe = async function (connection) {
exports.redis_subscribe = async function (connection, event) {

@@ -211,3 +211,3 @@ if (connection.notes.redis) {

const timer = setTimeout(() => {
connection.logerror('redis psubscribe timed out');
connection.logerror('redis subscribe timed out');
}, 3 * 1000);

@@ -220,4 +220,4 @@

const pattern = this.get_redis_sub_channel(connection)
connection.notes.redis.psubscribe(pattern);
connection.logdebug(this, `psubscribed to ${pattern}`);
connection.notes.redis.subscribe(pattern, event);
connection.logdebug(this, `subscribed to ${pattern}`);
}

@@ -233,5 +233,5 @@

const pattern = this.get_redis_sub_channel(connection)
await connection.notes.redis.punsubscribe(pattern);
await connection.notes.redis.unsubscribe(pattern);
connection.logdebug(this, `unsubsubscribed from ${pattern}`);
connection.notes.redis.disconnect();
}
{
"name": "haraka-plugin-redis",
"version": "2.0.0",
"version": "2.0.1",
"description": "Redis plugin for Haraka & other plugins to inherit from",

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

"dependencies": {
"redis": "^4.0.0"
"redis": "^4.1.0"
},

@@ -13,0 +13,0 @@ "devDependencies": {

@@ -6,5 +6,3 @@ # haraka-plugin-redis

Connects to a redis instance. By default it stores a `redis`
connection handle at `server.notes.redis`. See below to get a custom DB handle
attached to another database.
Connects to a redis instance. By default it stores a `redis` connection handle at `server.notes.redis`. See below to get a custom DB handle attached to another database.

@@ -11,0 +9,0 @@ ## Config

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