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.26 to 1.0.27

3

__tests__/index-test.js

@@ -8,3 +8,3 @@ // to run this test file use `npx jest` in the parent folder or `npm run test`

/*
it('it works with AssignmentExpressions', function () {

@@ -32,3 +32,2 @@ const example = `

});
*/

@@ -35,0 +34,0 @@ /*

@@ -578,13 +578,2 @@ // see https://github.com/babel/babel/pull/6015

AssignmentExpression: function (path, state) {
const JSBI = canBeBigInt(path);
if (JSBI !== false) {
const operator = path.node.operator;
if (operator.endsWith('=')) {
const functionName = getFunctionName(operator.slice(0, -'='.length));
if (functionName != null) {
throw new RangeError('AssignmentExpressions are not supported because of the complexity: ' + path);
}
}
}
/*
const isConstant = function (path) {

@@ -653,3 +642,2 @@ if (types.isStringLiteral(path.node)) {

}
*/
},

@@ -656,0 +644,0 @@ Program: function (path) {

{
"name": "babel-plugin-transform-bigint",
"version": "1.0.26",
"version": "1.0.27",
"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