haraka-plugin-karma 2.1.5 → 2.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
4
4
 
5
5
  ### Unreleased
6
6
 
7
+ ### [2.1.6] - 2024-11-08
8
+
9
+ - fix missing error handler on redis client [#45](https://github.com/haraka/haraka-plugin-redis/issues/45)
10
+
7
11
  ### [2.1.5] - 2024-04-23
8
12
 
9
13
  - doc(README): remove spurious markdown link
package/index.js CHANGED
@@ -124,6 +124,9 @@ exports.results_init = async function (next, connection) {
124
124
  }
125
125
 
126
126
  connection.notes.redis = redis.createClient(this.redisCfg.pubsub)
127
+ connection.notes.redis.on('error', (err) => {
128
+ connection.logerror(this, err.message)
129
+ })
127
130
  await connection.notes.redis.connect()
128
131
 
129
132
  const pattern = this.get_redis_sub_channel(connection)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haraka-plugin-karma",
3
- "version": "2.1.5",
3
+ "version": "2.1.6",
4
4
  "description": "A heuristics scoring and reputation engine for SMTP connections",
5
5
  "main": "index.js",
6
6
  "files": [