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

@glideapps/prettier-plugin-glide-tailwind

Package Overview
Dependencies
Maintainers
8
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@glideapps/prettier-plugin-glide-tailwind - npm Package Compare versions

Comparing version 3.1.2 to 3.1.3

3

lib/node-formatters/jsx-attributes.js

@@ -14,3 +14,4 @@ "use strict";

(node.value.type === "StringLiteral" || node.value.type === "Literal")) {
const indentString = support_1.getIndentationAmount(node.name.loc.start.column);
// console.log(node);
const indentString = support_1.getIndentationAmount(node.value.loc.start.column);
const indentedNewLine = `\n${indentString}`;

@@ -17,0 +18,0 @@ const rawValue = node.value.value;

@@ -17,3 +17,2 @@ "use strict";

// grabs line of code, column then divides by fixed value of 4, where 4 is number of spaces
// the additional +1 is to indent it below the child
const indentString = support_1.getIndentationAmount(node.loc.start.column);

@@ -20,0 +19,0 @@ const indentedNewLine = `\n${indentString}`;

@@ -6,3 +6,4 @@ "use strict";

// TODO: Smarter things to do here would be to grab the ENV value from the editor indent
const amountToIndent = Math.floor(columnNumber / exports.NUM_OF_SPACES);
// columns are 1 based
const amountToIndent = Math.floor((columnNumber - 1) / exports.NUM_OF_SPACES);
let resultString = "";

@@ -9,0 +10,0 @@ for (let i = 0; i < amountToIndent; i++) {

{
"name": "@glideapps/prettier-plugin-glide-tailwind",
"version": "3.1.2",
"version": "3.1.3",
"description": "Formatting and sorting for glide tailwind classes",

@@ -5,0 +5,0 @@ "author": "Original author - Ari Seyhun | Modified by Bry Nguyen",

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