postcss-sort-media-queries
Advanced tools
Comparing version 1.3.22 to 1.4.23
@@ -8,2 +8,7 @@ # Change Log | ||
## [1.4.23] - 2020-03-24 | ||
- Fix check sort property #20 | ||
- Update dev dependencies | ||
## [1.3.22] - 2020-03-15 | ||
@@ -10,0 +15,0 @@ |
@@ -13,12 +13,7 @@ let postcss = require('postcss') | ||
function sortAtRules (queries, sort) { | ||
if (typeof sort === 'function') { | ||
return queries.sort(sort) | ||
} | ||
if (typeof sort === 'string') { | ||
if (typeof sort !== 'function') { | ||
sort = (sort === 'desktop-first') ? sortCSSmq.desktopFirst : sortCSSmq | ||
return queries.sort(sort) | ||
} | ||
return queries | ||
return queries.sort(sort) | ||
} | ||
@@ -25,0 +20,0 @@ |
{ | ||
"name": "postcss-sort-media-queries", | ||
"version": "1.3.22", | ||
"version": "1.4.23", | ||
"description": "PostCSS plugin for combine and sort CSS media queries with mobile first or desktop first methods.", | ||
@@ -35,3 +35,3 @@ "keywords": [ | ||
"eslint": "^6.8.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.20.1", | ||
@@ -38,0 +38,0 @@ "eslint-plugin-jest": "^23.8.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10340
32