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

Commit a18b724

Browse files
committed
v5.0.2 - replace Array.prototype with Object.defineProperty
1 parent 261ca0f commit a18b724

13 files changed

+41
-34
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ $ npm install tableexport
4040
#### [CDNjs](https://cdnjs.com/libraries/TableExport)
4141
| | uncompressed | compressed |
4242
| :------: | :----------: | :--------: |
43-
| __CSS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/css/tableexport.css) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/css/tableexport.min.css) |
44-
| __JS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/js/tableexport.js) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/js/tableexport.min.js) |
45-
| __Images__ | &mdash; | [🔗<sup>xlsx</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/img/xlsx.svg)[🔗<sup>xls</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/img/xls.svg)[🔗<sup>csv</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/img/csv.svg)[🔗<sup>txt</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.1/img/txt.svg) |
43+
| __CSS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/css/tableexport.css) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/css/tableexport.min.css) |
44+
| __JS__ | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/js/tableexport.js) | [🔗](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/js/tableexport.min.js) |
45+
| __Images__ | &mdash; | [🔗<sup>xlsx</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/img/xlsx.svg)[🔗<sup>xls</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/img/xls.svg)[🔗<sup>csv</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/img/csv.svg)[🔗<sup>txt</sup>](https://cdnjs.cloudflare.com/ajax/libs/TableExport/5.0.2/img/txt.svg) |
4646

4747

4848
#### [unpkg](https://unpkg.com/#/)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tableexport.js",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"authors": [
55
"clarketm <travis.m.clarke@gmail.com>"
66
],

dist/css/tableexport.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v5.0.1 (https://www.travismclarke.com)
2+
* TableExport.js v5.0.2 (https://www.travismclarke.com)
33
*
44
* Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com
55
*

dist/css/tableexport.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v5.0.1 (https://www.travismclarke.com)
2+
* TableExport.js v5.0.2 (https://www.travismclarke.com)
33
*
44
* Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com
55
*

dist/js/tableexport.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v5.0.1 (https://www.travismclarke.com)
2+
* TableExport.js v5.0.2 (https://www.travismclarke.com)
33
*
44
* Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com
55
*
@@ -148,7 +148,7 @@
148148
* Version.
149149
* @memberof TableExport.prototype
150150
*/
151-
version: '5.0.1',
151+
version: '5.0.2',
152152
/**
153153
* Default library options.
154154
* @memberof TableExport.prototype
@@ -962,24 +962,24 @@
962962
return TableExport.prototype.CONSTANTS.TYPE;
963963
})();
964964

965-
Object.defineProperty(Array.prototype, "processRows", {
965+
Object.defineProperty(Array.prototype, 'processRows', {
966966
enumerable: false,
967-
value: function(key, rowDel) {
967+
value: function (key, rowDel) {
968968
if (_isEnhanced(key)) {
969969
return this.map(_toArray).filter(_defined);
970970
} else {
971-
return this.filter(_defined).join(rowDel);
971+
return this.filter(_defined).join(rowDel);
972972
}
973973
}
974974
});
975975

976-
Object.defineProperty(Array.prototype, "processCols", {
976+
Object.defineProperty(Array.prototype, 'processCols', {
977977
enumerable: false,
978-
value: function(key, rowDel) {
978+
value: function (key, colDel) {
979979
if (_isEnhanced(key)) {
980980
return this.filter(_defined);
981981
} else {
982-
return this.filter(_defined).join(colDel);
982+
return this.filter(_defined).join(colDel);
983983
}
984984
}
985985
});

dist/js/tableexport.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/tableexport.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
// Type definitions for TableExport v5.0.1
1+
// Type definitions for TableExport v5.0.2
22
// Project: https://tableexport.travismclarke.com
33
// Definitions by: Travis Clarke <https://github.com/clarketm>
44

55
/*!
6-
* TableExport.js v5.0.1 (https://www.travismclarke.com)
6+
* TableExport.js v5.0.2 (https://www.travismclarke.com)
77
*
88
* Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com
99
*

docs

Submodule docs updated 1 file

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tableexport",
3-
"version": "5.0.1",
3+
"version": "5.0.2",
44
"authors": [
55
"clarketm <travis.m.clarke@gmail.com>"
66
],

src/stable/css/tableexport.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* TableExport.js v5.0.1 (https://www.travismclarke.com)
2+
* TableExport.js v5.0.2 (https://www.travismclarke.com)
33
*
44
* Copyright (c) 2018 - Travis Clarke - https://www.travismclarke.com
55
*

0 commit comments

Comments
 (0)