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

juice

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

juice - npm Package Compare versions

Comparing version 8.1.0 to 9.0.0

2

client.js

@@ -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": {

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