🎩 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
285
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.19
to
8.5.20
+1
-1
lib/processor.js

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

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

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

@@ -9,2 +9,6 @@ 'use strict'

// Characters that end an at-rule name, mirroring RE_AT_END in the tokenizer.
// Params starting with anything else need a space to stay separate tokens.
const AT_NAME_END = /[\t\n\f\r "#'()/;[\\\]{}]/
function escapeHTMLInCSS(str) {

@@ -38,10 +42,11 @@ if (typeof str !== 'string') return str

let params = node.params ? str.rawValue(node, 'params') : ''
let afterName = node.raws.afterName
if (typeof node.raws.afterName !== 'undefined') {
name += node.raws.afterName
} else if (params) {
name += ' '
if (typeof afterName === 'undefined') {
afterName = params ? ' ' : ''
} else if (afterName === '' && params && !AT_NAME_END.test(params[0])) {
afterName = ' '
}
return name + params
return name + afterName + params
}

@@ -48,0 +53,0 @@

'use strict'
let Container = require('./container')
let { my } = require('./symbols')
class Warning {

@@ -9,2 +12,9 @@ constructor(text, opts = {}) {

if (opts.node && opts.node.source) {
if (!opts.node[my]) {
// The node comes from another PostCSS copy in node_modules, so it does
// not have this copy’s methods. Container#normalize() rebuilds such
// nodes on insert, but a node passed straight to Result#warn() never
// goes through it.
Container.rebuild(opts.node)
}
let range = opts.node.rangeBy(opts)

@@ -11,0 +21,0 @@ this.line = range.start.line

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

@@ -81,3 +81,3 @@ "keywords": [

"dependencies": {
"nanoid": "^3.3.12",
"nanoid": "^3.3.16",
"picocolors": "^1.1.1",

@@ -84,0 +84,0 @@ "source-map-js": "^1.2.1"