babel-plugin-transform-es2015-typeof-symbol
Advanced tools
Comparing version 7.0.0-beta.0 to 7.0.0-beta.1
@@ -33,3 +33,3 @@ "use strict"; | ||
var isUnderHelper = path.findParent(function (path) { | ||
return path.isVariableDeclarator() && path.node.id === helper; | ||
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id.name === helper.name; | ||
}); | ||
@@ -36,0 +36,0 @@ |
{ | ||
"name": "babel-plugin-transform-es2015-typeof-symbol", | ||
"version": "7.0.0-beta.0", | ||
"version": "7.0.0-beta.1", | ||
"description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", | ||
@@ -12,4 +12,4 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-typeof-symbol", | ||
"devDependencies": { | ||
"babel-helper-plugin-test-runner": "7.0.0-beta.0" | ||
"babel-helper-plugin-test-runner": "7.0.0-beta.1" | ||
} | ||
} |
3107
3