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 2.2.14 to 2.2.15

2

lib/utils/update-options.d.ts

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

import type TWClassesSorter from 'tailwind-classes-sorter';
import type TWClassesSorter from "tailwind-classes-sorter";
export default function updateOptions(twClassesSorter: TWClassesSorter, options: any): void;

@@ -8,9 +8,11 @@ "use strict";

function updateOptions(twClassesSorter, options) {
if (typeof options === 'undefined') {
if (typeof options === "undefined") {
return;
}
twClassesSorter.classesPosition = options.twClassesPosition || 'components-first';
twClassesSorter.unknownClassesPosition = options.twUnknownClassesPosition || 'start';
twClassesSorter.classesPosition = options.twClassesPosition || "components-first";
twClassesSorter.unknownClassesPosition = options.twUnknownClassesPosition || "start";
if (options.twConfig) {
twClassesSorter.setConfig(path_1.default.join(__dirname, '../..', options.twConfig));
// Swap in the commented one to get tests working
// twClassesSorter.setConfig(path.join(__dirname, "../..", options.twConfig));
twClassesSorter.setConfig(path_1.default.join(__dirname, "../../../..", options.twConfig));
}

@@ -20,7 +22,7 @@ else {

}
twClassesSorter.setPluginOrder((defaultOrder) => {
const customOrder = options.twPluginsOrder.split(',');
return [...customOrder, ...defaultOrder.filter((plugin) => !customOrder.includes(plugin))];
twClassesSorter.setPluginOrder(defaultOrder => {
const customOrder = options.twPluginsOrder.split(",");
return [...customOrder, ...defaultOrder.filter(plugin => !customOrder.includes(plugin))];
});
}
exports.default = updateOptions;
{
"name": "@glideapps/prettier-plugin-glide-tailwind",
"version": "2.2.14",
"version": "2.2.15",
"description": "Formatting and sorting for glide tailwind classes",

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

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