haraka-plugin-karma 1.0.14 → 2.0.0

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,48 @@
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
+ runs-on: ${{ matrix.os }}
15
+ services:
16
+ redis:
17
+ image: redis
18
+ ports:
19
+ - 6379/tcp
20
+ strategy:
21
+ matrix:
22
+ os: [ ubuntu-latest ]
23
+ node-version: [ 14, 16, 18 ]
24
+ fail-fast: false
25
+ steps:
26
+ - uses: actions/checkout@v2
27
+ - uses: actions/setup-node@v3
28
+ name: Node.js ${{ matrix.node-version }}
29
+ with:
30
+ node-version: ${{ matrix.node-version }}
31
+ - run: npm install
32
+ - run: npm test
33
+
34
+ test-win:
35
+ runs-on: ${{ matrix.os }}
36
+ strategy:
37
+ matrix:
38
+ os: [ windows-latest ]
39
+ node-version: [ 14, 16, 18 ]
40
+ fail-fast: false
41
+ steps:
42
+ - uses: actions/checkout@v3
43
+ - uses: actions/setup-node@v3
44
+ name: Use Node.js ${{ matrix.node-version }}
45
+ with:
46
+ node-version: ${{ matrix.node-version }}
47
+ - run: npm install
48
+ - run: npm test
@@ -0,0 +1,29 @@
1
+ name: publish
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - master
7
+
8
+ env:
9
+ CI: true
10
+
11
+ jobs:
12
+ publish:
13
+ uses: haraka/.github/.github/workflows/publish.yml@master
14
+ secrets: inherit
15
+
16
+ publish-gpr:
17
+ runs-on: ubuntu-latest
18
+ permissions:
19
+ contents: read
20
+ packages: write
21
+ steps:
22
+ - uses: actions/checkout@v3
23
+ - uses: actions/setup-node@v3
24
+ with:
25
+ node-version: 16
26
+ registry-url: https://npm.pkg.github.com/
27
+ - run: npm publish
28
+ env:
29
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/Changes.md CHANGED
@@ -1,7 +1,17 @@
1
+
2
+
3
+ ## 2.0.0 - 2022-03-29
4
+
5
+ - remove lots of plugin=this
6
+ - remove unnecessary braces and trailing ;
7
+ - some promises.
8
+
9
+
1
10
  ## 1.0.14 - 2022-02-14
2
11
 
3
12
  - try to unsubscribe in case connection is marked to skip during transaction
4
13
 
14
+
5
15
  ## 1.0.13 - 2019-04-23
6
16
 
7
17
  - add 'exists' pattern
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