Socket
Socket
Sign inDemoInstall

babel-plugin-transform-jsbi-to-bigint

Package Overview
Dependencies
0
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

2

dist/index.js

@@ -61,3 +61,3 @@ "use strict";

var createBigIntConstructor = function createBigIntConstructor(path) {
var reInteger = /^(?:0|[1-9][0-9]+)$/;
var reInteger = /^(?:0|[1-9][0-9]*)$/;
var arg = path.node.arguments[0];

@@ -64,0 +64,0 @@

{
"name": "babel-plugin-transform-jsbi-to-bigint",
"version": "1.0.0",
"version": "1.0.1",
"description": "Compile JSBI code to native BigInt code.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -13,3 +13,3 @@ # babel-plugin-transform-jsbi-to-bigint [![Build status](https://travis-ci.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint.svg?branch=master)](https://travis-ci.com/GoogleChromeLabs/babel-plugin-transform-jsbi-to-bigint)

const a = JSBI.BigInt(Number.MAX_SAFE_INTEGER);
const b = JSBI.BigInt(12);
const b = JSBI.BigInt('2');

@@ -45,3 +45,3 @@ JSBI.add(a, b);

const a = BigInt(Number.MAX_SAFE_INTEGER);
const b = 12n;
const b = 2n;

@@ -48,0 +48,0 @@ a + b;

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