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

cssom-papandreou

Package Overview
Dependencies
Maintainers
2
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssom-papandreou - npm Package Compare versions

Comparing version 0.2.4-patch4 to 0.2.4-patch5

18

lib/parse.js

@@ -270,2 +270,3 @@ //.CommonJS

// Temporary workaround until https://github.com/NV/CSSOM/issues/16 gets resolved
// Remember to keep this block of code in sync with the equivalent hack 50 lines below.
if (styleRule.style.getPropertyValue(name)) {

@@ -316,8 +317,19 @@ styleRule.__ends = i;

// Temporary workaround until https://github.com/NV/CSSOM/issues/16 gets resolved
// Remember to keep this block of code in sync with the equivalent hack 50 lines above.
if (styleRule.style.getPropertyValue(name)) {
styleRule.__ends = i;
currentScope.cssRules.push(styleRule);
styleRule = new CSSOM.CSSStyleRule;
styleRule.selectorText = currentScope.cssRules[currentScope.cssRules.length - 1].selectorText;
styleRule.__starts = i;
var newStyleRule = new styleRule.constructor();
newStyleRule.__starts = i;
if (styleRule.type === CSSOM.CSSRule.STYLE_RULE) {
newStyleRule.style.setProperty('is-continuation', 'yes');
newStyleRule.selectorText = currentScope.cssRules[currentScope.cssRules.length - 1].selectorText;
} else if (styleRule.type === CSSOM.CSSRule.FONT_FACE_RULE) {
newStyleRule.style.setProperty('is-continuation', 'yes');
var fontFamily = styleRule.style.getPropertyValue('font-family');
if (fontFamily) {
newStyleRule.style.setProperty('font-family', fontFamily);
}
}
styleRule = newStyleRule;
}

@@ -324,0 +336,0 @@ styleRule.style.setProperty(name, buffer.trim(), priority);

2

package.json

@@ -10,3 +10,3 @@ {

],
"version": "0.2.4-patch4",
"version": "0.2.4-patch5",
"homepage": "https://github.com/NV/CSSOM",

@@ -13,0 +13,0 @@ "author": "Nikita Vasilyev <me@elv1s.ru>",

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