Socket
Socket
Sign inDemoInstall

autoprefixer

Package Overview
Dependencies
19
Maintainers
4
Versions
243
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 9.6.2 to 9.6.3

3

CHANGELOG.md
# Change Log
This project adheres to [Semantic Versioning](http://semver.org/).
## 9.6.3
* Fix `Cannot read property 'startsWith' of undefined` error.
## 9.6.2

@@ -5,0 +8,0 @@ * Fix false `Replace fill to stretch` warning.

13

lib/processor.js

@@ -82,6 +82,7 @@ "use strict";

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

@@ -92,4 +93,4 @@ });

function insideFlex(decl) {
return decl.parent.some(function (subDecl) {
return subDecl.prop === 'display' && /(inline-)?flex/.test(subDecl.value);
return decl.parent.some(function (node) {
return node.prop === 'display' && /(inline-)?flex/.test(node.value);
});

@@ -96,0 +97,0 @@ }

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

@@ -5,0 +5,0 @@ "keywords": ["autoprefixer", "css", "prefix", "postcss", "postcss-plugin"],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc