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

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 3.0.0 to 4.0.0

1

lib/inline-css.js

@@ -86,2 +86,3 @@ const parseCSS = require('css-rules');

}
return undefined;
});

@@ -88,0 +89,0 @@

2

lib/inlineContent.js

@@ -27,3 +27,3 @@ const extractCss = require('extract-css');

resolve(content);
return resolve(content);
});

@@ -30,0 +30,0 @@ });

@@ -40,2 +40,3 @@ const parser = require('slick').parse;

}
return undefined;
};

@@ -1,3 +0,1 @@

const cheerio = require('cheerio');
const tableStyleAttrMap = {

@@ -56,8 +54,8 @@ table: {

cheerio.prototype.resetAttr = function (attribute) {
if (!this.attr(attribute)) {
this.attr(attribute, 0);
function resetAttr(node, attribute) {
if (node.attr(attribute)) {
return;
}
return this;
};
node.attr(attribute, 0);
}

@@ -68,5 +66,5 @@ module.exports = (el, $) => {

$el = $el.resetAttr('border')
.resetAttr('cellpadding')
.resetAttr('cellspacing');
resetAttr($el, 'border');
resetAttr($el, 'cellpadding');
resetAttr($el, 'cellspacing');

@@ -73,0 +71,0 @@ for (selector in tableStyleAttrMap) {

{
"name": "inline-css",
"version": "3.0.0",
"version": "4.0.0",
"description": "Inline css into an html file.",
"main": "index.js",
"workspaces": [
"./packages/*"
],
"dependencies": {
"cheerio": "^0.22.0",
"css-rules": "^1.0.9",
"extract-css": "^2.0.0",
"flat-util": "^1.1.6",
"pick-util": "^1.1.3",
"cheerio": "^1.0.0-rc.10",
"css-rules": "^1.1.0",
"extract-css": "^2.0.1",
"flat-util": "^1.1.8",
"pick-util": "^1.1.4",
"slick": "^1.12.2",

@@ -17,6 +20,7 @@ "specificity": "^0.4.1"

"babel-eslint": "^10.1.0",
"coveralls": "^3.1.0",
"eslint": "^7.12.0",
"lerna": "^3.22.1",
"mocha": "^8.2.0",
"coveralls": "^3.1.1",
"eslint": "^7.32.0",
"js-beautify": "^1.14.4",
"lerna": "^4.0.0",
"mocha": "^9.1.4",
"nyc": "^15.1.0",

@@ -35,3 +39,3 @@ "should": "^13.2.3",

"coverage": "nyc npm test && nyc report",
"coveralls": "nyc npm test && nyc report --reporter=text-lcov | coveralls"
"coveralls": "nyc npm test && nyc report --reporter=lcov"
},

@@ -38,0 +42,0 @@ "files": [

@@ -1,2 +0,2 @@

# inline-css [![npm](http://img.shields.io/npm/v/inline-css.svg?style=flat)](https://badge.fury.io/js/inline-css) [![Build Status](https://travis-ci.org/jonkemp/inline-css.svg?branch=master)](https://travis-ci.org/jonkemp/inline-css) [![Coverage Status](https://coveralls.io/repos/jonkemp/inline-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/jonkemp/inline-css?branch=master)
# inline-css [![npm](http://img.shields.io/npm/v/inline-css.svg?style=flat)](https://badge.fury.io/js/inline-css) ![Build Status](https://github.com/jonkemp/inline-css/actions/workflows/main.yml/badge.svg?branch=master) [![Coverage Status](https://coveralls.io/repos/jonkemp/inline-css/badge.svg?branch=master&service=github)](https://coveralls.io/github/jonkemp/inline-css?branch=master)

@@ -3,0 +3,0 @@ [![NPM](https://nodei.co/npm/inline-css.png?downloads=true)](https://nodei.co/npm/inline-css/)

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