Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

postcss-sort-media-queries

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-sort-media-queries - npm Package Compare versions

Comparing version 1.1.20 to 1.2.23

.gitattributes

14

CHANGELOG.md

@@ -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 @@

9

index.js

@@ -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": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc