haraka-plugin-karma 1.0.14 → 2.0.2

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/.codeclimate.yml CHANGED
@@ -1,10 +1,25 @@
1
1
  engines:
2
2
  eslint:
3
3
  enabled: true
4
- channel: "eslint-6"
4
+ channel: "eslint-8"
5
5
  config:
6
6
  config: ".eslintrc.yaml"
7
7
 
8
+ checks:
9
+ return-statements:
10
+ enabled: false
11
+ similar-code:
12
+ enabled: false
13
+ method-lines:
14
+ config:
15
+ threshold: 50
16
+ method-complexity:
17
+ config:
18
+ threshold: 20
19
+ file-lines:
20
+ config:
21
+ threshold: 900
22
+
8
23
  ratings:
9
24
  paths:
10
25
  - "**.js"
package/.eslintrc.yaml CHANGED
@@ -2,6 +2,7 @@ env:
2
2
  node: true
3
3
  es6: true
4
4
  mocha: true
5
+ es2020: true
5
6
 
6
7
  plugins: [ haraka ]
7
8
 
@@ -11,6 +12,8 @@ root: true
11
12
 
12
13
  rules:
13
14
  indent: [2, 2, { SwitchCase: 1 } ]
15
+ semi: [ error, never ]
16
+ semi-style: [ error, last ]
14
17
 
15
18
  globals:
16
19
  OK: true
@@ -0,0 +1,50 @@
1
+ name: CI
2
+
3
+ on: [ push ]
4
+
5
+ env:
6
+ CI: true
7
+
8
+ jobs:
9
+
10
+ lint:
11
+ uses: haraka/.github/.github/workflows/lint.yml@master
12
+
13
+ test:
14
+ needs: lint
15
+ runs-on: ${{ matrix.os }}
16
+ services:
17
+ redis:
18
+ image: redis
19
+ ports:
20
+ - 6379:6379
21
+ strategy:
22
+ matrix:
23
+ os: [ ubuntu-latest ]
24
+ node-version: [ 14, 16, 18 ]
25
+ fail-fast: false
26
+ steps:
27
+ - uses: actions/checkout@v3
28
+ - uses: actions/setup-node@v3
29
+ name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
30
+ with:
31
+ node-version: ${{ matrix.node-version }}
32
+ - run: npm install
33
+ - run: npm test
34
+
35
+ test-win:
36
+ needs: lint
37
+ runs-on: ${{ matrix.os }}
38
+ strategy:
39
+ matrix:
40
+ os: [ windows-latest ]
41
+ node-version: [ 14, 16, 18 ]
42
+ fail-fast: false
43
+ steps:
44
+ - uses: actions/checkout@v3
45
+ - uses: actions/setup-node@v3
46
+ name: Node ${{ matrix.node-version }} on ${{ matrix.os }}
47
+ with:
48
+ node-version: ${{ matrix.node-version }}
49
+ - run: npm install
50
+ - run: npm test
@@ -0,0 +1,14 @@
1
+ name: CodeQL
2
+
3
+ on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
+ # The branches below must be a subset of the branches above
8
+ branches: [ master ]
9
+ schedule:
10
+ - cron: '18 7 * * 4'
11
+
12
+ jobs:
13
+ codeql:
14
+ uses: haraka/.github/.github/workflows/codeql.yml@master
@@ -0,0 +1,16 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+ paths:
8
+ - package.json
9
+
10
+ env:
11
+ CI: true
12
+
13
+ jobs:
14
+ publish:
15
+ uses: haraka/.github/.github/workflows/publish.yml@master
16
+ secrets: inherit
package/Changes.md CHANGED
@@ -1,70 +1,91 @@
1
- ## 1.0.14 - 2022-02-14
1
+
2
+ ### 2.0.2 - 2022-05-27
3
+
4
+ - fix: depend directly on redis
5
+ - fix: update redis command names for v4 compatibility
6
+ - fix: update redis commands to be async
7
+
8
+
9
+ ### 2.0.1 - 2022-05-27
10
+
11
+ - chore(ci): depend on shared GHA workflows
12
+
13
+
14
+ ### 2.0.0 - 2022-03-29
15
+
16
+ - remove lots of plugin=this
17
+ - remove unnecessary braces and trailing ;
18
+ - some promises.
19
+
20
+
21
+ ### 1.0.14 - 2022-02-14
2
22
 
3
23
  - try to unsubscribe in case connection is marked to skip during transaction
4
24
 
5
- ## 1.0.13 - 2019-04-23
25
+
26
+ ### 1.0.13 - 2019-04-23
6
27
 
7
28
  - add 'exists' pattern
8
29
 
9
30
 
10
- ## 1.0.12 - 2019-03-08
31
+ ### 1.0.12 - 2019-03-08
11
32
 
12
- - don't interfere with STARTLS and AUTH when karmi is listed above those plugins in config/plugins
33
+ - don't interfere with STARTLS and AUTH when karma is listed above those plugins in config/plugins
13
34
 
14
35
 
15
- ## 1.0.11 - 2017-10-25
36
+ ### 1.0.11 - 2017-10-25
16
37
 
17
38
  - private addresses and flagged connections exemption
18
39
 
19
40
 
20
- ## 1.0.10 - 2017-08-30
41
+ ### 1.0.10 - 2017-08-30
21
42
 
22
43
  - add TLS awards #19
23
44
 
24
45
 
25
- ## 1.0.9 - 2017-07-29
46
+ ### 1.0.9 - 2017-07-29
26
47
 
27
48
  - splash on some es6
28
49
  - add AppVeyor CI testing
29
50
 
30
51
 
31
- ## 1.0.8 - 2017-06-26
52
+ ### 1.0.8 - 2017-06-26
32
53
 
33
54
  - revert #9, it breaks current Haraka deployments
34
55
 
35
56
 
36
- ## 1.0.7 - 2017-06-16
57
+ ### 1.0.7 - 2017-06-16
37
58
 
38
59
  - update for eslint 4 compat
39
60
  - Add results_redis_publish=true for haraka-results changes #9
40
61
 
41
62
 
42
- ## 1.0.6 - 2017-05-04
63
+ ### 1.0.6 - 2017-05-04
43
64
 
44
65
  - emit error if redis plugin didn't create connection
45
66
 
46
67
 
47
- ## 1.0.5 - 2017-02-06
68
+ ### 1.0.5 - 2017-02-06
48
69
 
49
70
  - move merge_redis_ini into load_karma_ini, so it also gets applied
50
71
  after a karma.ini change
51
72
  - skip redis operations when no connection exists
52
73
 
53
74
 
54
- ## 1.0.4 - 2017-01-29
75
+ ### 1.0.4 - 2017-01-29
55
76
 
56
77
  - use the new haraka-plugin-redis
57
78
  - remove exceptions for soft denials. This makes denial time simpler.
58
79
  - rules updates
59
80
 
60
81
 
61
- ## 1.0.3 - 2017-01-27
82
+ ### 1.0.3 - 2017-01-27
62
83
 
63
84
  - add rule #280 for known-senders
64
85
  - add support for 'length' type, with eq, gt, and lt operators
65
86
  - use shared haraka-eslint
66
87
 
67
88
 
68
- ## 1.0.2 - 2017-01-24
89
+ ### 1.0.2 - 2017-01-24
69
90
 
70
91
  - use redis.merge_redis_ini()
package/README.md CHANGED
@@ -1,5 +1,4 @@
1
1
  [![Build Status][ci-img]][ci-url]
2
- [![Windows Build Status][ci-win-img]][ci-win-url]
3
2
  [![Code Climate][clim-img]][clim-url]
4
3
  [![NPM][npm-img]][npm-url]
5
4
 
@@ -204,11 +203,10 @@ Expect to use karma *with* content filters.
204
203
  [snf-url]: http://haraka.github.io/manual/plugins/messagesniffer.html
205
204
  [results-url]: http://haraka.github.io/manual/Results.html
206
205
 
206
+ [![CI]()]()
207
207
 
208
- [ci-img]: https://travis-ci.org/haraka/haraka-plugin-karma.svg
209
- [ci-url]: https://travis-ci.org/haraka/haraka-plugin-karma
210
- [ci-win-img]: https://ci.appveyor.com/api/projects/status/eut008hijj7gt995?svg=true
211
- [ci-win-url]: https://ci.appveyor.com/project/msimerson/haraka-plugin-karma
208
+ [ci-img]: https://github.com/haraka/haraka-plugin-karma/actions/workflows/ci.yml/badge.svg
209
+ [ci-url]: https://github.com/haraka/haraka-plugin-karma/actions/workflows/ci.yml
212
210
  [cov-img]: https://codecov.io/github/haraka/haraka-plugin-karma/coverage.svg
213
211
  [cov-url]: https://codecov.io/github/haraka/haraka-plugin-karma
214
212
  [clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-karma/badges/gpa.svg