Socket
Socket
Sign inDemoInstall

tailwindcss

Package Overview
Dependencies
Maintainers
3
Versions
1738
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tailwindcss - npm Package Compare versions

Comparing version 3.4.5 to 3.4.6

2

lib/lib/defaultExtractor.js

@@ -77,3 +77,3 @@ "use strict";

// captured.
let next = parseInt(segments[idx + 1]);
let next = Number(segments[idx + 1]);
if (isNaN(next)) {

@@ -80,0 +80,0 @@ results.push(segment);

@@ -21,5 +21,7 @@ "use strict";

sel.each((sel)=>{
// Wrap with :is if it's not already wrapped
let isWrapped = sel.nodes[0].type === "pseudo" && sel.nodes[0].value === ":is" && sel.nodes.every((node)=>node.type !== "combinator");
if (!isWrapped) {
// For nesting, we only need to wrap a selector with :is() if it has a top-level combinator,
// e.g. `.dark .text-white`, to be independent of DOM order. Any other selector, including
// combinators inside of pseudos like `:where()`, are ok to nest.
let shouldWrap = sel.nodes.some((node)=>node.type === "combinator");
if (shouldWrap) {
sel.nodes = [

@@ -26,0 +28,0 @@ _postcssselectorparser.default.pseudo({

{
"name": "tailwindcss",
"version": "3.4.5",
"version": "3.4.6",
"description": "A utility-first CSS framework for rapidly building custom user interfaces.",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -35,3 +35,3 @@ import * as regex from './regex'

// captured.
let next = parseInt(segments[idx + 1])
let next = Number(segments[idx + 1])
if (isNaN(next)) {

@@ -38,0 +38,0 @@ results.push(segment)

@@ -8,9 +8,8 @@ import parser from 'postcss-selector-parser'

sel.each((sel) => {
// Wrap with :is if it's not already wrapped
let isWrapped =
sel.nodes[0].type === 'pseudo' &&
sel.nodes[0].value === ':is' &&
sel.nodes.every((node) => node.type !== 'combinator')
// For nesting, we only need to wrap a selector with :is() if it has a top-level combinator,
// e.g. `.dark .text-white`, to be independent of DOM order. Any other selector, including
// combinators inside of pseudos like `:where()`, are ok to nest.
let shouldWrap = sel.nodes.some((node) => node.type === 'combinator')
if (!isWrapped) {
if (shouldWrap) {
sel.nodes = [

@@ -17,0 +16,0 @@ parser.pseudo({

Sorry, the diff of this file is too big to display

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