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.3.22 to 1.4.23

5

CHANGELOG.md

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

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.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",

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