New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

prettier-plugin-solidity

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-solidity - npm Package Compare versions

Comparing version 1.0.0-beta.7 to 1.0.0-beta.8

.github/workflows/CI.yml

11

package.json
{
"name": "prettier-plugin-solidity",
"version": "1.0.0-beta.7",
"version": "1.0.0-beta.8",
"description": "prettier plugin for solidity",
"main": "src",
"scripts": {
"coverage": "codecov",
"eslint": "eslint 'scripts/**' 'src/**' '__tests__/**' 'tests/**'",
"generateindexes": "SCRIPT=true node scripts/generateIndexes.js",
"generateindexes": "cross-env SCRIPT=true node scripts/generateIndexes.js",
"lint": "npm run eslint && npm run prettier -- --list-different",

@@ -14,3 +13,3 @@ "lint:fix": "npm run eslint -- --fix && npm run prettier -- --write",

"test": "jest",
"test:all": "FULL_TEST=1 jest"
"test:all": "cross-env FULL_TEST=1 jest"
},

@@ -66,3 +65,3 @@ "repository": {

"devDependencies": {
"codecov": "^3.8.1",
"cross-env": "^7.0.3",
"eslint": "^7.23.0",

@@ -86,5 +85,5 @@ "eslint-config-airbnb-base": "^14.2.1",

"semver": "^7.3.5",
"solidity-comments-extractor": "^0.0.4",
"solidity-comments-extractor": "^0.0.6",
"string-width": "^4.2.0"
}
}
# prettier-plugin-solidity
[![Build Status](https://travis-ci.com/prettier-solidity/prettier-plugin-solidity.svg?branch=master)](https://travis-ci.com/prettier-solidity/prettier-plugin-solidity)
[![codecov](https://codecov.io/gh/prettier-solidity/prettier-plugin-solidity/branch/master/graph/badge.svg)](https://codecov.io/gh/prettier-solidity/prettier-plugin-solidity)
[![Telegram](/assets/telegram-badge.svg)](https://t.me/joinchat/Je2WJFCfKJ_mht1XdhBh6w)

@@ -6,0 +4,0 @@ [![Twitter Follow](https://img.shields.io/twitter/follow/PrettierSol.svg?style=social)](https://twitter.com/PrettierSol)

@@ -1,2 +0,2 @@

/* This file was automatically generated on 1609182476.865 */
/* This file was automatically generated on 1617759496.914 */

@@ -3,0 +3,0 @@ /* eslint-disable global-require */

@@ -1,2 +0,2 @@

/* This file was automatically generated on 1609182476.784 */
/* This file was automatically generated on 1617759496.843 */

@@ -20,2 +20,3 @@ /* eslint-disable global-require */

BooleanLiteral: require('./BooleanLiteral.js'),
Break: require('./Break.js'),
BreakStatement: require('./BreakStatement.js'),

@@ -22,0 +23,0 @@ CatchClause: require('./CatchClause.js'),

@@ -10,9 +10,7 @@ const {

print: ({ node, options }) => {
const list = node.parts.map((part, index) =>
printString(part, {
...options,
const list = node.parts.map(
(part, index) =>
// node.isUnicode is an array of the same length as node.parts
// that indicates if that string fragment has the unicode prefix
isUnicode: node.isUnicode[index]
})
(node.isUnicode[index] ? 'unicode' : '') + printString(part, options)
);

@@ -19,0 +17,0 @@

const {
doc: {
builders: { concat }
builders: { concat, group }
}

@@ -8,5 +8,6 @@ } = require('prettier/standalone');

const UncheckedStatement = {
print: ({ path, print }) => concat(['unchecked ', path.call(print, 'block')])
print: ({ path, print }) =>
group(concat(['unchecked ', path.call(print, 'block')]))
};
module.exports = UncheckedStatement;

@@ -478,8 +478,7 @@ "use strict";

options.parser === "scss"
),
options.isUnicode
)
);
}
function makeString(rawContent, enclosingQuote, unescapeUnnecessaryEscapes, isUnicode) {
function makeString(rawContent, enclosingQuote, unescapeUnnecessaryEscapes) {
const otherQuote = enclosingQuote === '"' ? "'" : '"';

@@ -519,3 +518,3 @@

return (isUnicode ? "unicode" : "") + enclosingQuote + newContent + enclosingQuote;
return enclosingQuote + newContent + enclosingQuote;
}

@@ -522,0 +521,0 @@

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

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