console-table-printer 2.14.2 → 2.14.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,7 +14,7 @@ export interface ComputedColumn extends ColumnOptionsRaw {
|
|
|
14
14
|
function: (arg0: any, index: number, array: any[]) => any;
|
|
15
15
|
}
|
|
16
16
|
export type RowSortFunction = (row1: any, row2: any) => number;
|
|
17
|
-
export type RowFilterFunction = (row: any) =>
|
|
17
|
+
export type RowFilterFunction = (row: any) => boolean;
|
|
18
18
|
export interface DefaultColumnOptions {
|
|
19
19
|
alignment?: ALIGNMENT;
|
|
20
20
|
color?: COLOR;
|
|
@@ -12,7 +12,7 @@ const findWidthInConsole = (str, charLength) => {
|
|
|
12
12
|
if (charLength) {
|
|
13
13
|
Object.entries(charLength).forEach(([key, value]) => {
|
|
14
14
|
// count appearance of the key in the string and remove from original string
|
|
15
|
-
|
|
15
|
+
const regex = new RegExp(key, 'g');
|
|
16
16
|
strLen += (str.match(regex) || []).length * value;
|
|
17
17
|
str = str.replace(key, '');
|
|
18
18
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "console-table-printer",
|
|
3
|
-
"version": "2.14.
|
|
3
|
+
"version": "2.14.3",
|
|
4
4
|
"repository": "github:console-table-printer/console-table-printer",
|
|
5
5
|
"description": "Printing pretty tables on console log",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"scripts": {
|
|
9
9
|
"setup": "yarn",
|
|
10
10
|
"build": "tsc",
|
|
11
|
-
"format": "prettier --write \"**/*.{json,
|
|
11
|
+
"format": "prettier --write \"**/*.{json,ts,tsx,yml,js,jsx}\"",
|
|
12
12
|
"test": "jest --config jestconfig.json",
|
|
13
13
|
"test:coverage": "jest --config jestconfig.json --coverage",
|
|
14
|
-
"lint": "eslint
|
|
14
|
+
"lint": "eslint .",
|
|
15
15
|
"semantic-release": "semantic-release"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
@@ -26,23 +26,21 @@
|
|
|
26
26
|
"author": "Nahiyan Kamal",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"@eslint/js": "^9.28.0",
|
|
29
30
|
"@semantic-release/changelog": "^6.0.3",
|
|
30
31
|
"@semantic-release/git": "^10.0.1",
|
|
31
32
|
"@types/jest": "^29.5.14",
|
|
32
|
-
"
|
|
33
|
-
"@typescript-eslint/parser": "^8.32.1",
|
|
34
|
-
"eslint": "^9.27.0",
|
|
35
|
-
"eslint-config-airbnb-base": "^15.0.0",
|
|
33
|
+
"eslint": "^9.28.0",
|
|
36
34
|
"eslint-config-prettier": "^10.1.5",
|
|
37
|
-
"eslint-plugin-
|
|
38
|
-
"eslint-plugin-prettier": "^5.4.0",
|
|
35
|
+
"eslint-plugin-prettier": "^5.4.1",
|
|
39
36
|
"husky": "^9.1.7",
|
|
40
37
|
"jest": "^29.7.0",
|
|
41
38
|
"prettier": "^3.5.3",
|
|
42
|
-
"pretty-quick": "^4.
|
|
39
|
+
"pretty-quick": "^4.2.2",
|
|
43
40
|
"semantic-release": "^24.2.5",
|
|
44
41
|
"ts-jest": "^29.3.4",
|
|
45
|
-
"typescript": "^5.8.3"
|
|
42
|
+
"typescript": "^5.8.3",
|
|
43
|
+
"typescript-eslint": "^8.33.1"
|
|
46
44
|
},
|
|
47
45
|
"homepage": "https://console-table.netlify.app",
|
|
48
46
|
"dependencies": {
|