Socket
Socket
Sign inDemoInstall

node-xlsx

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-xlsx - npm Package Compare versions

Comparing version 0.13.1 to 0.14.0

19

lib/index.js

@@ -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

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