inline-css
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -86,2 +86,3 @@ const parseCSS = require('css-rules'); | ||
} | ||
return undefined; | ||
}); | ||
@@ -88,0 +89,0 @@ |
@@ -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/) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19802
436
9
+ Addedcheerio@1.0.0(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addedcss-what@6.1.0(transitive)
+ Addeddom-serializer@2.0.0(transitive)
+ Addeddomelementtype@2.3.0(transitive)
+ Addeddomhandler@5.0.3(transitive)
+ Addeddomutils@3.1.0(transitive)
+ Addedencoding-sniffer@0.2.0(transitive)
+ Addedentities@4.5.0(transitive)
+ Addedhtmlparser2@9.1.0(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addednth-check@2.1.1(transitive)
+ Addedparse5@7.2.1(transitive)
+ Addedparse5-htmlparser2-tree-adapter@7.1.0(transitive)
+ Addedparse5-parser-stream@7.1.2(transitive)
+ Addedsafer-buffer@2.1.2(transitive)
+ Addedundici@6.21.0(transitive)
+ Addedwhatwg-encoding@3.1.1(transitive)
+ Addedwhatwg-mimetype@4.0.0(transitive)
Updatedcheerio@^1.0.0-rc.10
Updatedcss-rules@^1.1.0
Updatedextract-css@^2.0.1
Updatedflat-util@^1.1.8
Updatedpick-util@^1.1.4