@babel/plugin-transform-typeof-symbol
Advanced tools
Comparing version 7.8.3 to 7.8.4
@@ -42,4 +42,12 @@ "use strict"; | ||
let isUnderHelper = path.findParent(path => { | ||
if (path.isFunction()) { | ||
var _path$get; | ||
return ((_path$get = path.get("body.directives.0")) == null ? void 0 : _path$get.node.value.value) === "@babel/helpers - typeof"; | ||
} | ||
}); | ||
if (isUnderHelper) return; | ||
const helper = this.addHelper("typeof"); | ||
const isUnderHelper = path.findParent(path => { | ||
isUnderHelper = path.findParent(path => { | ||
return path.isVariableDeclarator() && path.node.id === helper || path.isFunctionDeclaration() && path.node.id && path.node.id.name === helper.name; | ||
@@ -46,0 +54,0 @@ }); |
{ | ||
"name": "@babel/plugin-transform-typeof-symbol", | ||
"version": "7.8.3", | ||
"version": "7.8.4", | ||
"description": "This transformer wraps all typeof expressions with a method that replicates native behaviour. (ie. returning “symbol” for symbols)", | ||
@@ -21,6 +21,10 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-typeof-symbol", | ||
"devDependencies": { | ||
"@babel/core": "^7.8.3", | ||
"@babel/helper-plugin-test-runner": "^7.8.3" | ||
"@babel/core": "^7.8.4", | ||
"@babel/helper-plugin-test-runner": "^7.8.3", | ||
"@babel/runtime": "^7.8.4", | ||
"@babel/runtime-corejs2": "^7.8.4", | ||
"@babel/runtime-corejs3": "^7.8.4", | ||
"resolve": "^1.15.0" | ||
}, | ||
"gitHead": "a7620bd266ae1345975767bbc7abf09034437017" | ||
"gitHead": "5c2e6bc07fed3d28801d93168622c99ae622653a" | ||
} |
4744
58
6