css-declaration-sorter
Advanced tools
Comparing version 5.1.1 to 5.1.2
@@ -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 |
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36001
1244