autoprefixer 8.6.1 → 8.6.2

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 CHANGED
@@ -1,6 +1,9 @@
1
1
  # Change Log
2
2
  This project adheres to [Semantic Versioning](http://semver.org/).
3
3
 
4
+ ## 8.6.2
5
+ * Fix error during adding Grid prefixes in `@media` (by Evgeny Petukhov).
6
+
4
7
  ## 8.6.1
5
8
  * Fix `grid-template` with media queries (by Evgeny Petukhov).
6
9
 
@@ -345,7 +345,7 @@ function insertAreas(areas, decl, result) {
345
345
  if (areasCount === areasLength) {
346
346
  var next = gridArea.parent.next();
347
347
 
348
- if (next.type === 'atrule' && next.name === 'media' && next.params === parentMedia.params && next.first.type === 'rule' && next.first.selector && parentMedia.first.selector && /^-ms-/.test(next.first.first.prop)) return undefined;
348
+ if (next && next.type === 'atrule' && next.name === 'media' && next.params === parentMedia.params && next.first.type === 'rule' && next.first.selector && parentMedia.first.selector && /^-ms-/.test(next.first.first.prop)) return undefined;
349
349
 
350
350
  var areaMedia = parentMedia.clone().removeAll().append(rules);
351
351
  gridArea.parent.after(areaMedia);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autoprefixer",
3
- "version": "8.6.1",
3
+ "version": "8.6.2",
4
4
  "description": "Parse CSS and add vendor prefixes to CSS rules using values from the Can I Use website",
5
5
  "keywords": ["autoprefixer", "css", "prefix", "postcss", "postcss-plugin"],
6
6
  "author": "Andrey Sitnik <andrey@sitnik.ru>",
@@ -8,7 +8,7 @@
8
8
  "repository": "postcss/autoprefixer",
9
9
  "dependencies": {
10
10
  "browserslist": "^3.2.8",
11
- "caniuse-lite": "^1.0.30000850",
11
+ "caniuse-lite": "^1.0.30000851",
12
12
  "normalize-range": "^0.1.2",
13
13
  "num2fraction": "^1.2.2",
14
14
  "postcss": "^6.0.22",