Socket
Socket
Sign inDemoInstall

css-declaration-sorter

Package Overview
Dependencies
Maintainers
1
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-declaration-sorter - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

orders/alphabetical.json

5

changelog.md

@@ -5,2 +5,6 @@ # Changelog

## [5.1.0] - 2020-02-06
### Changed
- Sorting of unknown properties when sorting alphabetically now works the same as the other orders. Instead of sorting all properties only known properties will be sorted and unknown properties will retain their respective order.
## [5.0.0] - 2019-12-16

@@ -56,2 +60,3 @@ ### Added

[5.1.0]: https://github.com/Siilwyn/css-declaration-sorter/compare/v5.0.0...v5.1.0
[5.0.0]: https://github.com/Siilwyn/css-declaration-sorter/compare/v4.0.1...v5.0.0

@@ -58,0 +63,0 @@ [4.0.1]: https://github.com/Siilwyn/css-declaration-sorter/compare/v4.0.0...v4.0.1

8

package.json
{
"name": "css-declaration-sorter",
"version": "5.0.0",
"version": "5.1.0",
"description": "Sorts CSS declarations fast and automatically in a certain order.",

@@ -20,3 +20,3 @@ "main": "src/index.js",

"dependencies": {
"postcss": "^7.0.25",
"postcss": "^7.0.26",
"timsort": "^0.3.0"

@@ -26,4 +26,4 @@ },

"benchmark": "^2.1.4",
"eslint": "^6.7.2",
"tape": "^4.11.0"
"eslint": "^6.8.0",
"tape": "^4.13.0"
},

@@ -30,0 +30,0 @@ "engines": {

@@ -1,2 +0,2 @@

<img alt='CSS declaration sorter logo' src='https://cdn.rawgit.com/Siilwyn/css-declaration-sorter/master/logo.svg' height='260' align='right'>
<img alt='CSS declaration sorter logo' src='https://raw.githubusercontent.com/Siilwyn/css-declaration-sorter/master/logo.svg?sanitize=true' height='260' align='right'>

@@ -3,0 +3,0 @@ # CSS Declaration Sorter

@@ -36,9 +36,2 @@ 'use strict';

if (order === 'alphabetical') {
return processCss({
css,
comparator: withKeepOverrides(defaultComparator),
});
}
// Load in the array containing the order from a JSON file

@@ -45,0 +38,0 @@ return readFile(path.join(__dirname, '..', 'orders', order) + '.json')

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