Socket
Socket
Sign inDemoInstall

acorn-bigint

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

acorn-bigint - npm Package Compare versions

Comparing version 0.4.0 to 1.0.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

## 1.0.0 (2020-06-11)
* Remove `n` from bigint property (according to estree)
## 0.4.0 (2019-04-04)

@@ -2,0 +6,0 @@

2

index.js

@@ -11,3 +11,3 @@ "use strict"

const node = super.parseLiteral(value)
if (node.raw.charCodeAt(node.raw.length - 1) == 110) node.bigint = this.getNumberInput(node.start, node.end)
if (node.raw.charCodeAt(node.raw.length - 1) == 110) node.bigint = this.getNumberInput(node.start, node.end - 1)
return node

@@ -14,0 +14,0 @@ }

@@ -24,3 +24,3 @@ {

},
"version": "0.4.0",
"version": "1.0.0",
"devDependencies": {

@@ -27,0 +27,0 @@ "acorn": "^6.1.1",

@@ -7,3 +7,3 @@ # BigInt support for Acorn

It implements support for arbitrary precision integers as defined in the stage 3 proposal [BigInt: Arbitrary precision integers in JavaScript](https://github.com/tc39/proposal-bigint). The emitted AST follows [an ESTree proposal](https://github.com/estree/estree/blob/132be9b9ec376adbc082dd5f6ba78aefd7a1a864/experimental/bigint.md).
It implements support for arbitrary precision integers as defined in the stage 4 proposal [BigInt: Arbitrary precision integers in JavaScript](https://github.com/tc39/proposal-bigint). The emitted AST follows [ESTree](https://github.com/estree/estree/blob/master/es2020.md#bigintliteral).

@@ -10,0 +10,0 @@ ## Usage

@@ -32,3 +32,3 @@ "use strict"

raw: `${stringValue}n`,
bigint: `${stringValue}n`
bigint: stringValue
})

@@ -35,0 +35,0 @@

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