haraka-plugin-karma 2.1.4 → 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 +10 -0
- package/README.md +0 -3
- package/index.js +3 -0
- package/package.json +4 -4
- package/test/karma.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,15 @@ 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
|
+
|
|
11
|
+
### [2.1.5] - 2024-04-23
|
|
12
|
+
|
|
13
|
+
- doc(README): remove spurious markdown link
|
|
14
|
+
- doc(CONTRIBUTORS): added
|
|
15
|
+
|
|
7
16
|
### [2.1.4] - 2024-04-06
|
|
8
17
|
|
|
9
18
|
- eslint: reduce config to depending on @haraka
|
|
@@ -124,3 +133,4 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
|
|
|
124
133
|
[2.1.2]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.1.2
|
|
125
134
|
[2.1.3]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.1.3
|
|
126
135
|
[2.1.4]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.1.4
|
|
136
|
+
[2.1.5]: https://github.com/haraka/haraka-plugin-karma/releases/tag/v2.1.5
|
package/README.md
CHANGED
|
@@ -194,9 +194,6 @@ Expect to use karma _with_ content filters.
|
|
|
194
194
|
[sa-url]: http://haraka.github.io/manual/plugins/spamassassin.html
|
|
195
195
|
[snf-url]: http://haraka.github.io/manual/plugins/messagesniffer.html
|
|
196
196
|
[results-url]: http://haraka.github.io/manual/Results.html
|
|
197
|
-
|
|
198
|
-
[![CI]()]()
|
|
199
|
-
|
|
200
197
|
[ci-img]: https://github.com/haraka/haraka-plugin-karma/actions/workflows/ci.yml/badge.svg
|
|
201
198
|
[ci-url]: https://github.com/haraka/haraka-plugin-karma/actions/workflows/ci.yml
|
|
202
199
|
[cov-img]: https://codecov.io/github/haraka/haraka-plugin-karma/coverage.svg
|
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.
|
|
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": [
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"lint:fix": "npx eslint@^8 *.js test --fix",
|
|
15
15
|
"prettier": "npx prettier . --check",
|
|
16
16
|
"prettier:fix": "npx prettier . --write --log-level=warn",
|
|
17
|
-
"test": "npx mocha
|
|
18
|
-
"versions": "npx
|
|
19
|
-
"versions:fix": "npx
|
|
17
|
+
"test": "npx mocha@^10",
|
|
18
|
+
"versions": "npx dependency-version-checker check",
|
|
19
|
+
"versions:fix": "npx dependency-version-checker update"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
22
22
|
"type": "git",
|
package/test/karma.js
CHANGED
|
@@ -16,7 +16,7 @@ function _set_up(done) {
|
|
|
16
16
|
this.plugin.tarpit_hooks = ['connect']
|
|
17
17
|
|
|
18
18
|
this.connection = fixtures.connection.createConnection({}, { notes: {} })
|
|
19
|
-
this.connection.
|
|
19
|
+
this.connection.init_transaction()
|
|
20
20
|
|
|
21
21
|
done()
|
|
22
22
|
}
|