html-to-xlsx
Advanced tools
Comparing version 2.1.0 to 2.2.0
'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') |
@@ -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 |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
132762
2774