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.4.24 to 1.5.24

4

CHANGELOG.md

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

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