Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

libxl

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libxl - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

16

lib/libxl.js

@@ -6,12 +6,14 @@ var os = require('os'),

var paths = [
path.join(__dirname, os.platform() + '-' + os.arch(), 'libxl'),
path.join(__dirname, os.platform(), 'libxl'),
path.join(__dirname, '..', 'build', 'Debug', 'libxl'),
path.join(__dirname, '..', 'build', 'Release', 'libxl')
];
var paths = [process.env['NODE_LIBXL_PATH']] || [];
paths.push(
path.join(__dirname, os.platform() + '-' + os.arch()),
path.join(__dirname, os.platform()),
path.join(__dirname, '..', 'build', 'Debug'),
path.join(__dirname, '..', 'build', 'Release')
);
for (var i = 0; i < paths.length; i++) {
try {
bindings = require(paths[i]);
bindings = require(path.join(paths[i], 'libxl'));
break;

@@ -18,0 +20,0 @@ } catch (e) {}

@@ -5,3 +5,3 @@ {

"license": "MIT",
"version": "0.0.7",
"version": "0.0.8",
"description": "libxl bindings for node",

@@ -17,5 +17,5 @@ "keywords": ["excel", "libxl", "spreadsheet"],

},
"engines": [
"node >= 0.10"
],
"engines":{
"node": ">=0.10"
},
"main": "./lib/libxl.js",

@@ -22,0 +22,0 @@ "gypfile": true,

@@ -249,2 +249,37 @@ var xl = require('../lib/libxl');

});
it('sheet.rowHidden checks whether a row is hidden', function() {
expect(function() {sheet.rowHidden();}).toThrow();
expect(function() {sheet.rowHidden.call({}, row);}).toThrow();
expect(sheet.rowHidden(row)).toBe(false);
});
it('sheet.setRowHidden hides or shows a row', function() {
expect(function() {sheet.setRowHidden();}).toThrow();
expect(function() {sheet.setRowHidden.call({}, row, true)}).toThrow();
expect(sheet.setRowHidden(row, true)).toBe(sheet);
expect(sheet.rowHidden(row)).toBe(true);
expect(sheet.setRowHidden(row, false)).toBe(sheet);
expect(sheet.rowHidden(row)).toBe(false);
});
it('sheet.colHidden checks whether a column is hidden', function() {
expect(function() {sheet.colHidden();}).toThrow();
expect(function() {sheet.colHidden.call({}, 0);}).toThrow();
expect(sheet.colHidden(0)).toBe(false);
});
it('sheet.setColHidden hides or shows a column', function() {
expect(function() {sheet.setColHidden();}).toThrow();
expect(function() {sheet.setColHidden.call({}, 0, true)}).toThrow();
expect(sheet.setColHidden(0, true)).toBe(sheet);
expect(sheet.colHidden(0)).toBe(true);
expect(sheet.setColHidden(0, false)).toBe(sheet);
expect(sheet.colHidden(0)).toBe(false);
})
});

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

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