babel-plugin-rewire-ts
Advanced tools
Comparing version
@@ -34,3 +34,3 @@ 'use strict'; | ||
return variableBinding.referencePaths !== null && !(parent.type === 'VariableDeclarator' && parent.id == node) && !(parent.type === 'ForInStatement' && parent.left == node) && !(parent.type === 'FunctionExpression' && parent.id === node) && !(parent.type === 'MemberExpression' && parent.property === node) && !(parent.type === 'ObjectProperty' && parent.key === node) && !(parent.type === 'RestProperty') && !(parent.type === 'ObjectMethod' && parent.key === node) && !(parent.type === 'ObjectProperty' && path.parentPath && path.parentPath.parent && path.parentPath.parent.type === 'ObjectPattern') && !(parent.type === 'ExportSpecifier') && !(parent.type === 'ImportSpecifier') && !(parent.type === 'ObjectTypeProperty') && !(parent.type === 'ClassMethod') && !(parent.type === 'TSDeclareFunction') && !(parent.type === 'TSExpressionWithTypeArguments') && !(parent.type === 'TSQualifiedName') && !(parent.type === 'TSTypeQuery') && !(parent.type === 'TSTypeReference') && !(parent.type === 'TSInterfaceDeclaration'); | ||
return variableBinding.referencePaths !== null && !(parent.type === 'VariableDeclarator' && parent.id == node) && !(parent.type === 'ForInStatement' && parent.left == node) && !(parent.type === 'FunctionExpression' && parent.id === node) && !(parent.type === 'MemberExpression' && parent.property === node) && !(parent.type === 'ObjectProperty' && parent.key === node) && !(parent.type === 'RestProperty') && !(parent.type === 'ObjectMethod' && parent.key === node) && !(parent.type === 'ObjectProperty' && path.parentPath && path.parentPath.parent && path.parentPath.parent.type === 'ObjectPattern') && !(parent.type === 'ExportSpecifier') && !(parent.type === 'ImportSpecifier') && !(parent.type === 'ObjectTypeProperty') && !(parent.type === 'ClassMethod') && !(parent.type === 'TSDeclareFunction') && !(parent.type === 'TSExpressionWithTypeArguments') && !(parent.type === 'TSQualifiedName') && !(parent.type === 'TSTypeQuery') && !(parent.type === 'TSTypeReference') && !(parent.type === 'TSInterfaceDeclaration') && !(parent.type === 'TSTypeAliasDeclaration'); | ||
} | ||
@@ -37,0 +37,0 @@ |
{ | ||
"name": "babel-plugin-rewire-ts", | ||
"version": "1.3.2", | ||
"version": "1.3.3", | ||
"description": "A babel plugin adding the ability to rewire module dependencies. This enables to mock modules for testing purposes.", | ||
@@ -5,0 +5,0 @@ "main": "lib/babel-plugin-rewire.js", |
59142
0.08%