Skip to content

Commit

Permalink
fix: Update dependencies for minor ReDos vulnerability (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
nam-hle committed Sep 30, 2021
1 parent acadfbf commit 0911596
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"lodash.clonedeep": "^4.5.0",
"lodash.truncate": "^4.4.2",
"slice-ansi": "^4.0.0",
"string-width": "^4.2.0",
"strip-ansi": "^6.0.0"
"string-width": "^4.2.3",
"strip-ansi": "^6.0.1"
},
"description": "Formats data into a string table.",
"devDependencies": {
Expand Down Expand Up @@ -73,7 +73,8 @@
"test/**/*.ts"
],
"reporter": [
"text-lcov", "text"
"text-lcov",
"text"
]
},
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/validateConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
TableUserConfig,
} from './types/api';

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

0 comments on commit 0911596

Please sign in to comment.