🎩 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.4.27
to
10.5.0
+2
-0
data/prefixes.js

@@ -753,2 +753,4 @@ let unpack = require('caniuse-lite/dist/unpacker/feature')

'mask-position',
'mask-position-x',
'mask-position-y',
'mask-size',

@@ -755,0 +757,0 @@ 'mask-border',

+1
-1

@@ -0,3 +1,3 @@

import { Stats } from 'browserslist'
import { Plugin } from 'postcss'
import { Stats } from 'browserslist'

@@ -4,0 +4,0 @@ declare function autoprefixer<T extends string[]>(

@@ -7,3 +7,3 @@ let parser = require('postcss-value-parser')

let IS_DIRECTION = /top|left|right|bottom/gi
const IS_DIRECTION = /top|left|right|bottom/gi

@@ -233,3 +233,3 @@ class Gradient extends Value {

let num = parseFloat(nodes[0].value)
num = (num % 360 + 360) % 360
num = ((num % 360) + 360) % 360
nodes[0].value = `${num}deg`

@@ -236,0 +236,0 @@ }

@@ -167,3 +167,3 @@ let parser = require('postcss-value-parser')

let DOTS = /^\.+$/
const DOTS = /^\.+$/

@@ -170,0 +170,0 @@ function track(start, end) {

@@ -195,3 +195,3 @@ let AtRule = require('./at-rule')

if (step === +1 && other.prop === unprefixed) {
if (step === 1 && other.prop === unprefixed) {
if (!Browsers.withPrefix(other.value)) {

@@ -210,3 +210,3 @@ break

down(callback) {
return checker(+1, callback)
return checker(1, callback)
},

@@ -213,0 +213,0 @@ up(callback) {

@@ -38,2 +38,13 @@ let parser = require('postcss-value-parser')

function insideGrid(decl) {
return decl.parent.nodes.some(node => {
if (node.type !== 'decl') return false
let displayGrid =
node.prop === 'display' && /(inline-)?grid/.test(node.value)
let gridTemplate = node.prop.startsWith('grid-template')
let gridGap = /^grid-([A-z]+-)?gap/.test(node.prop)
return displayGrid || gridTemplate || gridGap
})
}
class Processor {

@@ -88,13 +99,2 @@ constructor(prefixes) {

function insideGrid(decl) {
return decl.parent.nodes.some(node => {
if (node.type !== 'decl') return false
let displayGrid =
node.prop === 'display' && /(inline-)?grid/.test(node.value)
let gridTemplate = node.prop.startsWith('grid-template')
let gridGap = /^grid-([A-z]+-)?gap/.test(node.prop)
return displayGrid || gridTemplate || gridGap
})
}
let gridPrefixes =

@@ -591,2 +591,3 @@ this.gridStatus(css, result) &&

let prevMin = parts[parts.length - 1].length
/** @type {number|false} */
let diff = false

@@ -593,0 +594,0 @@

@@ -323,3 +323,3 @@ let { list } = require('postcss')

if (nodes[nodes.length - 1].type === 'div') {
nodes = nodes.slice(0, +-2 + 1 || undefined)
nodes = nodes.slice(0, -1)
}

@@ -326,0 +326,0 @@ return parser.stringify({ nodes })

The MIT License (MIT)
Copyright 2013 Andrey Sitnik <andrey@sitnik.ru>
Copyright 2013 Andrey Sitnik <andrey@sitnik.es>

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

{
"name": "autoprefixer",
"version": "10.4.27",
"version": "10.5.0",
"description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
"engines": {
"node": "^10 || ^12 || >=14"
},
"keywords": [
"autoprefixer",
"css",
"prefix",
"postcss",
"postcss-plugin"
"postcss-plugin",
"prefix"
],
"main": "lib/autoprefixer.js",
"bin": "bin/autoprefixer",
"types": "lib/autoprefixer.d.ts",
"bugs": {
"url": "https://github.com/postcss/autoprefixer/issues"
},
"license": "MIT",
"author": "Andrey Sitnik <andrey@sitnik.es>",
"repository": "postcss/autoprefixer",
"funding": [

@@ -32,7 +32,11 @@ {

],
"author": "Andrey Sitnik <andrey@sitnik.ru>",
"license": "MIT",
"repository": "postcss/autoprefixer",
"bugs": {
"url": "https://github.com/postcss/autoprefixer/issues"
"bin": "bin/autoprefixer",
"main": "lib/autoprefixer.js",
"types": "lib/autoprefixer.d.ts",
"dependencies": {
"browserslist": "^4.28.2",
"caniuse-lite": "^1.0.30001787",
"fraction.js": "^5.3.4",
"picocolors": "^1.1.1",
"postcss-value-parser": "^4.2.0"
},

@@ -42,9 +46,5 @@ "peerDependencies": {

},
"dependencies": {
"browserslist": "^4.28.1",
"caniuse-lite": "^1.0.30001774",
"fraction.js": "^5.3.4",
"picocolors": "^1.1.1",
"postcss-value-parser": "^4.2.0"
"engines": {
"node": "^10 || ^12 || >=14"
}
}

@@ -49,10 +49,9 @@ # Autoprefixer [![Cult Of Martians][cult-img]][cult]

[interactive demo]: https://autoprefixer.github.io/
[@autoprefixer]: https://twitter.com/autoprefixer
[Can I Use]: https://caniuse.com/
[cult-img]: https://cultofmartians.com/assets/badges/badge.svg
[PostCSS]: https://github.com/postcss/postcss
[cult]: https://cultofmartians.com/tasks/autoprefixer-grid.html
[@autoprefixer]: https://twitter.com/autoprefixer
[Can I Use]: https://caniuse.com/
[cult-img]: https://cultofmartians.com/assets/badges/badge.svg
[PostCSS]: https://github.com/postcss/postcss
[cult]: https://cultofmartians.com/tasks/autoprefixer-grid.html
## Docs
Read full docs **[here](https://github.com/postcss/autoprefixer#readme)**.