Skip to content
This repository has been archived by the owner on Jul 25, 2021. It is now read-only.

Commit

Permalink
v5.0.0-rc.8 - fix: rowspan/colspan bug in XLSX format (from previous …
Browse files Browse the repository at this point in the history
…commit)
  • Loading branch information
clarketm committed Jun 9, 2017
1 parent a9b6541 commit aeb1b18
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tableexport.js",
"version": "5.0.0-rc.7",
"version": "5.0.0-rc.8",
"authors": [
"clarketm <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion dist/css/tableexport.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down
2 changes: 1 addition & 1 deletion dist/css/tableexport.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down
8 changes: 4 additions & 4 deletions dist/js/tableexport.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down Expand Up @@ -147,7 +147,7 @@
* Version.
* @memberof TableExport.prototype
*/
version: '5.0.0-rc.7',
version: '5.0.0-rc.8',
/**
* Default library options.
* @memberof TableExport.prototype
Expand Down Expand Up @@ -888,7 +888,7 @@

Array.prototype.processRows = function (key, rowDel) {
if (_isEnhanced(key)) {
return this.filter(_defined);
return this.map(_toArray).filter(_defined);
} else {
return this.filter(_defined).join(rowDel);
}
Expand Down Expand Up @@ -974,7 +974,7 @@
}

function _toArray(val) {
return val && [].concat.apply([], val);
return val instanceof Array ? [].concat.apply([], val) : val;
}

function _isValidFormat(key) {
Expand Down
4 changes: 2 additions & 2 deletions dist/js/tableexport.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/tableexport.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Type definitions for TableExport v5.0.0-rc.7
// Type definitions for TableExport v5.0.0-rc.8
// Project: https://tableexport.v4.travismclarke.com
// Definitions by: Travis Clarke <https://github.com/clarketm>

/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tableexport",
"version": "5.0.0-rc.7",
"version": "5.0.0-rc.8",
"authors": [
"clarketm <[email protected]>"
],
Expand Down
2 changes: 1 addition & 1 deletion src/stable/css/tableexport.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down
2 changes: 1 addition & 1 deletion src/stable/css/tableexport.min.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down
8 changes: 4 additions & 4 deletions src/stable/js/tableexport.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* TableExport.js v5.0.0-rc.7 (https://www.travismclarke.com)
* TableExport.js v5.0.0-rc.8 (https://www.travismclarke.com)
*
* Copyright (c) 2017 - Travis Clarke - https://www.travismclarke.com
*
Expand Down Expand Up @@ -147,7 +147,7 @@
* Version.
* @memberof TableExport.prototype
*/
version: '5.0.0-rc.7',
version: '5.0.0-rc.8',
/**
* Default library options.
* @memberof TableExport.prototype
Expand Down Expand Up @@ -888,7 +888,7 @@

Array.prototype.processRows = function (key, rowDel) {
if (_isEnhanced(key)) {
return this.filter(_defined);
return this.map(_toArray).filter(_defined);
} else {
return this.filter(_defined).join(rowDel);
}
Expand Down Expand Up @@ -974,7 +974,7 @@
}

function _toArray(val) {
return val && [].concat.apply([], val);
return val instanceof Array ? [].concat.apply([], val) : val;
}

function _isValidFormat(key) {
Expand Down
4 changes: 2 additions & 2 deletions src/stable/js/tableexport.min.js

Large diffs are not rendered by default.

0 comments on commit aeb1b18

Please sign in to comment.