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

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.12.1 to 0.12.2

17

dist/index.js

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

const dotReplace = 'ωP_';
const interrogationReplace = 'ΔP_';
function isInlineElement(path, opts, node) {

@@ -593,2 +594,3 @@ return node && node.type === 'element' && !isBlockElement(node, opts) && !isPreTagContent(path);

doc = doc.replaceAll(dotReplace, '.');
doc = doc.replaceAll(interrogationReplace, '?');
}

@@ -720,8 +722,13 @@ return doc;

}
if (attr.name.includes('@')) {
attr.name = attr.name.replaceAll('@', atSignReplace);
if (attr.kind !== 'spread') {
if (attr.name.includes('@')) {
attr.name = attr.name.replaceAll('@', atSignReplace);
}
if (attr.name.includes('.')) {
attr.name = attr.name.replaceAll('.', dotReplace);
}
if (attr.name.includes('?')) {
attr.name = attr.name.replaceAll('?', interrogationReplace);
}
}
if (attr.name.includes('.')) {
attr.name = attr.name.replaceAll('.', dotReplace);
}
return attr;

@@ -728,0 +735,0 @@ }

{
"name": "prettier-plugin-astro",
"version": "0.12.1",
"version": "0.12.2",
"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