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.11.1 to 0.12.0

9

dist/index.js

@@ -212,3 +212,8 @@ import { parse } from '@astrojs/compiler/sync';

function printClassNames(value) {
return value.trim().split(/\s+/).join(' ');
const lines = value.trim().split(/[\r\n]+/);
const formattedLines = lines.map((line) => {
const spaces = line.match(/^\s+/);
return (spaces ? spaces[0] : '') + line.trim().split(/\s+/).join(' ');
});
return formattedLines.join('\n');
}

@@ -521,3 +526,3 @@ function manualDedent(input) {

case 'doctype': {
return ['<!DOCTYPE html>', hardline$1];
return ['<!doctype html>', hardline$1];
}

@@ -524,0 +529,0 @@ case 'comment':

{
"name": "prettier-plugin-astro",
"version": "0.11.1",
"version": "0.12.0",
"type": "module",

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