@putout/plugin-remove-duplicate-keys 8.0.0 → 8.1.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.
@@ -13,6 +13,7 @@ const {
13
13
  isObjectProperty,
14
14
  isStringLiteral,
15
15
  isObjectPattern,
16
+ isCallExpression,
16
17
  } = types;
17
18
 
18
19
  const isSpreadId = (name) => (a) => isSpreadElement(a) && isIdentifier(a.argument, {
@@ -94,6 +95,9 @@ export const traverse = ({push}) => ({
94
95
  }
95
96
 
96
97
  if (isObjectProperty(prop) && isMemberExpression(prop.key)) {
98
+ if (isCallExpression(prop.key.object))
99
+ continue;
100
+
97
101
  const {computed} = prop;
98
102
  const name = extract(prop.key);
99
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/plugin-remove-duplicate-keys",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "type": "module",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout plugin adds ability to find and remove duplicate keys",
@@ -34,11 +34,11 @@
34
34
  ],
35
35
  "devDependencies": {
36
36
  "@putout/eslint-flat": "^3.0.0",
37
- "@putout/test": "^13.0.0",
37
+ "@putout/test": "^14.0.0",
38
38
  "c8": "^10.0.0",
39
39
  "eslint": "^9.0.0",
40
40
  "eslint-plugin-n": "^17.0.0",
41
- "eslint-plugin-putout": "^27.0.0",
41
+ "eslint-plugin-putout": "^28.0.0",
42
42
  "madrun": "^11.0.0",
43
43
  "nodemon": "^3.0.1"
44
44
  },