Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fela-dom

Package Overview
Dependencies
Maintainers
2
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fela-dom - npm Package Compare versions

Comparing version 8.0.1 to 8.0.2

13

es/dom/rehydrate.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc