Skip to content

Commit 0911596

Browse files
authored
fix: Update dependencies for minor ReDos vulnerability (#185)
1 parent acadfbf commit 0911596

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"lodash.clonedeep": "^4.5.0",
1010
"lodash.truncate": "^4.4.2",
1111
"slice-ansi": "^4.0.0",
12-
"string-width": "^4.2.0",
13-
"strip-ansi": "^6.0.0"
12+
"string-width": "^4.2.3",
13+
"strip-ansi": "^6.0.1"
1414
},
1515
"description": "Formats data into a string table.",
1616
"devDependencies": {
@@ -73,7 +73,8 @@
7373
"test/**/*.ts"
7474
],
7575
"reporter": [
76-
"text-lcov", "text"
76+
"text-lcov",
77+
"text"
7778
]
7879
},
7980
"repository": {

src/validateConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type {
77
TableUserConfig,
88
} from './types/api';
99

10-
export const validateConfig = (schemaId: 'config.json'|'streamConfig.json', config: TableUserConfig): void => {
10+
export const validateConfig = (schemaId: 'config.json' | 'streamConfig.json', config: TableUserConfig): void => {
1111
const validate = validators[schemaId] as ValidateFunction;
1212
if (!validate(config) && validate.errors) {
1313
const errors = validate.errors.map((error: ErrorObject) => {

0 commit comments

Comments
 (0)