Skip to content

Commit

Permalink
Merge pull request #523 from rtfpessoa/bump-dependencies
Browse files Browse the repository at this point in the history
updates
  • Loading branch information
rtfpessoa authored Jan 12, 2024
2 parents 363b619 + aa47319 commit 4de87bf
Show file tree
Hide file tree
Showing 4 changed files with 2,041 additions and 1,919 deletions.
64 changes: 32 additions & 32 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,60 +85,60 @@
"hogan.js": "3.0.2"
},
"optionalDependencies": {
"highlight.js": "11.8.0"
"highlight.js": "11.9.0"
},
"devDependencies": {
"@types/diff": "5.0.3",
"@types/hogan.js": "3.0.1",
"@types/jest": "29.5.3",
"@types/node": "20.4.8",
"@types/nopt": "3.0.29",
"@typescript-eslint/eslint-plugin": "6.2.1",
"@typescript-eslint/parser": "6.2.1",
"@types/diff": "5.0.9",
"@types/hogan.js": "3.0.5",
"@types/jest": "29.5.11",
"@types/node": "20.11.0",
"@types/nopt": "3.0.32",
"@typescript-eslint/eslint-plugin": "6.18.1",
"@typescript-eslint/parser": "6.18.1",
"all-contributors-cli": "^6.24.0",
"autoprefixer": "10.4.14",
"autoprefixer": "10.4.16",
"bulma": "^0.9.4",
"clipboard": "2.0.11",
"copy-webpack-plugin": "11.0.0",
"css-loader": "6.8.1",
"cssnano": "6.0.1",
"eslint": "8.46.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.28.0",
"eslint-plugin-jest": "27.2.3",
"copy-webpack-plugin": "12.0.1",
"css-loader": "6.9.0",
"cssnano": "6.0.3",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "27.6.3",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-optimize-regex": "1.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-sonarjs": "0.20.0",
"eslint-plugin-sonarjs": "0.23.0",
"file-loader": "6.2.0",
"handlebars": "4.7.8",
"handlebars-loader": "1.7.3",
"html-webpack-plugin": "5.5.3",
"html-webpack-plugin": "5.6.0",
"husky": "^8.0.1",
"image-webpack-loader": "8.1.0",
"is-ci-cli": "2.2.0",
"jest": "29.6.2",
"lint-staged": "13.2.3",
"jest": "29.7.0",
"lint-staged": "15.2.0",
"markdown-toc": "^1.2.0",
"mini-css-extract-plugin": "2.7.6",
"mini-css-extract-plugin": "2.7.7",
"mkdirp": "3.0.1",
"nopt": "7.2.0",
"postcss": "8.4.27",
"postcss-cli": "10.1.0",
"postcss-import": "15.1.0",
"postcss-loader": "7.3.3",
"postcss-preset-env": "9.1.1",
"prettier": "3.0.1",
"postcss": "8.4.33",
"postcss-cli": "11.0.0",
"postcss-import": "16.0.0",
"postcss-loader": "7.3.4",
"postcss-preset-env": "9.3.0",
"prettier": "3.2.1",
"ts-jest": "29.1.1",
"ts-loader": "9.4.4",
"ts-node": "10.9.1",
"typescript": "5.1.6",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"typescript": "5.3.3",
"url-loader": "4.1.1",
"webpack": "5.88.2",
"webpack": "5.89.0",
"webpack-cli": "5.1.4",
"webpack-dev-server": "4.15.1",
"whatwg-fetch": "3.6.17"
"whatwg-fetch": "3.6.20"
},
"resolutions": {
"lodash": ">=4.17.20",
Expand Down
4 changes: 2 additions & 2 deletions src/ui/js/diff2html-ui-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ export class Diff2HtmlUI {
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
this.config.highlightLanguages.get(language)!
: language
? getLanguage(language)
: 'plaintext';
? getLanguage(language)
: 'plaintext';

// Fallback to plaintext in case language is not loaded
if (hljs.getLanguage(hljsLanguage) === undefined) {
Expand Down
4 changes: 2 additions & 2 deletions website/templates/pages/demo/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ function getConfiguration(urlParams: URLParams): Diff2HtmlUIConfig {
const newObject = !Number.isNaN(Number(v))
? { [k]: Number(v) }
: v === 'true' || v === 'false'
? { [k]: Boolean(v) }
: { [k]: v };
? { [k]: Boolean(v) }
: { [k]: v };
return { ...object, ...newObject };
}, {});
}
Expand Down
Loading

0 comments on commit 4de87bf

Please sign in to comment.