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.1.1 to 5.1.2

4

changelog.md

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

## [5.1.2] - 2020-02-21
### Fixed
- Experimental Node.js warning from showing up on some versions.
## [5.1.1] - 2020-02-07

@@ -7,0 +11,0 @@ ### Fixed

2

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

@@ -5,0 +5,0 @@ "main": "src/index.js",

'use strict';
const { readFile } = require('fs').promises;
const { readFile } = require('fs');
const path = require('path');
const { promisify } = require('util');

@@ -37,3 +38,3 @@ const postcss = require('postcss');

// Load in the array containing the order from a JSON file
return readFile(path.join(__dirname, '..', 'orders', order) + '.json')
return promisify(readFile)(path.join(__dirname, '..', 'orders', order) + '.json')
.then(data => processCss({

@@ -40,0 +41,0 @@ css,

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