Socket
Socket
Sign inDemoInstall

prettier-plugin-astro

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettier-plugin-astro - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

6

CHANGELOG.md
# prettier-plugin-astro
## 0.4.1
### Patch Changes
- babd8c3: Properly trim the class attribute on HTML elements
## 0.4.0

@@ -4,0 +10,0 @@

9

dist/index.js

@@ -201,2 +201,5 @@ 'use strict';

}
function printClassNames(value) {
return value.trim().split(/\s+/).join(' ');
}
function manualDedent(input) {

@@ -433,3 +436,7 @@ let minTabSize = Infinity;

case 'quoted':
return [line$1, name, '=', quote, node.value, quote];
let value = node.value;
if (node.name === 'class') {
value = printClassNames(value);
}
return [line$1, name, '=', quote, value, quote];
case 'shorthand':

@@ -436,0 +443,0 @@ return [line$1, '{', name, '}'];

2

package.json
{
"name": "prettier-plugin-astro",
"version": "0.4.0",
"version": "0.4.1",
"type": "commonjs",

@@ -5,0 +5,0 @@ "description": "A Prettier Plugin for formatting Astro files",

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