postcss-minify-params
Advanced tools
Comparing version
{ | ||
"name": "postcss-minify-params", | ||
"version": "5.0.5", | ||
"version": "5.1.0", | ||
"description": "Minify at-rule params with PostCSS", | ||
@@ -14,5 +14,7 @@ "keywords": [ | ||
"main": "src/index.js", | ||
"types": "types/index.d.ts", | ||
"files": [ | ||
"src", | ||
"LICENSE" | ||
"LICENSE", | ||
"types" | ||
], | ||
@@ -28,3 +30,3 @@ "author": "Bogdan Chadkin <trysound@yandex.ru>", | ||
"browserslist": "^4.16.6", | ||
"cssnano-utils": "^3.0.2", | ||
"cssnano-utils": "^3.1.0", | ||
"postcss-value-parser": "^4.2.0" | ||
@@ -31,0 +33,0 @@ }, |
@@ -9,4 +9,7 @@ 'use strict'; | ||
* of two numbers. | ||
* | ||
* @param {number} a | ||
* @param {number} b | ||
* @return {number} | ||
*/ | ||
function gcd(a, b) { | ||
@@ -16,2 +19,7 @@ return b ? gcd(b, a % b) : a; | ||
/** | ||
* @param {number} a | ||
* @param {number} b | ||
* @return {[number, number]} | ||
*/ | ||
function aspectRatio(a, b) { | ||
@@ -23,2 +31,6 @@ const divisor = gcd(a, b); | ||
/** | ||
* @param {valueParser.Node[]} args | ||
* @return {string} | ||
*/ | ||
function split(args) { | ||
@@ -28,2 +40,6 @@ return args.map((arg) => valueParser.stringify(arg)).join(''); | ||
/** | ||
* @param {valueParser.Node} node | ||
* @return {void} | ||
*/ | ||
function removeNode(node) { | ||
@@ -34,2 +50,6 @@ node.value = ''; | ||
/** | ||
* @param {unknown[]} items | ||
* @return {string} | ||
*/ | ||
function sortAndDedupe(items) { | ||
@@ -41,2 +61,7 @@ const a = [...new Set(items)]; | ||
/** | ||
* @param {boolean} legacy | ||
* @param {import('postcss').AtRule} rule | ||
* @return {void} | ||
*/ | ||
function transform(legacy, rule) { | ||
@@ -104,2 +129,6 @@ const ruleName = rule.name.toLowerCase(); | ||
/** | ||
* @param {string} browser | ||
* @return {boolean} | ||
*/ | ||
function hasAllBug(browser) { | ||
@@ -109,2 +138,7 @@ return ['ie 10', 'ie 11'].includes(browser); | ||
/** | ||
* @type {import('postcss').PluginCreator<browserslist.Options>} | ||
* @param {browserslist.Options} options | ||
* @return {import('postcss').Plugin} | ||
*/ | ||
function pluginCreator(options = {}) { | ||
@@ -111,0 +145,0 @@ const browsers = browserslist(null, { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7300
16.71%5
25%141
48.42%0
-100%Updated