Comparing version 0.0.7 to 0.0.8
@@ -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
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
771197
357
3