@solidity-parser/parser
Advanced tools
Comparing version 0.7.0 to 0.7.1
@@ -99,5 +99,11 @@ 'use strict'; | ||
PragmaDirective: function PragmaDirective(ctx) { | ||
// this converts something like >= 0.5.0 <0.7.0 | ||
// in >=0.5.0 <0.7.0 | ||
var value = ctx.pragmaValue().children[0].children.map(function (x) { | ||
return toText(x); | ||
}).join(" "); | ||
return { | ||
name: toText(ctx.pragmaName()), | ||
value: toText(ctx.pragmaValue()) | ||
value: value | ||
}; | ||
@@ -104,0 +110,0 @@ }, |
{ | ||
"name": "@solidity-parser/parser", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A Solidity parser built from a robust ANTLR 4 grammar", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -87,2 +87,8 @@ # Solidity Parser for JavaScript | ||
## Usage in the browser | ||
A browser-friendly version is available in `dist/solidity-parser.js` in the published version. | ||
If you are using webpack, keep in mind that minimizing your bundle will mangle function names, breaking the parser. To fix this you can just set `optimization.minimize` to `false`. | ||
## Contribution | ||
@@ -89,0 +95,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
3813359
80
42930
143
3