postcss-sort-media-queries
Advanced tools
Comparing version 1.1.20 to 1.2.23
@@ -8,2 +8,16 @@ # Change Log | ||
## [1.4.23] - 2020-03-24 | ||
- Fix check sort property #20 | ||
- Update dev dependencies | ||
## [1.3.22] - 2020-03-15 | ||
- Update dev dependencies | ||
## [1.3.21] - 2020-02-19 | ||
- Update dependencies | ||
- Add `yarn.lock` | ||
## [1.1.20] - 2020-02-05 | ||
@@ -10,0 +24,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.1.20", | ||
"version": "1.2.23", | ||
"description": "PostCSS plugin for combine and sort CSS media queries with mobile first or desktop first methods.", | ||
@@ -29,13 +29,11 @@ "keywords": [ | ||
"dependencies": { | ||
"postcss": "^7.0.26", | ||
"postcss": "^7.0.27", | ||
"sort-css-media-queries": "1.5.0" | ||
}, | ||
"devDependencies": { | ||
"@logux/eslint-config": "^35.0.4", | ||
"@logux/eslint-config": "^36.1.1", | ||
"eslint": "^6.8.0", | ||
"eslint-config-postcss": "^3.0.7", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-es5": "^1.5.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.20.1", | ||
"eslint-plugin-jest": "^23.6.0", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"eslint-plugin-node": "^11.0.0", | ||
@@ -46,7 +44,7 @@ "eslint-plugin-prefer-let": "^1.0.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"eslint-plugin-unicorn": "^16.0.0", | ||
"eslint-plugin-unicorn": "^17.2.0", | ||
"jest": "^25.1.0" | ||
}, | ||
"eslintConfig": { | ||
"extends": "eslint-config-postcss" | ||
"extends": "@logux/eslint-config" | ||
}, | ||
@@ -53,0 +51,0 @@ "engines": { |
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
12
6
32
Updatedpostcss@^7.0.27