postcss-merge-idents 2.1.6 → 2.1.7
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/CHANGELOG.md +4 -0
- package/dist/index.js +3 -3
- package/package.json +14 -10
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -4,9 +4,9 @@ exports.__esModule = true;
|
|
|
4
4
|
|
|
5
5
|
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _has = require('has');
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _has2 = _interopRequireDefault(_has);
|
|
10
10
|
|
|
11
11
|
var _postcss = require('postcss');
|
|
12
12
|
|
|
@@ -18,7 +18,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
18
18
|
|
|
19
19
|
function canonical(obj) {
|
|
20
20
|
return function recurse(key) {
|
|
21
|
-
if ((0,
|
|
21
|
+
if ((0, _has2.default)(obj, key) && obj[key] !== key) {
|
|
22
22
|
return recurse(obj[key]);
|
|
23
23
|
}
|
|
24
24
|
return key;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postcss-merge-idents",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.7",
|
|
4
4
|
"description": "Merge keyframe and counter style identifiers.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,8 +9,9 @@
|
|
|
9
9
|
],
|
|
10
10
|
"scripts": {
|
|
11
11
|
"pretest": "eslint src",
|
|
12
|
-
"prepublish": "
|
|
13
|
-
"test": "ava src/__tests__"
|
|
12
|
+
"prepublish": "del-cli dist && BABEL_ENV=publish babel src --out-dir dist --ignore /__tests__/",
|
|
13
|
+
"test": "ava src/__tests__",
|
|
14
|
+
"test-012": "ava src/__tests__"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"css",
|
|
@@ -20,16 +21,19 @@
|
|
|
20
21
|
],
|
|
21
22
|
"license": "MIT",
|
|
22
23
|
"devDependencies": {
|
|
23
|
-
"ava": "^0.
|
|
24
|
+
"ava": "^0.16.0",
|
|
24
25
|
"babel-cli": "^6.3.17",
|
|
25
26
|
"babel-core": "^6.3.26",
|
|
26
|
-
"babel-plugin-add-module-exports": "^0.1
|
|
27
|
+
"babel-plugin-add-module-exports": "^0.2.1",
|
|
27
28
|
"babel-preset-es2015": "^6.3.13",
|
|
28
29
|
"babel-preset-es2015-loose": "^7.0.0",
|
|
29
30
|
"babel-preset-stage-0": "^6.3.13",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"eslint
|
|
31
|
+
"babel-register": "^6.9.0",
|
|
32
|
+
"del-cli": "^0.2.0",
|
|
33
|
+
"eslint": "^3.0.0",
|
|
34
|
+
"eslint-config-cssnano": "^3.0.0",
|
|
35
|
+
"eslint-plugin-babel": "^3.3.0",
|
|
36
|
+
"eslint-plugin-import": "^1.10.2"
|
|
33
37
|
},
|
|
34
38
|
"homepage": "https://github.com/ben-eb/postcss-merge-idents",
|
|
35
39
|
"author": {
|
|
@@ -39,12 +43,12 @@
|
|
|
39
43
|
},
|
|
40
44
|
"repository": "ben-eb/postcss-merge-idents",
|
|
41
45
|
"dependencies": {
|
|
42
|
-
"has
|
|
46
|
+
"has": "^1.0.1",
|
|
43
47
|
"postcss": "^5.0.10",
|
|
44
48
|
"postcss-value-parser": "^3.1.1"
|
|
45
49
|
},
|
|
46
50
|
"ava": {
|
|
47
|
-
"require": "babel-
|
|
51
|
+
"require": "babel-register"
|
|
48
52
|
},
|
|
49
53
|
"eslintConfig": {
|
|
50
54
|
"extends": "cssnano"
|