Socket
Socket
Sign inDemoInstall

babel-plugin-transform-bigint

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-bigint - npm Package Compare versions

Comparing version 1.0.15 to 1.0.16

4

__tests__/index-test.js

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

it('it does not mutable variables', function () {
it('it does not replace expression for a mutable variable', function () {
const example = `

@@ -165,3 +165,3 @@ function f() {

it('it does not mutable variables2', function () {
it('it does not replace expression for a mutable variable2', function () {
const example = `

@@ -168,0 +168,0 @@ function f() {

@@ -100,3 +100,6 @@ // see https://github.com/babel/babel/pull/6015

if (path.node.type === 'AssignmentExpression') {
return canBeBigInt(path.get('right'));
if (path.node.operator === '=') {
return canBeBigInt(path.get('right'));
}
return and(canBeBigInt(path.get('left')), canBeBigInt(path.get('right')));
}

@@ -103,0 +106,0 @@ if (path.node.type === 'Identifier') {

{
"name": "babel-plugin-transform-bigint",
"version": "1.0.15",
"version": "1.0.16",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc