Comparing version 0.2.0 to 0.2.1
21
j.js
@@ -38,12 +38,12 @@ /* j -- (C) 2013-2014 SheetJS -- http://sheetjs.com */ | ||
function get_columns(sheet, XL) { | ||
var val, rowObject, range, columnHeaders, emptyRow, C; | ||
range = XL.utils.decode_range(sheet["!ref"]); | ||
columnHeaders = []; | ||
for (C = range.s.c; C <= range.e.c; ++C) { | ||
val = sheet[XL.utils.encode_cell({c: C, r: range.s.r})]; | ||
function get_cols(sheet, XL) { | ||
var val, r, hdr, R, C, _XL = XL || XLS; | ||
r = _XL.utils.decode_range(sheet["!ref"]); | ||
hdr = []; | ||
for (R = r.s.r, C = r.s.c; C <= r.e.c; ++C) { | ||
val = sheet[_XL.utils.encode_cell({c:C, r:R})]; | ||
if(!val) continue; | ||
columnHeaders[C] = XL.utils.format_cell ? XL.utils.format_cell(val) : val.v; | ||
hdr[C] = typeof val.w !== 'undefined' ? val.w : _XL.utils.format_cell ? XL.utils.format_cell(val) : val.v; | ||
} | ||
return columnHeaders; | ||
return hdr; | ||
} | ||
@@ -56,3 +56,3 @@ | ||
wb.SheetNames.forEach(function(sheet) { | ||
var cols = get_columns(wb.Sheets[sheet], XL); | ||
var cols = get_cols(wb.Sheets[sheet], XL); | ||
var src = "<h3>" + sheet + "</h3>"; | ||
@@ -102,5 +102,6 @@ src += "<table>"; | ||
to_json: to_json, | ||
to_html: to_html | ||
to_html: to_html, | ||
get_cols: get_cols | ||
}, | ||
version: "XLS " + XLS.version + " ; XLSX " + XLSX.version | ||
}; |
{ | ||
"name": "j", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"author": "sheetjs", | ||
@@ -14,6 +14,6 @@ "description": "data wrangler", | ||
"dependencies": { | ||
"xlsjs": "", | ||
"xlsx": "", | ||
"xlsjs": "~0.6.5", | ||
"xlsx": "~0.5.0", | ||
"commander":"" | ||
} | ||
} |
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 2 instances in 1 package
10553
98
1
+ Addedcodepage@1.2.0(transitive)
+ Addedcolors@1.4.0(transitive)
+ Addedfrac@0.3.1(transitive)
+ Addedjszip@2.1.1(transitive)
+ Addedssf@0.6.50.7.1(transitive)
+ Addedvoc@1.2.0(transitive)
+ Addedxlsjs@0.6.21(transitive)
+ Addedxlsx@0.5.17(transitive)
+ Addedzlibjs@0.1.8(transitive)
- Removedcodepage@1.15.0(transitive)
- Removedfrac@1.1.2(transitive)
- Removedssf@0.11.2(transitive)
- Removedwmf@1.0.2(transitive)
- Removedword@0.3.0(transitive)
- Removedxlsjs@1.0.1(transitive)
- Removedxlsx@0.18.5(transitive)
Updatedxlsjs@~0.6.5
Updatedxlsx@~0.5.0