xlsx-template-browser 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/main.js +1 -1
  2. package/package.json +1 -1
package/lib/main.js CHANGED
@@ -145,7 +145,7 @@ const replace = async (template, data) => {
145
145
  }
146
146
  // If the value is an array (not from table), then extend the existing list of cells
147
147
  for (let i = 0; i < newValue.length; i++) {
148
- let { value, cellType } = newValue[i]
148
+ let { value, cellType } = newValue[i] || {}
149
149
  if (cellType === 's' && typeof value === 'string') value = addString(value)
150
150
  newCells[newIndex + i] = Object.assign({}, { value, cellType }, { template: c })
151
151
  if (i) cellOffset++
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xlsx-template-browser",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "description": "On-the-fly generation of .xlsx (Excel) files directly within the browser using templates constructed in Excel.",
5
5
  "main": "./lib/index",
6
6
  "files": [