Skip to content

Commit ea1011b

Browse files
committed
Update dependencies.
1 parent bb44bad commit ea1011b

8 files changed

+1246
-926
lines changed

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
# Revision history:
2323

24+
### 3.9.4
25+
26+
* _Update npm dependencies to fix vulnerabilities_
27+
2428
### 3.9.3
2529

2630
* Fix TypeScript exported types

dist/excellentexport.d.ts

+45-45
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,45 @@
1-
/**
2-
* ExcellentExport 3.7.2
3-
* A client side Javascript export to Excel.
4-
*
5-
* @author: Jordi Burgos ([email protected])
6-
* @url: https://github.com/jmaister/excellentexport
7-
*
8-
*/
9-
import { CellTypes, FormatDefinition, CellFormats, CellPatterns } from './format';
10-
declare global {
11-
interface Navigator {
12-
msSaveBlob?: (blob: any, defaultName?: string) => boolean;
13-
}
14-
}
15-
export interface ConvertOptions {
16-
anchor?: (string | HTMLAnchorElement);
17-
openAsDownload?: boolean;
18-
format: ('csv' | 'xls' | 'xlsx');
19-
filename?: string;
20-
rtl?: boolean;
21-
}
22-
export interface FromOptions {
23-
table?: (string | HTMLTableElement);
24-
array?: any[][];
25-
}
26-
export interface SheetOptions {
27-
name: string;
28-
from: FromOptions;
29-
removeColumns?: number[];
30-
filterRowFn?(row: any[]): boolean;
31-
fixValue?(value: any, row: number, column: number): any;
32-
fixArray?(array: any[][]): any[][];
33-
rtl?: boolean;
34-
formats?: (FormatDefinition | null)[];
35-
}
36-
declare const ExcellentExport: {
37-
version: () => string;
38-
excel: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, name: string) => boolean;
39-
csv: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, delimiter?: string, newLine?: string) => boolean;
40-
convert: (options: ConvertOptions, sheets: SheetOptions[]) => string | false;
41-
formats: CellFormats;
42-
cellTypes: typeof CellTypes;
43-
cellPatterns: typeof CellPatterns;
44-
};
45-
export default ExcellentExport;
1+
/**
2+
* ExcellentExport 3.7.2
3+
* A client side Javascript export to Excel.
4+
*
5+
* @author: Jordi Burgos ([email protected])
6+
* @url: https://github.com/jmaister/excellentexport
7+
*
8+
*/
9+
import { CellTypes, FormatDefinition, CellFormats, CellPatterns } from './format';
10+
declare global {
11+
interface Navigator {
12+
msSaveBlob?: (blob: any, defaultName?: string) => boolean;
13+
}
14+
}
15+
export interface ConvertOptions {
16+
anchor?: (string | HTMLAnchorElement);
17+
openAsDownload?: boolean;
18+
format: ('csv' | 'xls' | 'xlsx');
19+
filename?: string;
20+
rtl?: boolean;
21+
}
22+
export interface FromOptions {
23+
table?: (string | HTMLTableElement);
24+
array?: any[][];
25+
}
26+
export interface SheetOptions {
27+
name: string;
28+
from: FromOptions;
29+
removeColumns?: number[];
30+
filterRowFn?(row: any[]): boolean;
31+
fixValue?(value: any, row: number, column: number): any;
32+
fixArray?(array: any[][]): any[][];
33+
rtl?: boolean;
34+
formats?: (FormatDefinition | null)[];
35+
}
36+
declare const ExcellentExport: {
37+
version: () => string;
38+
excel: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, name: string) => boolean;
39+
csv: (anchor: (HTMLAnchorElement | string), table: HTMLTableElement, delimiter?: string, newLine?: string) => boolean;
40+
convert: (options: ConvertOptions, sheets: SheetOptions[]) => string | false;
41+
formats: CellFormats;
42+
cellTypes: typeof CellTypes;
43+
cellPatterns: typeof CellPatterns;
44+
};
45+
export default ExcellentExport;

dist/excellentexport.js

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

dist/format.d.ts

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
export declare enum CellTypes {
2-
TEXT = "s",
3-
NUMBER = "n",
4-
DATE = "d",
5-
BOOLEAN = "b"
6-
}
7-
export declare enum CellPatterns {
8-
INTEGER = "0",
9-
DECIMAL = "0.00",
10-
DATE = "dd/mm/yyyy",
11-
TIME = "hh:mm:ss",
12-
DATETIME = "dd/mm/yyyy hh:mm:ss",
13-
CURRENCY = "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00",
14-
PERCENTAGE = "0.00%",
15-
EXPONENT = "0.00E+00",
16-
TEXT = "@"
17-
}
18-
export type CellType = 's' | 'n' | 'd' | 'b';
19-
export interface CellFormat {
20-
type: CellType;
21-
pattern?: string;
22-
}
23-
export interface CellFormats {
24-
[key: string]: CellFormat;
25-
}
26-
export declare const PredefinedFormat: CellFormats;
27-
export interface FormatDefinition {
28-
range: string;
29-
format?: CellFormat;
30-
}
1+
export declare enum CellTypes {
2+
TEXT = "s",
3+
NUMBER = "n",
4+
DATE = "d",
5+
BOOLEAN = "b"
6+
}
7+
export declare enum CellPatterns {
8+
INTEGER = "0",
9+
DECIMAL = "0.00",
10+
DATE = "dd/mm/yyyy",
11+
TIME = "hh:mm:ss",
12+
DATETIME = "dd/mm/yyyy hh:mm:ss",
13+
CURRENCY = "[$$-409]#,##0.00;[RED]-[$$-409]#,##0.00",
14+
PERCENTAGE = "0.00%",
15+
EXPONENT = "0.00E+00",
16+
TEXT = "@"
17+
}
18+
export type CellType = 's' | 'n' | 'd' | 'b';
19+
export interface CellFormat {
20+
type: CellType;
21+
pattern?: string;
22+
}
23+
export interface CellFormats {
24+
[key: string]: CellFormat;
25+
}
26+
export declare const PredefinedFormat: CellFormats;
27+
export interface FormatDefinition {
28+
range: string;
29+
format?: CellFormat;
30+
}

dist/utils.d.ts

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
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-
/**
21-
* Encode a value for CSV.
22-
* @param {*} value
23-
*/
24-
export declare const fixCSVField: (value: string, csvDelimiter: string) => string;
25-
export declare const tableToArray: (table: HTMLTableElement) => any[][];
26-
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string;
27-
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean;
28-
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer;
29-
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void;
30-
export declare const hasContent: (value: any) => boolean;
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+
/**
21+
* Encode a value for CSV.
22+
* @param {*} value
23+
*/
24+
export declare const fixCSVField: (value: string, csvDelimiter: string) => string;
25+
export declare const tableToArray: (table: HTMLTableElement) => any[][];
26+
export declare const tableToCSV: (table: HTMLTableElement, csvDelimiter?: string, csvNewLine?: string) => string;
27+
export declare const createDownloadLink: (anchor: HTMLAnchorElement, base64data: string, exporttype: string, filename: string) => boolean;
28+
export declare const string2ArrayBuffer: (s: string) => ArrayBuffer;
29+
export declare const removeColumns: (dataArray: any[][], columnIndexes: number[]) => void;
30+
export declare const hasContent: (value: any) => boolean;

package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "excellentexport",
3-
"version": "3.9.3",
3+
"version": "3.9.4",
44
"description": "Client side JavaScript export to Excel or CSV",
55
"license": "MIT",
66
"homepage": "http://jordiburgos.com",
@@ -27,30 +27,30 @@
2727
},
2828
"main": "dist/excellentexport.js",
2929
"devDependencies": {
30-
"@babel/core": "7.20.12",
30+
"@babel/core": "7.21.4",
3131
"@babel/plugin-proposal-class-properties": "7.18.6",
32-
"@babel/plugin-transform-flow-strip-types": "7.19.0",
33-
"@babel/preset-env": "7.20.2",
34-
"@types/jest": "29.4.0",
32+
"@babel/plugin-transform-flow-strip-types": "7.21.0",
33+
"@babel/preset-env": "7.21.4",
34+
"@types/jest": "29.5.1",
3535
"@types/jest-environment-puppeteer": "5.0.3",
36-
"@types/node": "18.13.0",
36+
"@types/node": "18.15.13",
3737
"babel-loader": "9.1.2",
3838
"blob-polyfill": "7.0.20220408",
3939
"coveralls": "3.1.1",
4040
"cross-env": "7.0.3",
4141
"html-loader": "4.2.0",
42-
"jest": "29.4.2",
43-
"jest-environment-jsdom": "^29.4.2",
44-
"jest-puppeteer": "7.0.0",
45-
"puppeteer": "19.6.3",
46-
"ts-jest": "29.0.5",
42+
"jest": "29.5.0",
43+
"jest-environment-jsdom": "^29.5.0",
44+
"jest-puppeteer": "8.0.6",
45+
"puppeteer": "19.10.1",
46+
"ts-jest": "29.1.0",
4747
"ts-loader": "9.4.2",
4848
"ts-node": "10.9.1",
49-
"typescript": "4.9.5",
50-
"webdriverio": "8.3.5",
51-
"webpack": "5.75.0",
52-
"webpack-cli": "5.0.1",
53-
"webpack-dev-server": "4.11.1",
49+
"typescript": "5.0.4",
50+
"webdriverio": "8.8.6",
51+
"webpack": "5.80.0",
52+
"webpack-cli": "5.0.2",
53+
"webpack-dev-server": "4.13.3",
5454
"webpack-node-externals": "3.0.0",
5555
"xlsx": "0.18.5"
5656
},

src/excellentexport.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export type ExcellentExportType = {
5454

5555
const ExcellentExport = function() {
5656

57-
const version = "3.9.3";
57+
const version = "3.9.4";
5858

5959
/*
6060
ExcellentExport.convert(options, sheets);

0 commit comments

Comments
 (0)