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 0.3.2 to 0.3.3

7

History.md

@@ -0,1 +1,8 @@

0.3.3 / 2013-04-08
==================
* fix resolving file:// paths on windows (thanks Mirco Zeiss)
* fix crash during cleanup. (thanks Ger Hobbelt)
* update superagent to 0.14.0
0.3.2 / 2013-03-26

@@ -2,0 +9,0 @@ ==================

16

lib/juice.js

@@ -24,2 +24,3 @@

, assert = require('assert')
, os = require('os')
, styleSelector = new Selector('<style attribute>', [1, 0, 0, 0])

@@ -67,3 +68,3 @@ , importantSelector = new Selector('<!important>', [2, 0, 0, 0])

editedElements.forEach(setStyleAttrs);
function handleRule(rule) {

@@ -166,3 +167,7 @@ var sel = rule[0]

var inner = document.innerHTML;
document.parentWindow.close();
// free the associated memory
// with lazily created parentWindow
try {
document.parentWindow.close();
} catch (cleanupErr) {}
callback(null, inner);

@@ -188,3 +193,4 @@ }

options = getDefaultOptions(options); // so we can mutate options without guilt
options.url = options.url || ("file://" + path.resolve(process.cwd(), filePath));
var slashes = os.platform() === 'win32' ? '\\\\' : '//';
options.url = options.url || ("file:" + slashes + path.resolve(process.cwd(), filePath));
juiceContent(content, options, callback);

@@ -200,3 +206,5 @@ });

// with lazily created parentWindow
document.parentWindow.close();
try {
document.parentWindow.close();
} catch (cleanupErr) {}
return inner;

@@ -203,0 +211,0 @@ }

{
"name": "juice",
"version": "0.3.2",
"version": "0.3.3",
"description": "Inlines css into html source",

@@ -34,3 +34,3 @@ "bin": "./bin/juice",

"batch": "~0.3.2",
"superagent": "~0.13.0",
"superagent": "~0.14.0",
"commander": "~1.1.1",

@@ -37,0 +37,0 @@ "slick": "~1.10.0"

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