🎩 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
283
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.18
to
8.5.19
+1
-1
lib/processor.js

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

constructor(plugins = []) {
this.version = '8.5.18'
this.version = '8.5.19'
this.plugins = this.normalize(plugins)

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

@@ -15,2 +15,15 @@ 'use strict'

normalize(child, sample, type) {
let keepBefore = new Set()
for (let node of Array.isArray(child) ? child : [child]) {
if (
node &&
typeof node === 'object' &&
!node.parent &&
node.raws &&
typeof node.raws.before !== 'undefined'
) {
keepBefore.add(node.raws)
}
}
let nodes = super.normalize(child)

@@ -27,3 +40,5 @@

for (let node of nodes) {
node.raws.before = sample.raws.before
if (!keepBefore.has(node.raws)) {
node.raws.before = sample.raws.before
}
}

@@ -30,0 +45,0 @@ }

{
"name": "postcss",
"version": "8.5.18",
"version": "8.5.19",
"description": "Tool for transforming styles with JS plugins",

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