Comparing version 8.1.0 to 9.0.0
@@ -27,2 +27,4 @@ 'use strict'; | ||
juiceClient.codeBlocks = cheerio.codeBlocks; | ||
module.exports = juiceClient; |
12
index.js
@@ -24,12 +24,2 @@ 'use strict'; | ||
juice.ignoredPseudos = juiceClient.ignoredPseudos; | ||
juice.widthElements = juiceClient.widthElements; | ||
juice.tableElements = juiceClient.tableElements; | ||
juice.nonVisualElements = juiceClient.nonVisualElements; | ||
juice.styleToAttribute = juiceClient.styleToAttribute; | ||
juice.juiceDocument = juiceClient.juiceDocument; | ||
juice.inlineDocument = juiceClient.inlineDocument; | ||
juice.inlineContent = juiceClient.inlineContent; | ||
juice.juiceFile = juiceFile; | ||
@@ -39,4 +29,2 @@ juice.juiceResources = juiceResources; | ||
juice.codeBlocks = cheerio.codeBlocks; | ||
function juiceFile(filePath, options, callback) { | ||
@@ -43,0 +31,0 @@ // set default options |
@@ -296,5 +296,5 @@ 'use strict'; | ||
} | ||
if (value.match(/px/)) { | ||
var pxSize = value.replace('px', ''); | ||
$(el).attr(dimension, pxSize); | ||
if (value.match(/(px|auto)/)) { | ||
var size = value.replace('px', ''); | ||
$(el).attr(dimension, size); | ||
return; | ||
@@ -301,0 +301,0 @@ } |
{ | ||
"name": "juice", | ||
"version": "8.1.0", | ||
"version": "9.0.0", | ||
"description": "Inlines css into html source", | ||
@@ -38,3 +38,3 @@ "bin": "bin/juice", | ||
"dependencies": { | ||
"cheerio": "1.0.0-rc.10", | ||
"cheerio": "^1.0.0-rc.12", | ||
"commander": "^6.1.0", | ||
@@ -46,9 +46,9 @@ "mensch": "^0.3.4", | ||
"devDependencies": { | ||
"@types/node": "^15.12.2", | ||
"batch": "0.5.3", | ||
"browserify": "^16.2.3", | ||
"cross-spawn": "^6.0.5", | ||
"@types/node": "^18.15.3", | ||
"batch": "0.6.1", | ||
"browserify": "^17.0.0", | ||
"cross-spawn": "^7.0.3", | ||
"mocha": "^5.2.0", | ||
"should": "^11.1.1", | ||
"typescript": "^4.1" | ||
"should": "^13.2.3", | ||
"typescript": "^5.0.2" | ||
}, | ||
@@ -55,0 +55,0 @@ "repository": { |
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
48784
1070
+ Addedcheerio@1.0.0(transitive)
+ Addedcheerio-select@2.1.0(transitive)
+ Addedcss-select@5.1.0(transitive)
+ Addeddom-serializer@2.0.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)
+ 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)
- Removedcheerio@1.0.0-rc.10(transitive)
- Removedcheerio-select@1.6.0(transitive)
- Removedcss-select@4.3.0(transitive)
- Removedhtmlparser2@6.1.0(transitive)
- Removedparse5@6.0.1(transitive)
- Removedparse5-htmlparser2-tree-adapter@6.0.1(transitive)
- Removedtslib@2.8.1(transitive)
Updatedcheerio@^1.0.0-rc.12