Comparing version 0.13.1 to 0.14.0
@@ -6,2 +6,5 @@ 'use strict'; | ||
}); | ||
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; | ||
exports.parse = parse; | ||
@@ -46,13 +49,7 @@ exports.build = build; | ||
worksheets.forEach(function (worksheet) { | ||
var name = worksheet.name || 'Sheet'; | ||
// If worksheet has options, use this one ; if there's only one worksheet, use global options (for retro-compatibility) | ||
var optionsLocal = {}; | ||
if (worksheet.options) { | ||
optionsLocal = worksheet.options; | ||
} else if (worksheets.length === 1 && options) { | ||
optionsLocal = options; | ||
} | ||
var data = (0, _helpers.buildSheetFromMatrix)(worksheet.data || [], optionsLocal); | ||
workBook.SheetNames.push(name); | ||
workBook.Sheets[name] = data; | ||
var sheetName = worksheet.name || 'Sheet'; | ||
var sheetOptions = worksheet.options || {}; | ||
var sheetData = (0, _helpers.buildSheetFromMatrix)(worksheet.data || [], _extends({}, options, sheetOptions)); | ||
workBook.SheetNames.push(sheetName); | ||
workBook.Sheets[sheetName] = sheetData; | ||
}); | ||
@@ -59,0 +56,0 @@ var excelData = _xlsx2.default.write(workBook, Object.assign({}, defaults, options)); |
{ | ||
"name": "node-xlsx", | ||
"author": "Olivier Louvignes <olivier@mg-crea.com>", | ||
"version": "0.13.1", | ||
"version": "0.14.0", | ||
"description": "NodeJS Excel files parser & builder", | ||
@@ -6,0 +6,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
18745
42