Socket
Socket
Sign inDemoInstall

libxl

Package Overview
Dependencies
34
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.18 to 0.2.19

6

CHANGELOG.md

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

8

package.json

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc