postcss-minify-gradients 7.0.1 → 7.0.3
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/package.json +3 -3
- package/src/index.js +1 -0
- package/src/isColorStop.js +4 -3
- package/types/index.d.ts.map +1 -1
- package/types/isColorStop.d.ts.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-minify-gradients",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.3",
|
|
4
4
|
"description": "Minify gradient parameters with PostCSS.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
},
|
|
24
24
|
"repository": "cssnano/cssnano",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"
|
|
26
|
+
"@colordx/core": "^5.0.3",
|
|
27
27
|
"postcss-value-parser": "^4.2.0",
|
|
28
28
|
"cssnano-utils": "^5.0.1"
|
|
29
29
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"node": "^18.12.0 || ^20.9.0 || >=22.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"postcss": "^8.5.
|
|
37
|
+
"postcss": "^8.5.8"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"postcss": "^8.4.32"
|
package/src/index.js
CHANGED
package/src/isColorStop.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
const { unit } = require('postcss-value-parser');
|
|
3
|
-
const { colord, extend } = require('
|
|
4
|
-
const
|
|
3
|
+
const { colordx: colord, extend } = require('@colordx/core');
|
|
4
|
+
const hwbPlugin = require('@colordx/core/plugins/hwb');
|
|
5
|
+
const namesPlugin = require('@colordx/core/plugins/names');
|
|
5
6
|
|
|
6
|
-
extend([/** @type {any} */ (namesPlugin)]);
|
|
7
|
+
extend([/** @type {any} */ (hwbPlugin), /** @type {any} */ (namesPlugin)]);
|
|
7
8
|
|
|
8
9
|
/* Code derived from https://github.com/pigcan/is-color-stop */
|
|
9
10
|
|
package/types/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";AAkNA;;;GAGG;AACH,kCAFY,OAAO,SAAS,EAAE,MAAM,CASnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isColorStop.d.ts","sourceRoot":"","sources":["../src/isColorStop.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isColorStop.d.ts","sourceRoot":"","sources":["../src/isColorStop.js"],"names":[],"mappings":"AA4DiB,iCAJN,MAAM,SACN,MAAM,GACL,OAAO,CAIlB"}
|