prettier-plugin-solidity
Advanced tools
Comparing version 1.0.0-beta.18 to 1.0.0-beta.19
{ | ||
"name": "prettier-plugin-solidity", | ||
"version": "1.0.0-beta.18", | ||
"version": "1.0.0-beta.19", | ||
"description": "A Prettier Plugin for automatically formatting your Solidity code.", | ||
@@ -53,2 +53,6 @@ "main": "src", | ||
"name": "Klaus Hott Vidal" | ||
}, | ||
{ | ||
"email": "soham@zemse.in", | ||
"name": "Soham Zemse" | ||
} | ||
@@ -65,26 +69,26 @@ ], | ||
"devDependencies": { | ||
"@babel/code-frame": "^7.14.5", | ||
"@babel/code-frame": "^7.16.0", | ||
"cross-env": "^7.0.3", | ||
"dir-to-object": "^2.0.0", | ||
"eslint": "^7.32.0", | ||
"eslint-config-airbnb-base": "^14.2.1", | ||
"eslint": "^8.2.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.24.2", | ||
"jest": "^27.1.0", | ||
"eslint-plugin-import": "^2.25.3", | ||
"jest": "^27.3.1", | ||
"jest-mock-now": "^1.3.0", | ||
"jest-snapshot-serializer-ansi": "^1.0.0", | ||
"jest-snapshot-serializer-raw": "^1.2.0", | ||
"jest-watch-typeahead": "^0.6.4", | ||
"jest-watch-typeahead": "^1.0.0", | ||
"lines-and-columns": "^1.1.6", | ||
"outdent": "^0.8.0", | ||
"prettier": "^2.3.2", | ||
"solc": "^0.8.7-fixed" | ||
"prettier": "^2.4.1", | ||
"solc": "^0.8.10" | ||
}, | ||
"dependencies": { | ||
"@solidity-parser/parser": "^0.13.2", | ||
"emoji-regex": "^9.2.2", | ||
"@solidity-parser/parser": "^0.14.0", | ||
"emoji-regex": "^10.0.0", | ||
"escape-string-regexp": "^4.0.0", | ||
"semver": "^7.3.5", | ||
"solidity-comments-extractor": "^0.0.7", | ||
"string-width": "^4.2.2" | ||
"string-width": "^4.2.3" | ||
}, | ||
@@ -91,0 +95,0 @@ "peerDependencies": { |
@@ -68,2 +68,3 @@ /* This file was automatically generated on 1621622090.034 */ | ||
TupleExpression: require('./TupleExpression'), | ||
TypeDefinition: require('./TypeDefinition'), | ||
TypeNameExpression: require('./TypeNameExpression'), | ||
@@ -70,0 +71,0 @@ UnaryOperation: require('./UnaryOperation'), |
@@ -23,11 +23,2 @@ const extractComments = require('solidity-comments-extractor'); | ||
PragmaDirective(ctx) { | ||
// @TODO: remove hack once the retrieval of @solidity-parser/parser is fixed | ||
ctx.value = ctx.value | ||
.replace(/([<>=])/g, ' $1') | ||
.replace(/< =/g, '<=') | ||
.replace(/> =/g, '>=') | ||
.trim(); | ||
if (ctx.value.split(' ').length > 1) { | ||
ctx.value = semver.validRange(ctx.value); | ||
} | ||
// if the pragma is not for solidity we leave. | ||
@@ -34,0 +25,0 @@ if (ctx.name !== 'solidity') return; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
695858
315
4798
+ Added@solidity-parser/parser@0.14.5(transitive)
+ Addedemoji-regex@10.4.0(transitive)
- Removed@solidity-parser/parser@0.13.2(transitive)
- Removedemoji-regex@9.2.2(transitive)
Updatedemoji-regex@^10.0.0
Updatedstring-width@^4.2.3