Skip to content

Commit 1d91b9b

Browse files
committed
Update to 3.7.3
1 parent 1d17cd3 commit 1d91b9b

7 files changed

+36
-6
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323

2424
# Revision history:
2525

26+
### 3.7.3
27+
28+
* Fix (#591) remove columns parameter. Now it is not affected by repeated column numbers nor its order.
29+
2630
### 3.7.2
2731

2832
* _Update npm dependencies to fix vulnerabilities_

dist/excellentexport.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/utils.d.ts

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export declare const b64toBlob: (b64Data: string, contentType: string, sliceSize?: number) => Blob;
2+
export declare const templates: {
3+
excel: string;
4+
};
5+
/**
6+
* Convert a string to Base64.
7+
*/
8+
export declare const base64: (s: string) => string;
9+
export declare const format: (s: string, context: any) => string;
10+
/**
11+
* Get element by ID.
12+
* @param {*} element
13+
*/
14+
export declare const getTable: (element: (HTMLTableElement | string)) => HTMLTableElement;
15+
/**
16+
* Get element by ID.
17+
* @param {*} element
18+
*/
19+
export declare const getAnchor: (element: (HTMLAnchorElement | string)) => HTMLAnchorElement;
20+
export declare const tableToArray: (table: HTMLTableElement) => any[][];
21+
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string;
22+
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean;
23+
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer;
24+
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void;

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "excellentexport",
3-
"version": "3.7.2",
3+
"version": "3.7.3",
44
"description": "Client side JavaScript export to Excel or CSV",
55
"license": "MIT",
66
"homepage": "http://jordiburgos.com",
@@ -23,7 +23,6 @@
2323
"prod": "webpack --config webpack.config.js --progress --mode production",
2424
"test": "jest --coverage && coveralls < coverage/lcov.info",
2525
"jest": "jest --coverage",
26-
"j": "jest --watch --testMatch remove",
2726
"watch": "jest --watch"
2827
},
2928
"main": "dist/excellentexport.js",

src/excellentexport.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export interface SheetOptions {
3333

3434
const ExcellentExport = function() {
3535

36-
const version = "3.7.2";
36+
const version = "3.7.3";
3737

3838

3939
/*

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"esModuleInterop": true
1212
},
1313
"include": [
14-
"src/excellentexport.ts",
14+
"src/**/*.ts",
1515
"test/**/*.{ts,js}"
1616
]
1717
}

webpack.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ module.exports = {
2424
},
2525
performance: {
2626
hints: false
27-
}
27+
},
28+
resolve: {
29+
extensions: ['.ts', '.js']
30+
},
2831
};

0 commit comments

Comments
 (0)