babel-plugin-transform-bigint
Advanced tools
Comparing version 1.0.30 to 1.0.31
17
index.js
@@ -327,10 +327,13 @@ // see https://github.com/babel/babel/pull/6015 | ||
} | ||
if (path.node.callee.type === 'Identifier' && | ||
path.node.callee.name === 'Number') { | ||
return false; | ||
if (path.node.callee.type === 'Identifier') { | ||
if (path.node.callee.name === 'Number') { | ||
return false; | ||
} | ||
if (path.node.callee.name === 'String') { | ||
return false; | ||
} | ||
if (path.node.callee.name === 'BigInt') { | ||
return JSBI; | ||
} | ||
} | ||
if (path.node.callee.type === 'Identifier' && | ||
path.node.callee.name === 'BigInt') { | ||
return JSBI; | ||
} | ||
if (path.node.callee.type === 'MemberExpression' && | ||
@@ -337,0 +340,0 @@ path.node.callee.object.type === 'Identifier' && |
{ | ||
"name": "babel-plugin-transform-bigint", | ||
"version": "1.0.30", | ||
"version": "1.0.31", | ||
"description": "A plugin for babel to transform `x * y` into something like `JSBI.multiply(x, y)` to support bigints.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
58281
1000