Socket
Socket
Sign inDemoInstall

inline-css

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-css - npm Package Compare versions

Comparing version 2.2.0 to 2.2.1

LICENSE

8

lib/inline-css.js

@@ -16,3 +16,3 @@ 'use strict';

var opts = options || {},
rules = parseCSS(css),
rules,
editedElements = [],

@@ -28,2 +28,8 @@ $ = cheerio.load(html, pick(opts, [

try {
rules = parseCSS(css);
} catch (err) {
throw new Error(err);
}
rules.forEach(function (rule) {

@@ -30,0 +36,0 @@ var el,

@@ -23,3 +23,9 @@ 'use strict';

extraCss = css + '\n' + options.extraCss;
content = inlineCss(html, extraCss, options);
try {
content = inlineCss(html, extraCss, options);
} catch (e) {
return reject(e);
}
resolve(content);

@@ -26,0 +32,0 @@ });

2

package.json
{
"name": "inline-css",
"version": "2.2.0",
"version": "2.2.1",
"description": "Inline css into an html file.",

@@ -5,0 +5,0 @@ "main": "index.js",

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