libxl
Advanced tools
Comparing version 0.2.18 to 0.2.19
@@ -20,1 +20,7 @@ # Changelog | ||
* Bump npm dependency versions. | ||
## 0.2.19 | ||
* Allow formats belonging to a different book as templates for addFormat (see | ||
[issue #10](https://github.com/DirtyHairy/node-libxl/issues/10)). | ||
* Bump dependency versions. |
@@ -5,3 +5,3 @@ { | ||
"license": "MIT", | ||
"version": "0.2.18", | ||
"version": "0.2.19", | ||
"description": "Node bindings for the libxl library for reading and writing excel (XLS and XLSX) spreadsheets.", | ||
@@ -30,6 +30,6 @@ "keywords": [ | ||
"dependencies": { | ||
"adm-zip": "~0.4.7", | ||
"adm-zip": "^0.4.7", | ||
"ftp": "~0.3.10", | ||
"md5": "~2.0.0", | ||
"nan": "~2.3.2", | ||
"md5": "~2.1.0", | ||
"nan": "~2.4.0", | ||
"tar": "~2.2.1", | ||
@@ -36,0 +36,0 @@ "tmp": "~0.0.28" |
@@ -127,3 +127,3 @@ var xl = require('../lib/libxl'), | ||
sheet.writeStr(1, 0, 'bar'); | ||
shouldThrow(book1.writeRaw, book1, 1); | ||
@@ -235,2 +235,17 @@ shouldThrow(book1.writeRaw, {}, function() {}); | ||
it('book.addFormat can use a format belonging to a different book as a template', function() { | ||
var otherBook = new xl.Book(xl.BOOK_TYPE_XLS), | ||
format1 = otherBook.addFormat(), | ||
format2 = book.addFormat(format1); | ||
}); | ||
it ('book.addFormat will throw if an async operation is pending on the template\'s parent book', function() { | ||
var otherBook = new xl.Book(xl.BOOK_TYPE_XLS), | ||
format1 = otherBook.addFormat(); | ||
otherBook.saveRaw(function() {}, function() {}); | ||
shouldThrow(book.addFormat, book, format1); | ||
}); | ||
it('book.addFont adds a font', function() { | ||
@@ -362,3 +377,3 @@ shouldThrow(book.addFont, book, 10); | ||
var pic0 = book.getPicture(0); | ||
expect(pic0.type).toBe(xl.PICTURETYPE_PNG); | ||
@@ -365,0 +380,0 @@ expect(testUtils.compareBuffers(pic0.data, fileBuffer)).toBe(true); |
Sorry, the diff of this file is not supported yet
300169
1807
+ Addedis-buffer@1.1.6(transitive)
+ Addedmd5@2.1.0(transitive)
+ Addednan@2.4.0(transitive)
- Removedis-buffer@1.0.2(transitive)
- Removedmd5@2.0.0(transitive)
- Removednan@2.3.5(transitive)
Updatedadm-zip@^0.4.7
Updatedmd5@~2.1.0
Updatednan@~2.4.0