New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html-to-pdfmake

Package Overview
Dependencies
Maintainers
1
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-pdfmake - npm Package Compare versions

Comparing version 2.5.20 to 2.5.21

docs/browser-2.5.21.js

4

package.json
{
"name": "html-to-pdfmake",
"version": "2.5.20",
"version": "2.5.21",
"description": "Convert HTML code to PDFMake",

@@ -26,5 +26,5 @@ "main": "index.js",

"pdfmake": "^0.2.7",
"simple-test-framework": "^0.1.7",
"simple-test-framework": "^0.2.1",
"svg-to-pdfkit": "^0.1.8"
}
}

@@ -1232,3 +1232,23 @@ var htmlToPdfMake = require('../index.js');

t.test("CSS units",function(t) {
var html = `<div style="line-height:107%;font-size:large;width:110px;height:50pt;margin-left:1in;margin-top:2em;margin-right:1rem;margin-bottom:0.5cm">hello world</div>`;
var ret = htmlToPdfMake(html, {
window:window
});
if (debug) console.log(JSON.stringify(ret));
t.check(Array.isArray(ret) && ret.length===1, "return is OK");
ret = ret[0];
t.check(ret.lineHeight == 1.07, "% OK");
t.check(ret.fontSize == 14.4, "constant OK");
t.check(ret.width == 83, "px OK");
t.check(ret.height == 50, "pt OK");
t.check(ret.marginLeft == 72, "in OK");
t.check(ret.marginRight == 12, "rem OK");
t.check(ret.marginTop == 24, "em OK");
t.check(ret.marginBottom == 14, "cm OK");
t.finish();
});
t.finish();
})

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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