@putout/compare
Advanced tools
Comparing version 12.0.0 to 12.0.1
@@ -29,3 +29,2 @@ 'use strict'; | ||
const {types} = require('@putout/babel'); | ||
const { | ||
@@ -36,3 +35,3 @@ isClassBody, | ||
isTemplateElement, | ||
} = types; | ||
} = require('@babel/types'); | ||
@@ -39,0 +38,0 @@ const isEmptyBlock = (a) => isBlock(a) && !a.body.length; |
'use strict'; | ||
const {template} = require('@putout/engine-parser'); | ||
const {types} = require('@putout/babel'); | ||
const { | ||
isIdentifier, | ||
isExpressionStatement, | ||
isStringLiteral, | ||
} = require('@babel/types'); | ||
const { | ||
findVarsWays, | ||
@@ -29,8 +34,2 @@ getValues, | ||
const { | ||
isIdentifier, | ||
isExpressionStatement, | ||
isStringLiteral, | ||
} = types; | ||
const {keys} = Object; | ||
@@ -37,0 +36,0 @@ const {isArray} = Array; |
'use strict'; | ||
const {template} = require('@putout/engine-parser'); | ||
const {types} = require('@putout/babel'); | ||
const { | ||
@@ -19,3 +19,3 @@ isBlockStatement, | ||
isTSTypeReference, | ||
} = types; | ||
} = require('@babel/types'); | ||
@@ -279,4 +279,5 @@ const isStr = (a) => typeof a === 'string'; | ||
if (isTSTypeReference(a) && LINKED_NODE.test(a.typeName.name)) | ||
if (isTSTypeReference(a) && LINKED_NODE.test(a.typeName.name)) { | ||
return true; | ||
} | ||
@@ -283,0 +284,0 @@ return isTSTypeParameter(a) && LINKED_NODE.test(a.name); |
'use strict'; | ||
const {types} = require('@putout/babel'); | ||
const { | ||
@@ -10,3 +9,3 @@ isIdentifier, | ||
isTSTypeReference, | ||
} = types; | ||
} = require('@babel/types'); | ||
@@ -41,5 +40,2 @@ const parseName = (node) => { | ||
if (isTSTypeReference(templateStore[name]) && isIdentifier(nodeValue)) | ||
return true; | ||
add(templateStore[name], nodeValue); | ||
@@ -46,0 +42,0 @@ |
'use strict'; | ||
const traverse = require('@babel/traverse').default; | ||
const jessy = require('jessy'); | ||
const nessy = require('nessy'); | ||
const {traverse, types} = require('@putout/babel'); | ||
const {template} = require('@putout/engine-parser'); | ||
@@ -11,2 +11,11 @@ | ||
const { | ||
isIdentifier, | ||
isStatement, | ||
isJSXElement, | ||
isLiteral, | ||
isTemplateLiteral, | ||
TemplateElement, | ||
} = require('@babel/types'); | ||
const { | ||
is, | ||
@@ -20,11 +29,2 @@ isArgsStr, | ||
const { | ||
isIdentifier, | ||
isStatement, | ||
isJSXElement, | ||
isLiteral, | ||
isTemplateLiteral, | ||
TemplateElement, | ||
} = types; | ||
const {entries} = Object; | ||
@@ -67,7 +67,7 @@ const isNumber = (a) => typeof a === 'number'; | ||
'Identifier|BooleanLiteral|StringLiteral|TemplateElement|RegExpLiteral|JSXText|JSXAttribute|TSTypeReference'(path) { | ||
const {node} = path; | ||
if (isInsideTypeReference(path)) | ||
return; | ||
const {node} = path; | ||
const way = []; | ||
@@ -74,0 +74,0 @@ const name = extract(node); |
{ | ||
"name": "@putout/compare", | ||
"version": "12.0.0", | ||
"version": "12.0.1", | ||
"type": "commonjs", | ||
@@ -27,3 +27,4 @@ "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
"dependencies": { | ||
"@putout/babel": "^1.0.5", | ||
"@babel/traverse": "^7.12.5", | ||
"@babel/types": "^7.12.6", | ||
"@putout/engine-parser": "^7.0.0", | ||
@@ -30,0 +31,0 @@ "@putout/operate": "^9.0.0", |
27048
7
662
+ Added@babel/traverse@^7.12.5
+ Added@babel/types@^7.12.6
- Removed@putout/babel@^1.0.5
- Removed@putout/babel@1.6.1(transitive)