Socket
Socket
Sign inDemoInstall

babel-plugin-transform-bigint

Package Overview
Dependencies
55
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc