version bump 0.10.3: flush
- CSV double-quote processing (fixes #656 h/t @jckkong) - actually updated SSF to 0.9.3 (h/t @HuFlungDu) - npm module actually includes the types
This commit is contained in:
parent
3ff724e349
commit
e996df7b67
@ -1,6 +1,5 @@
|
||||
test_files/
|
||||
tests/files/
|
||||
types/
|
||||
demos/
|
||||
index.html
|
||||
misc/
|
||||
|
@ -1 +1 @@
|
||||
XLSX.version = '0.10.2';
|
||||
XLSX.version = '0.10.3';
|
||||
|
@ -2,7 +2,7 @@
|
||||
/*jshint -W041 */
|
||||
var SSF = {};
|
||||
var make_ssf = function make_ssf(SSF){
|
||||
SSF.version = '0.9.2';
|
||||
SSF.version = '0.9.3';
|
||||
function _strrev(x/*:string*/)/*:string*/ { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
|
||||
function fill(c/*:string*/,l/*:number*/)/*:string*/ { var o = ""; while(o.length < l) o+=c; return o; }
|
||||
function pad0(v/*:any*/,d/*:number*/)/*:string*/{var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;}
|
||||
@ -152,9 +152,9 @@ function parse_date_code(v/*:number*/,opts/*:?any*/,b2/*:?boolean*/) {
|
||||
if(Math.abs(out.u) < 1e-6) out.u = 0;
|
||||
fixopts(opts != null ? opts : (opts=[]));
|
||||
if(opts.date1904) date += 1462;
|
||||
if(out.u > 0.999) {
|
||||
if(out.u > 0.9999) {
|
||||
out.u = 0;
|
||||
if(++time == 86400) { time = 0; ++date; }
|
||||
if(++time == 86400) { out.T = time = 0; ++date; ++out.D; }
|
||||
}
|
||||
if(date === 60) {dout = b2 ? [1317,10,29] : [1900,2,29]; dow=3;}
|
||||
else if(date === 0) {dout = b2 ? [1317,8,29] : [1900,1,0]; dow=6;}
|
||||
|
@ -548,7 +548,7 @@ var PRN = (function() {
|
||||
if(cc == sepcc) ++C; else { C = 0; ++R; }
|
||||
}
|
||||
for(;end < str.length;++end) switch((cc=str.charCodeAt(end))) {
|
||||
case 0x22: if(instr || (end - start == 0)) instr = !instr; break;
|
||||
case 0x22: instr = !instr; break;
|
||||
case sepcc: case 0x0a: case 0x0d: if(!instr) finish_cell(); break;
|
||||
default: break;
|
||||
}
|
||||
|
14
dist/xlsx.core.min.js
vendored
14
dist/xlsx.core.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/xlsx.core.min.map
vendored
2
dist/xlsx.core.min.map
vendored
File diff suppressed because one or more lines are too long
12
dist/xlsx.full.min.js
vendored
12
dist/xlsx.full.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/xlsx.full.min.map
vendored
2
dist/xlsx.full.min.map
vendored
File diff suppressed because one or more lines are too long
10
dist/xlsx.js
vendored
10
dist/xlsx.js
vendored
@ -6,7 +6,7 @@
|
||||
/*global global, exports, module, require:false, process:false, Buffer:false */
|
||||
var XLSX = {};
|
||||
(function make_xlsx(XLSX){
|
||||
XLSX.version = '0.10.2';
|
||||
XLSX.version = '0.10.3';
|
||||
var current_codepage = 1200;
|
||||
/*global cptable:true */
|
||||
if(typeof module !== "undefined" && typeof require !== 'undefined') {
|
||||
@ -99,7 +99,7 @@ var chr0 = /\u0000/g, chr1 = /[\u0001-\u0006]/;
|
||||
/*jshint -W041 */
|
||||
var SSF = {};
|
||||
var make_ssf = function make_ssf(SSF){
|
||||
SSF.version = '0.9.2';
|
||||
SSF.version = '0.9.3';
|
||||
function _strrev(x) { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
|
||||
function fill(c,l) { var o = ""; while(o.length < l) o+=c; return o; }
|
||||
function pad0(v,d){var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;}
|
||||
@ -249,9 +249,9 @@ function parse_date_code(v,opts,b2) {
|
||||
if(Math.abs(out.u) < 1e-6) out.u = 0;
|
||||
fixopts(opts != null ? opts : (opts=[]));
|
||||
if(opts.date1904) date += 1462;
|
||||
if(out.u > 0.999) {
|
||||
if(out.u > 0.9999) {
|
||||
out.u = 0;
|
||||
if(++time == 86400) { time = 0; ++date; }
|
||||
if(++time == 86400) { out.T = time = 0; ++date; ++out.D; }
|
||||
}
|
||||
if(date === 60) {dout = b2 ? [1317,10,29] : [1900,2,29]; dow=3;}
|
||||
else if(date === 0) {dout = b2 ? [1317,8,29] : [1900,1,0]; dow=6;}
|
||||
@ -5630,7 +5630,7 @@ var PRN = (function() {
|
||||
if(cc == sepcc) ++C; else { C = 0; ++R; }
|
||||
}
|
||||
for(;end < str.length;++end) switch((cc=str.charCodeAt(end))) {
|
||||
case 0x22: if(instr || (end - start == 0)) instr = !instr; break;
|
||||
case 0x22: instr = !instr; break;
|
||||
case sepcc: case 0x0a: case 0x0d: if(!instr) finish_cell(); break;
|
||||
default: break;
|
||||
}
|
||||
|
8
dist/xlsx.min.js
vendored
8
dist/xlsx.min.js
vendored
File diff suppressed because one or more lines are too long
2
dist/xlsx.min.map
vendored
2
dist/xlsx.min.map
vendored
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xlsx",
|
||||
"version": "0.10.2",
|
||||
"version": "0.10.3",
|
||||
"author": "sheetjs",
|
||||
"description": "Excel (XLSB/XLSX/XLS/XML) ODS and other spreadsheet format (CSV/DIF/DBF/SYLK) parser and writer",
|
||||
"keywords": [ "excel", "xls", "xlsx", "xlsb", "xlsm", "ods", "csv", "dbf", "dif", "sylk", "office", "spreadsheet" ],
|
||||
|
4
types/.npmignore
Normal file
4
types/.npmignore
Normal file
@ -0,0 +1,4 @@
|
||||
Makefile
|
||||
*xlsx*.ts
|
||||
write.ts
|
||||
tslint.json
|
10
xlsx.flow.js
10
xlsx.flow.js
@ -6,7 +6,7 @@
|
||||
/*global global, exports, module, require:false, process:false, Buffer:false */
|
||||
var XLSX = {};
|
||||
(function make_xlsx(XLSX){
|
||||
XLSX.version = '0.10.2';
|
||||
XLSX.version = '0.10.3';
|
||||
var current_codepage = 1200;
|
||||
/*:: declare var cptable:any; */
|
||||
/*global cptable:true */
|
||||
@ -119,7 +119,7 @@ type WriteObjStrFactory = {from_sheet(ws:Worksheet, o:any):string};
|
||||
/*jshint -W041 */
|
||||
var SSF = {};
|
||||
var make_ssf = function make_ssf(SSF){
|
||||
SSF.version = '0.9.2';
|
||||
SSF.version = '0.9.3';
|
||||
function _strrev(x/*:string*/)/*:string*/ { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
|
||||
function fill(c/*:string*/,l/*:number*/)/*:string*/ { var o = ""; while(o.length < l) o+=c; return o; }
|
||||
function pad0(v/*:any*/,d/*:number*/)/*:string*/{var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;}
|
||||
@ -269,9 +269,9 @@ function parse_date_code(v/*:number*/,opts/*:?any*/,b2/*:?boolean*/) {
|
||||
if(Math.abs(out.u) < 1e-6) out.u = 0;
|
||||
fixopts(opts != null ? opts : (opts=[]));
|
||||
if(opts.date1904) date += 1462;
|
||||
if(out.u > 0.999) {
|
||||
if(out.u > 0.9999) {
|
||||
out.u = 0;
|
||||
if(++time == 86400) { time = 0; ++date; }
|
||||
if(++time == 86400) { out.T = time = 0; ++date; ++out.D; }
|
||||
}
|
||||
if(date === 60) {dout = b2 ? [1317,10,29] : [1900,2,29]; dow=3;}
|
||||
else if(date === 0) {dout = b2 ? [1317,8,29] : [1900,1,0]; dow=6;}
|
||||
@ -5691,7 +5691,7 @@ var PRN = (function() {
|
||||
if(cc == sepcc) ++C; else { C = 0; ++R; }
|
||||
}
|
||||
for(;end < str.length;++end) switch((cc=str.charCodeAt(end))) {
|
||||
case 0x22: if(instr || (end - start == 0)) instr = !instr; break;
|
||||
case 0x22: instr = !instr; break;
|
||||
case sepcc: case 0x0a: case 0x0d: if(!instr) finish_cell(); break;
|
||||
default: break;
|
||||
}
|
||||
|
10
xlsx.js
10
xlsx.js
@ -6,7 +6,7 @@
|
||||
/*global global, exports, module, require:false, process:false, Buffer:false */
|
||||
var XLSX = {};
|
||||
(function make_xlsx(XLSX){
|
||||
XLSX.version = '0.10.2';
|
||||
XLSX.version = '0.10.3';
|
||||
var current_codepage = 1200;
|
||||
/*global cptable:true */
|
||||
if(typeof module !== "undefined" && typeof require !== 'undefined') {
|
||||
@ -99,7 +99,7 @@ var chr0 = /\u0000/g, chr1 = /[\u0001-\u0006]/;
|
||||
/*jshint -W041 */
|
||||
var SSF = {};
|
||||
var make_ssf = function make_ssf(SSF){
|
||||
SSF.version = '0.9.2';
|
||||
SSF.version = '0.9.3';
|
||||
function _strrev(x) { var o = "", i = x.length-1; while(i>=0) o += x.charAt(i--); return o; }
|
||||
function fill(c,l) { var o = ""; while(o.length < l) o+=c; return o; }
|
||||
function pad0(v,d){var t=""+v; return t.length>=d?t:fill('0',d-t.length)+t;}
|
||||
@ -249,9 +249,9 @@ function parse_date_code(v,opts,b2) {
|
||||
if(Math.abs(out.u) < 1e-6) out.u = 0;
|
||||
fixopts(opts != null ? opts : (opts=[]));
|
||||
if(opts.date1904) date += 1462;
|
||||
if(out.u > 0.999) {
|
||||
if(out.u > 0.9999) {
|
||||
out.u = 0;
|
||||
if(++time == 86400) { time = 0; ++date; }
|
||||
if(++time == 86400) { out.T = time = 0; ++date; ++out.D; }
|
||||
}
|
||||
if(date === 60) {dout = b2 ? [1317,10,29] : [1900,2,29]; dow=3;}
|
||||
else if(date === 0) {dout = b2 ? [1317,8,29] : [1900,1,0]; dow=6;}
|
||||
@ -5630,7 +5630,7 @@ var PRN = (function() {
|
||||
if(cc == sepcc) ++C; else { C = 0; ++R; }
|
||||
}
|
||||
for(;end < str.length;++end) switch((cc=str.charCodeAt(end))) {
|
||||
case 0x22: if(instr || (end - start == 0)) instr = !instr; break;
|
||||
case 0x22: instr = !instr; break;
|
||||
case sepcc: case 0x0a: case 0x0d: if(!instr) finish_cell(); break;
|
||||
default: break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user