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

autoprefixer

Package Overview
Dependencies
Maintainers
1
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoprefixer - npm Package Compare versions

Comparing version
10.5.2
to
10.5.3
+7
-3
lib/brackets.js

@@ -22,5 +22,9 @@ function last(array) {

if (sym === ')') {
stack.pop()
current = last(stack)
current.push('')
if (stack.length > 1) {
stack.pop()
current = last(stack)
current.push('')
} else {
current[current.length - 1] += sym
}
continue

@@ -27,0 +31,0 @@ }

@@ -58,2 +58,6 @@ let parser = require('postcss-value-parser')

if (param.length === 0) {
continue
}
let color = parser.stringify(param[0])

@@ -79,3 +83,3 @@ if (param[1] && param[1].type === 'word') {

params[i] = [{ type: 'word', value: stop }]
if (div.type === 'div' && div.value === ',') {
if (div && div.type === 'div' && div.value === ',') {
item = params[i].push(div)

@@ -189,2 +193,5 @@ }

newDirection(params) {
if (!params[0]) {
return params
}
if (params[0].value === 'to') {

@@ -303,3 +310,3 @@ return params

if (params[0][0].value !== 'to') {
if (!params[0][0] || params[0][0].value !== 'to') {
return params.unshift([

@@ -335,2 +342,5 @@ { type: 'word', value: Gradient.oldDirections.bottom },

}
if (nodes.length === 0) {
return false
}
if (nodes[0] && nodes[0].value.includes('deg')) {

@@ -337,0 +347,0 @@ return false

{
"name": "autoprefixer",
"version": "10.5.2",
"version": "10.5.3",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",

@@ -36,4 +36,4 @@ "keywords": [

"dependencies": {
"browserslist": "^4.28.4",
"caniuse-lite": "^1.0.30001799",
"browserslist": "^4.28.6",
"caniuse-lite": "^1.0.30001805",
"fraction.js": "^5.3.4",

@@ -40,0 +40,0 @@ "picocolors": "^1.1.1",