acorn-bigint
Advanced tools
Comparing version 0.4.0 to 1.0.0
@@ -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 @@ |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
20520
0