mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
The PackageKit UpdateDetail signal provides markdown in the `update_text` and uses remarkable to parse the markdown contents. Remarkable however has not been updated since 6 years, additionally it requires us to use `dangerouslySetInnerHTML` which can lead to XSS issues. The npm ecosystem has two other markdown alternatives `react-markdown` and a `markdown-to-jsx`. The latter has zero dependencies while `react-markdown` has eleven and requires additional plugins like `rehype-external-links` to add a rel/target to external links. https://www.freedesktop.org/software/PackageKit/gtk-doc/Transaction.html https://github.com/jonschlinkert/remarkable/issues/438
62 lines
2.1 KiB
JSON
62 lines
2.1 KiB
JSON
{
|
|
"name": "CockpitDevelopmentDependencies",
|
|
"description": "Cockpit isn't a Node package, these are devel time deps, not needed to build tarball either",
|
|
"type": "module",
|
|
"private": true,
|
|
"dependencies": {
|
|
"@patternfly/patternfly": "6.6.1",
|
|
"@patternfly/react-core": "6.6.1",
|
|
"@patternfly/react-icons": "6.6.1",
|
|
"@patternfly/react-styles": "6.6.1",
|
|
"@patternfly/react-table": "6.6.1",
|
|
"@patternfly/react-tokens": "6.6.1",
|
|
"argparse": "3.0.2",
|
|
"esbuild": "0.28.2",
|
|
"esbuild-sass-plugin": "3.7.0",
|
|
"dequal": "2.0.3",
|
|
"gettext-parser": "9.1.1",
|
|
"ipaddr.js": "2.5.0",
|
|
"json-stable-stringify-without-jsonify": "1.0.1",
|
|
"prop-types": "15.8.1",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"markdown-to-jsx": "9.10.3",
|
|
"throttle-debounce": "5.0.2",
|
|
"uuid": "14.0.2",
|
|
"@xterm/xterm": "6.0.0",
|
|
"@xterm/addon-webgl": "0.19.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/qunit": "2.19.14",
|
|
"@types/react": "18.3.12",
|
|
"@types/react-dom": "18.3.1",
|
|
"@types/throttle-debounce": "5.0.2",
|
|
"@typescript-eslint/eslint-plugin": "8.60.0",
|
|
"esbuild-wasm": "0.28.2",
|
|
"eslint": "8.57.1",
|
|
"eslint-config-standard": "17.1.0",
|
|
"eslint-config-standard-jsx": "11.0.0",
|
|
"eslint-config-standard-react": "13.0.0",
|
|
"eslint-plugin-import": "2.32.0",
|
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
"eslint-plugin-node": "11.1.0",
|
|
"eslint-plugin-promise": "6.6.0",
|
|
"eslint-plugin-react": "7.37.5",
|
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
"qunit": "2.26.0",
|
|
"qunit-tap": "1.5.1",
|
|
"stylelint": "17.15.0",
|
|
"stylelint-config-recommended-scss": "17.0.1",
|
|
"stylelint-config-standard": "40.0.0",
|
|
"stylelint-config-standard-scss": "17.0.0",
|
|
"stylelint-formatter-pretty": "4.0.1",
|
|
"stylelint-use-logical": "2.1.3",
|
|
"typescript": "6.0.3"
|
|
},
|
|
"scripts": {
|
|
"eslint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx pkg/ test/common/",
|
|
"eslint:fix": "eslint --fix --ext .js --ext .jsx --ext .ts --ext .tsx pkg/ test/common/",
|
|
"stylelint": "stylelint pkg/*/*.{css,scss}",
|
|
"stylelint:fix": "stylelint --fix pkg/*/*.{css,scss}"
|
|
}
|
|
}
|