Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@solidity-parser/parser

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@solidity-parser/parser - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

foo.js

8

dist/ASTBuilder.js

@@ -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 @@ },

2

package.json
{
"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

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