@putout/plugin-coverage 1.0.0 β†’ 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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @putout/plugin-coverage [![NPM version][NPMIMGURL]][NPMURL]
2
2
 
3
3
  [NPMIMGURL]: https://img.shields.io/npm/v/@putout/plugin-coverage.svg?style=flat&longCache=true
4
- [NPMURL]: https://npmjs.org/package/@putout/plugin-coverage"npm"
4
+ [NPMURL]: https://npmjs.org/package/@putout/plugin-coverage "npm"
5
5
 
6
6
  🐊[**Putout**](https://github.com/coderaiser/putout) plugin helps with coverage configuration files, like :`.nycrc.json`, `c8rc.json`.
7
7
  Checkout in 🐊[**Putout Editor**](https://putout.cloudcmd.io/#/gist/104468b5dc2f2f39bbddd327bbcfc8cf/494e50c1c06a1626f24ac948a0685ccc711be97d).
package/lib/coverage.js CHANGED
@@ -1,20 +1,16 @@
1
1
  import {operator} from 'putout';
2
2
 
3
3
  const {ignore, __json} = operator;
4
- const {
4
+
5
+ export const {
5
6
  match,
6
7
  replace,
7
8
  report,
8
- } = ignore(__json, {
9
+ } = ignore({
10
+ type: __json,
9
11
  name: '.nycrc.json',
10
12
  property: 'exclude',
11
13
  list: [
12
14
  '**/*.config.*',
13
15
  ],
14
16
  });
15
-
16
- export {
17
- match,
18
- replace,
19
- report,
20
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-coverage",
3
- "version": "1.0.0",
3
+ "version": "2.0.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin helps with coverage configs",
@@ -11,7 +11,7 @@
11
11
  "changelog": false,
12
12
  "repository": {
13
13
  "type": "git",
14
- "url": "git://github.com/coderaiser/putout.git"
14
+ "url": "git+https://github.com/coderaiser/putout.git"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "madrun test",
@@ -31,21 +31,21 @@
31
31
  "coverage"
32
32
  ],
33
33
  "devDependencies": {
34
- "@putout/test": "^9.0.0",
35
- "c8": "^9.0.0",
36
- "eslint": "^9.0.0",
34
+ "@putout/eslint-flat": "^4.0.0",
35
+ "@putout/test": "^15.0.0",
36
+ "c8": "^10.0.0",
37
+ "eslint": "^10.0.0",
37
38
  "eslint-plugin-n": "^17.0.0",
38
- "eslint-plugin-putout": "^22.0.0",
39
- "lerna": "^6.0.1",
40
- "madrun": "^10.0.0",
39
+ "eslint-plugin-putout": "^30.0.0",
40
+ "madrun": "^12.0.0",
41
41
  "nodemon": "^3.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "putout": ">=35"
44
+ "putout": ">=41"
45
45
  },
46
46
  "license": "MIT",
47
47
  "engines": {
48
- "node": ">=18"
48
+ "node": ">=22"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"