🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

postcss

Package Overview
Dependencies
Maintainers
1
Versions
286
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss - npm Package Compare versions

Comparing version
8.5.21
to
8.5.22
+1
-1
lib/processor.js

@@ -10,3 +10,3 @@ 'use strict'

constructor(plugins = []) {
this.version = '8.5.21'
this.version = '8.5.22'
this.plugins = this.normalize(plugins)

@@ -13,0 +13,0 @@ }

@@ -65,10 +65,11 @@ 'use strict'

let childSemicolon = last !== i || semicolon
// A childless at-rule that still has following siblings must be
// terminated. Without the semicolon those trailing comments are folded
// into the at-rule's prelude and disappear when the output is re-parsed.
// A childless at-rule or a custom property declaration that still has
// following siblings must be terminated. Without the semicolon those
// trailing comments are folded into the at-rule's prelude or the custom
// property's value and disappear when the output is re-parsed.
if (
!childSemicolon &&
i < nodes.length - 1 &&
child.type === 'atrule' &&
!child.nodes
((child.type === 'atrule' && !child.nodes) ||
(child.type === 'decl' && child.prop.startsWith('--')))
) {

@@ -75,0 +76,0 @@ childSemicolon = true

{
"name": "postcss",
"version": "8.5.21",
"version": "8.5.22",
"description": "Tool for transforming styles with JS plugins",

@@ -5,0 +5,0 @@ "keywords": [