Socket
Socket
Sign inDemoInstall

js-downloadexcel

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-downloadexcel - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

11

index.js

@@ -155,7 +155,8 @@ // import XLSX from "js-xlsxstyle"

newArr = newArr.concat(json)
let arr = newArr.map((v, i) => keyMap.map((k, j) => Object.assign({}, {
v: v[k], bold: isBold, color, backgroundColor, fontSize, borderColor,
position: regEx.test(v[k]) ? (j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) + (i + 1) : '',
}))).reduce((prev, next) => prev.concat(next))
return arr
if (newArr.length > 0) {
return newArr.map((v, i) => keyMap.map((k, j) => Object.assign({}, {
v: v[k], bold: isBold, color, backgroundColor, fontSize, borderColor,
position: regEx.test(v[k]) ? (j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) + (i + 1) : '',
}))).reduce((prev, next) => prev.concat(next))
} else { return [] }
}
{
"name": "js-downloadexcel",
"version": "0.0.7",
"version": "0.0.8",
"description": "下载excel",

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

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