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

html-to-xlsx

Package Overview
Dependencies
Maintainers
2
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 2.1.0 to 2.2.0

0

index.js
'use strict'
module.exports = require('./lib/conversion.js')

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ // eslint-disable-next-line no-unused-vars

@@ -0,0 +0,0 @@ const utils = require('./utils')

2

lib/tableToXlsx.js

@@ -80,4 +80,2 @@ const path = require('path')

utils.assetLegalXMLChar(cellInfo.valueText)
// when all cells are rowspan in a row then the row itself doesn't count

@@ -84,0 +82,0 @@ let rowSpan = cellInfo.rowspan - (allCellsAreRowSpan ? 1 : 0)

@@ -123,8 +123,3 @@ const color = require('tinycolor2')

const input = Array.isArray(c)
? {
r: c[0],
g: c[1],
b: c[2],
a: c[3]
}
? { r: c[0], g: c[1], b: c[2], a: c[3] }
: c

@@ -174,16 +169,2 @@

function assetLegalXMLChar (str) {
// eslint-disable-next-line no-control-regex
const validChars = /[\u0000-\u0008\u000B-\u000C\u000E-\u001F\uD800-\uDFFF\uFFFE-\uFFFF]/
const result = str.match(validChars)
if (result) {
throw new Error(`Invalid character "${result}"${result[0] != null ? `, char code: ${result[0].charCodeAt(0)}` : ''} in string "${str}" at index: ${result.index}`)
}
return str
}
module.exports.assetLegalXMLChar = assetLegalXMLChar
module.exports.sizePxToPt = sizePxToPt

@@ -190,0 +171,0 @@ module.exports.parsePx = parsePx

2

package.json
{
"name": "html-to-xlsx",
"version": "2.1.0",
"version": "2.2.0",
"description": "Convert html to xlsx",

@@ -5,0 +5,0 @@ "keywords": [

@@ -0,0 +0,0 @@ # html-to-xlsx

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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