xlsx-template-browser 0.1.2 → 0.1.3

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
@@ -148,7 +148,7 @@ const replace = async (template, data) => {
148
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
- cellOffset++
151
+ if (i) cellOffset++
152
152
  }
153
153
  })
154
154
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xlsx-template-browser",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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": [