Skip to content

Commit

Permalink
Update to 3.7.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jmaister committed Oct 30, 2021
1 parent 1d17cd3 commit 1d91b9b
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 6 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

# Revision history:

### 3.7.3

* Fix (#591) remove columns parameter. Now it is not affected by repeated column numbers nor its order.

### 3.7.2

* _Update npm dependencies to fix vulnerabilities_
Expand Down
2 changes: 1 addition & 1 deletion dist/excellentexport.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions dist/utils.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export declare const b64toBlob: (b64Data: string, contentType: string, sliceSize?: number) => Blob;
export declare const templates: {
excel: string;
};
/**
* Convert a string to Base64.
*/
export declare const base64: (s: string) => string;
export declare const format: (s: string, context: any) => string;
/**
* Get element by ID.
* @param {*} element
*/
export declare const getTable: (element: (HTMLTableElement | string)) => HTMLTableElement;
/**
* Get element by ID.
* @param {*} element
*/
export declare const getAnchor: (element: (HTMLAnchorElement | string)) => HTMLAnchorElement;
export declare const tableToArray: (table: HTMLTableElement) => any[][];
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string;
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean;
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer;
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void;
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "excellentexport",
"version": "3.7.2",
"version": "3.7.3",
"description": "Client side JavaScript export to Excel or CSV",
"license": "MIT",
"homepage": "http://jordiburgos.com",
Expand All @@ -23,7 +23,6 @@
"prod": "webpack --config webpack.config.js --progress --mode production",
"test": "jest --coverage && coveralls < coverage/lcov.info",
"jest": "jest --coverage",
"j": "jest --watch --testMatch remove",
"watch": "jest --watch"
},
"main": "dist/excellentexport.js",
Expand Down
2 changes: 1 addition & 1 deletion src/excellentexport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export interface SheetOptions {

const ExcellentExport = function() {

const version = "3.7.2";
const version = "3.7.3";


/*
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"esModuleInterop": true
},
"include": [
"src/excellentexport.ts",
"src/**/*.ts",
"test/**/*.{ts,js}"
]
}
5 changes: 4 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,8 @@ module.exports = {
},
performance: {
hints: false
}
},
resolve: {
extensions: ['.ts', '.js']
},
};

0 comments on commit 1d91b9b

Please sign in to comment.