Comparing version 3.6.0 to 3.6.1
@@ -51,3 +51,3 @@ 'use strict'; | ||
if (this._worksheets.find(function (ws) { | ||
return ws && ws.name === name; | ||
return ws && ws.name.toLowerCase() === name.toLowerCase(); | ||
})) { | ||
@@ -54,0 +54,0 @@ throw new Error("Worksheet name already exists: ".concat(name)); |
@@ -95,3 +95,3 @@ "use strict"; | ||
priority: model.priority, | ||
id: "{".concat(uuid.v4(), "}") | ||
id: model.x14Id || "{".concat(uuid.v4(), "}") | ||
}); | ||
@@ -98,0 +98,0 @@ this.iconSetXform.render(xmlStream, model); |
@@ -354,6 +354,6 @@ "use strict"; | ||
var printOptionsModel = { | ||
showRowColHeaders: model.showRowColHeaders, | ||
showGridLines: model.showGridLines, | ||
horizontalCentered: model.horizontalCentered, | ||
verticalCentered: model.verticalCentered | ||
showRowColHeaders: model.pageSetup && model.pageSetup.showRowColHeaders, | ||
showGridLines: model.pageSetup && model.pageSetup.showGridLines, | ||
horizontalCentered: model.pageSetup && model.pageSetup.horizontalCentered, | ||
verticalCentered: model.pageSetup && model.pageSetup.verticalCentered | ||
}; | ||
@@ -375,4 +375,5 @@ var sheetProtectionModel = model.sheetProtection; | ||
this.map.conditionalFormatting.render(xmlStream, model.conditionalFormattings); | ||
this.map.printOptions.render(xmlStream, printOptionsModel); // Note: must be before pageMargins | ||
this.map.pageMargins.render(xmlStream, pageMarginsModel); | ||
this.map.printOptions.render(xmlStream, printOptionsModel); | ||
this.map.pageSetup.render(xmlStream, model.pageSetup); | ||
@@ -379,0 +380,0 @@ this.map.headerFooter.render(xmlStream, model.headerFooter); |
@@ -54,3 +54,3 @@ 'use strict'; | ||
name = (name || `sheet${id}`).substring(0, 31); | ||
if (this._worksheets.find(ws => ws && ws.name === name)) { | ||
if (this._worksheets.find(ws => ws && ws.name.toLowerCase() === name.toLowerCase())) { | ||
throw new Error(`Worksheet name already exists: ${name}`); | ||
@@ -57,0 +57,0 @@ } |
@@ -77,3 +77,3 @@ const uuid = require('uuid'); | ||
priority: model.priority, | ||
id: `{${uuid.v4()}}`, | ||
id: model.x14Id || `{${uuid.v4()}}`, | ||
}); | ||
@@ -80,0 +80,0 @@ |
@@ -282,6 +282,6 @@ const _ = require('../../../utils/under-dash'); | ||
const printOptionsModel = { | ||
showRowColHeaders: model.showRowColHeaders, | ||
showGridLines: model.showGridLines, | ||
horizontalCentered: model.horizontalCentered, | ||
verticalCentered: model.verticalCentered, | ||
showRowColHeaders: model.pageSetup && model.pageSetup.showRowColHeaders, | ||
showGridLines: model.pageSetup && model.pageSetup.showGridLines, | ||
horizontalCentered: model.pageSetup && model.pageSetup.horizontalCentered, | ||
verticalCentered: model.pageSetup && model.pageSetup.verticalCentered, | ||
}; | ||
@@ -305,4 +305,4 @@ const sheetProtectionModel = model.sheetProtection; | ||
this.map.conditionalFormatting.render(xmlStream, model.conditionalFormattings); | ||
this.map.printOptions.render(xmlStream, printOptionsModel); // Note: must be before pageMargins | ||
this.map.pageMargins.render(xmlStream, pageMarginsModel); | ||
this.map.printOptions.render(xmlStream, printOptionsModel); | ||
this.map.pageSetup.render(xmlStream, model.pageSetup); | ||
@@ -309,0 +309,0 @@ this.map.headerFooter.render(xmlStream, model.headerFooter); |
{ | ||
"name": "exceljs", | ||
"version": "3.6.0", | ||
"version": "3.6.1", | ||
"description": "Excel Workbook Manager - Read and Write xlsx and csv Files.", | ||
@@ -42,2 +42,3 @@ "private": false, | ||
"test:end-to-end:es5": "export EXCEL_BUILD=es5 && npm run test:end-to-end", | ||
"test:dist": "mocha --require spec/config/setup spec/dist --recursive", | ||
"test:manual": "node spec/manual/app.js", | ||
@@ -51,3 +52,3 @@ "clean-build": "npm run clean && npm run build", | ||
"build": "npm run patch:fast-csv && grunt build", | ||
"preversion": "npm run clean && npm run build && npm run test:all", | ||
"preversion": "npm run clean && npm run build && npm run test:all && npm run test:dist", | ||
"postversion": "git push --no-verify && git push --tags --no-verify" | ||
@@ -54,0 +55,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
9601262
2599