@putout/printer
Advanced tools
| 'use strict'; | ||
| module.exports.wrongShorthand = ({computed, isAssign, keyPath, valuePath}) => { | ||
| return !computed && !isAssign && keyPath.node.name !== valuePath.node.name; | ||
| }; |
| 'use strict'; | ||
| const {types} = require('@putout/babel'); | ||
| const {wrongShorthand} = require('./wrong-shortand'); | ||
| const {wrongShorthand} = require('./wrong-shorthand'); | ||
@@ -6,0 +6,0 @@ const { |
@@ -17,9 +17,7 @@ 'use strict'; | ||
| if (!exists(constraint)) | ||
| return; | ||
| if (exists(constraint)) { | ||
| write(' extends '); | ||
| traverse(constraint); | ||
| } | ||
| write(' extends '); | ||
| traverse(constraint); | ||
| const defaultPath = path.get('default'); | ||
@@ -26,0 +24,0 @@ |
+1
-1
| { | ||
| "name": "@putout/printer", | ||
| "version": "15.23.1", | ||
| "version": "15.24.0", | ||
| "type": "commonjs", | ||
@@ -5,0 +5,0 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", |
| 'use strict'; | ||
| module.exports.wrongShorthand = ({computed, isAssign, keyPath, valuePath}) => { | ||
| return !computed && !isAssign && keyPath.node.name !== valuePath.node.name; | ||
| }; |
Sorry, the diff of this file is too big to display
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
291589
0.03%