@putout/operate
Advanced tools
Comparing version 8.13.0 to 8.14.0
@@ -6,6 +6,13 @@ 'use strict'; | ||
ObjectProperty(path) { | ||
if (path.node.key.name !== from) | ||
const {node} = path; | ||
const {key, value} = node; | ||
if (key.name !== from) | ||
return; | ||
path.node.key.name = to; | ||
key.name = to; | ||
if (key.name === value.name) | ||
node.shorthand = true; | ||
path.stop(); | ||
@@ -12,0 +19,0 @@ }, |
{ | ||
"name": "@putout/operate", | ||
"version": "8.13.0", | ||
"version": "8.14.0", | ||
"type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
19627
397