updates
This commit is contained in:
parent
363b619d87
commit
aa4731953e
4 changed files with 2045 additions and 1923 deletions
64
package.json
64
package.json
|
|
@ -85,60 +85,60 @@
|
||||||
"hogan.js": "3.0.2"
|
"hogan.js": "3.0.2"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"highlight.js": "11.8.0"
|
"highlight.js": "11.9.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/diff": "5.0.3",
|
"@types/diff": "5.0.9",
|
||||||
"@types/hogan.js": "3.0.1",
|
"@types/hogan.js": "3.0.5",
|
||||||
"@types/jest": "29.5.3",
|
"@types/jest": "29.5.11",
|
||||||
"@types/node": "20.4.8",
|
"@types/node": "20.11.0",
|
||||||
"@types/nopt": "3.0.29",
|
"@types/nopt": "3.0.32",
|
||||||
"@typescript-eslint/eslint-plugin": "6.2.1",
|
"@typescript-eslint/eslint-plugin": "6.18.1",
|
||||||
"@typescript-eslint/parser": "6.2.1",
|
"@typescript-eslint/parser": "6.18.1",
|
||||||
"all-contributors-cli": "^6.24.0",
|
"all-contributors-cli": "^6.24.0",
|
||||||
"autoprefixer": "10.4.14",
|
"autoprefixer": "10.4.16",
|
||||||
"bulma": "^0.9.4",
|
"bulma": "^0.9.4",
|
||||||
"clipboard": "2.0.11",
|
"clipboard": "2.0.11",
|
||||||
"copy-webpack-plugin": "11.0.0",
|
"copy-webpack-plugin": "12.0.1",
|
||||||
"css-loader": "6.8.1",
|
"css-loader": "6.9.0",
|
||||||
"cssnano": "6.0.1",
|
"cssnano": "6.0.3",
|
||||||
"eslint": "8.46.0",
|
"eslint": "8.56.0",
|
||||||
"eslint-config-prettier": "9.0.0",
|
"eslint-config-prettier": "9.1.0",
|
||||||
"eslint-plugin-import": "2.28.0",
|
"eslint-plugin-import": "2.29.1",
|
||||||
"eslint-plugin-jest": "27.2.3",
|
"eslint-plugin-jest": "27.6.3",
|
||||||
"eslint-plugin-json": "3.1.0",
|
"eslint-plugin-json": "3.1.0",
|
||||||
"eslint-plugin-node": "11.1.0",
|
"eslint-plugin-node": "11.1.0",
|
||||||
"eslint-plugin-optimize-regex": "1.2.1",
|
"eslint-plugin-optimize-regex": "1.2.1",
|
||||||
"eslint-plugin-promise": "6.1.1",
|
"eslint-plugin-promise": "6.1.1",
|
||||||
"eslint-plugin-sonarjs": "0.20.0",
|
"eslint-plugin-sonarjs": "0.23.0",
|
||||||
"file-loader": "6.2.0",
|
"file-loader": "6.2.0",
|
||||||
"handlebars": "4.7.8",
|
"handlebars": "4.7.8",
|
||||||
"handlebars-loader": "1.7.3",
|
"handlebars-loader": "1.7.3",
|
||||||
"html-webpack-plugin": "5.5.3",
|
"html-webpack-plugin": "5.6.0",
|
||||||
"husky": "^8.0.1",
|
"husky": "^8.0.1",
|
||||||
"image-webpack-loader": "8.1.0",
|
"image-webpack-loader": "8.1.0",
|
||||||
"is-ci-cli": "2.2.0",
|
"is-ci-cli": "2.2.0",
|
||||||
"jest": "29.6.2",
|
"jest": "29.7.0",
|
||||||
"lint-staged": "13.2.3",
|
"lint-staged": "15.2.0",
|
||||||
"markdown-toc": "^1.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",
|
"mkdirp": "3.0.1",
|
||||||
"nopt": "7.2.0",
|
"nopt": "7.2.0",
|
||||||
"postcss": "8.4.27",
|
"postcss": "8.4.33",
|
||||||
"postcss-cli": "10.1.0",
|
"postcss-cli": "11.0.0",
|
||||||
"postcss-import": "15.1.0",
|
"postcss-import": "16.0.0",
|
||||||
"postcss-loader": "7.3.3",
|
"postcss-loader": "7.3.4",
|
||||||
"postcss-preset-env": "9.1.1",
|
"postcss-preset-env": "9.3.0",
|
||||||
"prettier": "3.0.1",
|
"prettier": "3.2.1",
|
||||||
"ts-jest": "29.1.1",
|
"ts-jest": "29.1.1",
|
||||||
"ts-loader": "9.4.4",
|
"ts-loader": "9.5.1",
|
||||||
"ts-node": "10.9.1",
|
"ts-node": "10.9.2",
|
||||||
"typescript": "5.1.6",
|
"typescript": "5.3.3",
|
||||||
"url-loader": "4.1.1",
|
"url-loader": "4.1.1",
|
||||||
"webpack": "5.88.2",
|
"webpack": "5.89.0",
|
||||||
"webpack-cli": "5.1.4",
|
"webpack-cli": "5.1.4",
|
||||||
"webpack-dev-server": "4.15.1",
|
"webpack-dev-server": "4.15.1",
|
||||||
"whatwg-fetch": "3.6.17"
|
"whatwg-fetch": "3.6.20"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"lodash": ">=4.17.20",
|
"lodash": ">=4.17.20",
|
||||||
|
|
|
||||||
|
|
@ -156,8 +156,8 @@ export class Diff2HtmlUI {
|
||||||
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
? // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||||
this.config.highlightLanguages.get(language)!
|
this.config.highlightLanguages.get(language)!
|
||||||
: language
|
: language
|
||||||
? getLanguage(language)
|
? getLanguage(language)
|
||||||
: 'plaintext';
|
: 'plaintext';
|
||||||
|
|
||||||
// Fallback to plaintext in case language is not loaded
|
// Fallback to plaintext in case language is not loaded
|
||||||
if (hljs.getLanguage(hljsLanguage) === undefined) {
|
if (hljs.getLanguage(hljsLanguage) === undefined) {
|
||||||
|
|
|
||||||
|
|
@ -134,8 +134,8 @@ function getConfiguration(urlParams: URLParams): Diff2HtmlUIConfig {
|
||||||
const newObject = !Number.isNaN(Number(v))
|
const newObject = !Number.isNaN(Number(v))
|
||||||
? { [k]: Number(v) }
|
? { [k]: Number(v) }
|
||||||
: v === 'true' || v === 'false'
|
: v === 'true' || v === 'false'
|
||||||
? { [k]: Boolean(v) }
|
? { [k]: Boolean(v) }
|
||||||
: { [k]: v };
|
: { [k]: v };
|
||||||
return { ...object, ...newObject };
|
return { ...object, ...newObject };
|
||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue