@putout/plugin-package-json 2.0.0 → 3.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.
@@ -10,14 +10,14 @@ const {
10
10
  StringLiteral,
11
11
  } = types;
12
12
 
13
- const {findProperties} = operator;
13
+ const {getProperties} = operator;
14
14
 
15
15
  module.exports.report = () => `Add 'type' of module to 'package.json'`;
16
16
 
17
17
  module.exports.traverse = ({push}) => ({
18
18
  '__putout_processor_json(__a)': (path) => {
19
19
  const __aPath = path.get('arguments.0');
20
- const {versionPath, typePath} = findProperties(__aPath, ['version', 'type']);
20
+ const {versionPath, typePath} = getProperties(__aPath, ['version', 'type']);
21
21
 
22
22
  if (typePath)
23
23
  return;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const {findProperties} = require('putout').operator;
3
+ const {getProperties} = require('putout').operator;
4
4
 
5
5
  module.exports.report = () => `Remove 'nyc' section of 'package.json', use file '.nycrc.json' intead`;
6
6
 
@@ -11,7 +11,7 @@ module.exports.fix = (path) => {
11
11
  module.exports.traverse = ({push}) => ({
12
12
  '__putout_processor_json(__a)': (path) => {
13
13
  const __aPath = path.get('arguments.0');
14
- const {nycPath} = findProperties(__aPath, ['nyc']);
14
+ const {nycPath} = getProperties(__aPath, ['nyc']);
15
15
 
16
16
  if (!nycPath)
17
17
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-package-json",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "putout plugin for package.json",
@@ -41,7 +41,7 @@
41
41
  "nodemon": "^2.0.1"
42
42
  },
43
43
  "peerDependencies": {
44
- "putout": ">=23"
44
+ "putout": ">=24"
45
45
  },
46
46
  "license": "MIT",
47
47
  "engines": {