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

cssom

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssom - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

.gitmodules

2

lib/CSSKeyframesRule.js

@@ -31,3 +31,3 @@ //.CommonJS

}
return "@-webkit-keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}";
return "@" + (this._vendorPrefix || '') + "keyframes " + this.name + " { \n" + cssTexts.join("\n") + "\n}";
});

@@ -34,0 +34,0 @@

@@ -55,2 +55,4 @@ //.CommonJS

var atKeyframesRegExp = /@(-(?:\w+-)+)?keyframes/g;
for (var character; character = token.charAt(i); i++) {

@@ -138,11 +140,16 @@

break;
} else if (token.indexOf("@-webkit-keyframes", i) === i) {
state = "keyframesRule-begin";
keyframesRule = new CSSOM.CSSKeyframesRule;
keyframesRule.__starts = i;
i += "-webkit-keyframes".length;
buffer = "";
break;
} else if (state === "selector") {
state = "atRule";
} else {
atKeyframesRegExp.lastIndex = i;
var matchKeyframes = atKeyframesRegExp.exec(token);
if (matchKeyframes && matchKeyframes.index === i) {
state = "keyframesRule-begin";
keyframesRule = new CSSOM.CSSKeyframesRule;
keyframesRule.__starts = i;
keyframesRule._vendorPrefix = matchKeyframes[1]; // Will come out as undefined if no prefix was found
i += matchKeyframes[0].length - 1;
buffer = "";
break;
} else if (state == "selector") {
state = "atRule";
}
}

@@ -149,0 +156,0 @@ buffer += character;

@@ -5,3 +5,3 @@ {

"keywords": ["CSS", "CSSOM", "parser", "styleSheet"],
"version": "0.2.2",
"version": "0.2.3",
"homepage": "https://github.com/NV/CSSOM",

@@ -31,3 +31,6 @@ "author": "Nikita Vasilyev <me@elv1s.ru>",

}
]
],
"scripts": {
"prepublish": "jake lib/index.js"
}
}

Sorry, the diff of this file is not supported yet

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