Comparing version 8.0.1 to 8.0.2
@@ -44,7 +44,12 @@ import arrayEach from 'fast-loops/lib/arrayEach'; | ||
arrayEach(node.sheet.cssRules, function (rule) { | ||
var selectorText = rule.conditionText ? rule.cssRules[0].selectorText : rule.selectorText; | ||
// On Safari, style sheets with IE-specific media queries | ||
// can yield null for node.sheet | ||
// https://github.com/rofrischmann/fela/issues/431#issuecomment-423239591 | ||
if (node.sheet && node.sheet.cssRules) { | ||
arrayEach(node.sheet.cssRules, function (rule) { | ||
var selectorText = rule.conditionText ? rule.cssRules[0].selectorText : rule.selectorText; | ||
rule.score = getRuleScore(renderer.ruleOrder, selectorText.split(CLASSNAME_REGEX)[1]); | ||
}); | ||
rule.score = getRuleScore(renderer.ruleOrder, selectorText.split(CLASSNAME_REGEX)[1]); | ||
}); | ||
} | ||
} | ||
@@ -51,0 +56,0 @@ } |
@@ -66,7 +66,12 @@ 'use strict'; | ||
(0, _arrayEach2.default)(node.sheet.cssRules, function (rule) { | ||
var selectorText = rule.conditionText ? rule.cssRules[0].selectorText : rule.selectorText; | ||
// On Safari, style sheets with IE-specific media queries | ||
// can yield null for node.sheet | ||
// https://github.com/rofrischmann/fela/issues/431#issuecomment-423239591 | ||
if (node.sheet && node.sheet.cssRules) { | ||
(0, _arrayEach2.default)(node.sheet.cssRules, function (rule) { | ||
var selectorText = rule.conditionText ? rule.cssRules[0].selectorText : rule.selectorText; | ||
rule.score = (0, _felaUtils.getRuleScore)(renderer.ruleOrder, selectorText.split(CLASSNAME_REGEX)[1]); | ||
}); | ||
rule.score = (0, _felaUtils.getRuleScore)(renderer.ruleOrder, selectorText.split(CLASSNAME_REGEX)[1]); | ||
}); | ||
} | ||
} | ||
@@ -73,0 +78,0 @@ } |
{ | ||
"name": "fela-dom", | ||
"version": "8.0.1", | ||
"version": "8.0.2", | ||
"description": "Fela package for working with the DOM", | ||
@@ -26,11 +26,11 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"css-in-js-utils": "^2.0.0", | ||
"css-in-js-utils": "^3.0.0", | ||
"fast-loops": "^1.0.1", | ||
"fela-utils": "^8.1.1" | ||
"fela-utils": "^8.1.2" | ||
}, | ||
"devDependencies": { | ||
"fela": "^6.2.1", | ||
"fela-preset-web": "^8.0.10", | ||
"fela-tools": "^5.2.1" | ||
"fela": "^6.2.2", | ||
"fela-preset-web": "^8.0.11", | ||
"fela-tools": "^5.2.2" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
48756
1028
- Removedcss-in-js-utils@2.0.1(transitive)
- Removedisobject@3.0.1(transitive)
Updatedcss-in-js-utils@^3.0.0
Updatedfela-utils@^8.1.2