postcss-sort-media-queries
Advanced tools
Comparing version 1.4.24 to 1.5.24
@@ -8,2 +8,6 @@ # Change Log | ||
## [1.5.24] - 2020-05-22 | ||
- Update dev dependencies | ||
## [1.4.24] - 2020-04-15 | ||
@@ -10,0 +14,0 @@ |
13
index.js
let postcss = require('postcss') | ||
const sortCSSmq = require('sort-css-media-queries') | ||
module.exports = postcss.plugin('postcss-sort-media-queries', (opts = { }) => { | ||
opts = Object.assign({ | ||
sort: 'mobile-first' | ||
}, opts) | ||
module.exports = postcss.plugin('postcss-sort-media-queries', (opts = {}) => { | ||
opts = Object.assign( | ||
{ | ||
sort: 'mobile-first' | ||
}, | ||
opts | ||
) | ||
@@ -14,3 +17,3 @@ return root => { | ||
if (typeof sort !== 'function') { | ||
sort = (sort === 'desktop-first') ? sortCSSmq.desktopFirst : sortCSSmq | ||
sort = sort === 'desktop-first' ? sortCSSmq.desktopFirst : sortCSSmq | ||
} | ||
@@ -17,0 +20,0 @@ |
{ | ||
"name": "postcss-sort-media-queries", | ||
"version": "1.4.24", | ||
"version": "1.5.24", | ||
"description": "PostCSS plugin for combine and sort CSS media queries with mobile first or desktop first methods.", | ||
@@ -16,3 +16,3 @@ "keywords": [ | ||
"scripts": { | ||
"test": "jest && eslint . --fix" | ||
"test": "jest && eslint ." | ||
}, | ||
@@ -30,18 +30,19 @@ "author": "Yunus Gaziev <yunusga@yandex.ru>", | ||
"dependencies": { | ||
"postcss": "^7.0.27", | ||
"postcss": "^7.0.30", | ||
"sort-css-media-queries": "1.5.0" | ||
}, | ||
"devDependencies": { | ||
"@logux/eslint-config": "^36.1.2", | ||
"eslint": "^6.8.0", | ||
"@logux/eslint-config": "^39.0.3", | ||
"eslint": "^7.0.0", | ||
"eslint-config-standard": "^14.1.1", | ||
"eslint-plugin-import": "^2.20.2", | ||
"eslint-plugin-jest": "^23.8.2", | ||
"eslint-plugin-jest": "^23.13.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prefer-let": "^1.0.1", | ||
"eslint-plugin-prettierx": "^0.12.0", | ||
"eslint-plugin-promise": "^4.2.1", | ||
"eslint-plugin-security": "^1.4.0", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"eslint-plugin-unicorn": "^18.0.1", | ||
"jest": "^25.3.0" | ||
"eslint-plugin-unicorn": "^20.0.0", | ||
"jest": "^26.0.1" | ||
}, | ||
@@ -48,0 +49,0 @@ "eslintConfig": { |
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
10556
35
13
Updatedpostcss@^7.0.30