Socket
Socket
Sign inDemoInstall

js-downloadexcel

Package Overview
Dependencies
10
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.3 to 0.0.4

21

index.js

@@ -50,5 +50,3 @@ // import XLSX from "js-xlsxstyle"

v: v[k],
position:
(j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) +
(i + 1)
position: (j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) + (i + 1)
})

@@ -65,3 +63,3 @@ )).reduce((prev, next) => prev.concat(next))

}
};

@@ -151,1 +149,16 @@ if (colorSetting && colorSetting.length > 0) {

}
exports.getColorPosition = (json, cb, regEx) => {
let temp = json[getMaxLenObj(json)], keyMap = [], newArr = [{}]
for (var k in temp) {
keyMap.push(k)
newArr[0][k] = k
}
newArr = newArr.concat(json)
let arr = newArr.map((v, i) => keyMap.map((k, j) => Object.assign({}, {
v: v[k],
position: regEx.test(v[k]) ? (j > 25 ? getCharCol(j) : String.fromCharCode(65 + j)) + (i + 1) : '',
...cb(v[k])
}))).reduce((prev, next) => prev.concat(next))
return arr
}

2

package.json
{
"name": "js-downloadexcel",
"version": "0.0.3",
"version": "0.0.4",
"description": "下载excel",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc