postcss-minify-gradients 5.0.4 → 5.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/isColorStop.js +2 -2
- package/package.json +2 -2
package/dist/isColorStop.js
CHANGED
|
@@ -16,10 +16,10 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
16
16
|
(0, _colord.extend)([_names.default]);
|
|
17
17
|
/* Code derived from https://github.com/pigcan/is-color-stop */
|
|
18
18
|
|
|
19
|
-
const
|
|
19
|
+
const lengthUnits = new Set(['PX', 'IN', 'CM', 'MM', 'EM', 'REM', 'POINTS', 'PC', 'EX', 'CH', 'VW', 'VH', 'VMIN', 'VMAX', '%']);
|
|
20
20
|
|
|
21
21
|
function isCSSLengthUnit(input) {
|
|
22
|
-
return
|
|
22
|
+
return lengthUnits.has(input.toUpperCase());
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
function isStop(str) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-minify-gradients",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.5",
|
|
4
4
|
"description": "Minify gradient parameters with PostCSS.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"repository": "cssnano/cssnano",
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"colord": "^2.9.1",
|
|
25
|
-
"cssnano-utils": "^3.0.
|
|
25
|
+
"cssnano-utils": "^3.0.1",
|
|
26
26
|
"postcss-value-parser": "^4.2.0"
|
|
27
27
|
},
|
|
28
28
|
"bugs": {
|