Comparing version 1.4.6 to 1.4.7
@@ -45,5 +45,10 @@ /** | ||
var hasSharedStrings = false; | ||
model.worksheets.forEach(function (worksheet) { | ||
var name = '/xl/worksheets/sheet' + worksheet.id + '.xml'; | ||
xmlStream.leafNode('Override', { PartName: name, ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml' }); | ||
if (hasSharedStrings === false && worksheet.useSharedStrings === true) { | ||
hasSharedStrings = true; | ||
} | ||
}); | ||
@@ -55,5 +60,8 @@ | ||
ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml' }); | ||
xmlStream.leafNode('Override', { PartName: '/xl/sharedStrings.xml', | ||
ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml' }); | ||
if (hasSharedStrings) { | ||
xmlStream.leafNode('Override', { PartName: '/xl/sharedStrings.xml', | ||
ContentType: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml' }); | ||
} | ||
model.drawings && model.drawings.forEach(function (drawing) { | ||
@@ -60,0 +68,0 @@ xmlStream.leafNode('Override', { PartName: '/xl/drawings/' + drawing.name + '.xml', |
{ | ||
"name": "exceljs", | ||
"version": "1.4.6", | ||
"version": "1.4.7", | ||
"description": "Excel Workbook Manager - Read and Write xlsx and csv Files.", | ||
@@ -5,0 +5,0 @@ "private": false, |
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
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
3196938
53295
1832