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

html-to-xlsx

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-to-xlsx - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

lib/dedicatedProcessStrategy.js

4

lib/conversion.js

@@ -55,5 +55,5 @@ var path = require("path"),

if (options.strategy === "phantom-server")
return require("./phantomWebServerStrategy.js")(options, html, id, icb);
return require("./serverStrategy.js")(options, html, id, icb);
if (options.strategy === "dedicated-process")
return require("./phantomScriptStrategy.js")(options, html, id, icb);
return require("./dedicatedProcessStrategy.js")(options, html, id, icb);

@@ -60,0 +60,0 @@ cb(new Error("Unsupported strategy " + options.strategy));

{
"name": "html-to-xlsx",
"version": "0.3.2",
"version": "0.3.3",
"author": {

@@ -31,3 +31,4 @@ "name": "Jan Blaha",

"scripts": {
"test": "mocha test/test.js"
"test": "node lib/prepareScripts.js && mocha test/test.js",
"postinstall": "node lib/prepareScripts.js"
},

@@ -34,0 +35,0 @@ "main": "index.js",

@@ -5,4 +5,4 @@ var should = require("should"),

tmpDir = path.join(__dirname, "temp"),
phantomServerStrategy = require("../lib/phantomWebServerStrategy.js"),
dedicatedProcessStrategy = require("../lib/phantomScriptStrategy.js");
phantomServerStrategy = require("../lib/serverStrategy.js"),
dedicatedProcessStrategy = require("../lib/dedicatedProcessStrategy.js");

@@ -132,2 +132,17 @@ describe("html extraction", function () {

});
it("should work for long tables", function (done) {
this.timeout(7000);
var rows = "";
for (var i = 0; i < 10000; i++) {
rows += "<tr><td>1</td></tr>"
}
strategy(options, "<table>" + rows + "</table>", "", function (err, table) {
if (err)
return done(err);
table.rows.should.have.length(10000);
done();
});
});
}

@@ -134,0 +149,0 @@ });

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