postcss-minify-params 5.0.3 → 5.0.4
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/index.js +4 -6
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -9,8 +9,6 @@ var _browserslist = _interopRequireDefault(require("browserslist"));
|
|
|
9
9
|
|
|
10
10
|
var _postcssValueParser = _interopRequireWildcard(require("postcss-value-parser"));
|
|
11
11
|
|
|
12
|
-
var _alphanumSort = _interopRequireDefault(require("alphanum-sort"));
|
|
13
|
-
|
|
14
12
|
var _cssnanoUtils = require("cssnano-utils");
|
|
15
13
|
|
|
16
14
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -42,9 +40,9 @@ function removeNode(node) {
|
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
function sortAndDedupe(items) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
const a = [...new Set(items)];
|
|
44
|
+
a.sort();
|
|
45
|
+
return a.join();
|
|
48
46
|
}
|
|
49
47
|
|
|
50
48
|
function transform(legacy, rule) {
|
|
@@ -94,7 +92,7 @@ function transform(legacy, rule) {
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
function hasAllBug(browser) {
|
|
97
|
-
return
|
|
95
|
+
return ['ie 10', 'ie 11'].includes(browser);
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
function pluginCreator(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-minify-params",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Minify at-rule params with PostCSS",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postcss",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "dist/index.js",
|
|
14
14
|
"files": [
|
|
15
|
-
"dist"
|
|
15
|
+
"dist",
|
|
16
|
+
"LICENSE"
|
|
16
17
|
],
|
|
17
18
|
"author": "Bogdan Chadkin <trysound@yandex.ru>",
|
|
18
19
|
"license": "MIT",
|
|
@@ -22,9 +23,8 @@
|
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://github.com/cssnano/cssnano",
|
|
24
25
|
"dependencies": {
|
|
25
|
-
"alphanum-sort": "^1.0.2",
|
|
26
26
|
"browserslist": "^4.16.6",
|
|
27
|
-
"cssnano-utils": "^3.0.
|
|
27
|
+
"cssnano-utils": "^3.0.1",
|
|
28
28
|
"postcss-value-parser": "^4.2.0"
|
|
29
29
|
},
|
|
30
30
|
"engines": {
|