Audit npm packages

This commit is contained in:
Zack Rauen 2021-05-22 02:58:59 -04:00
parent 356c7e89fa
commit f8e2c2f762
3 changed files with 2184 additions and 2346 deletions

File diff suppressed because it is too large Load Diff

View File

@ -16,24 +16,24 @@
"test-prod": "npm run test -- --reporter min" "test-prod": "npm run test -- --reporter min"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.3", "@babel/core": "^7.14.3",
"@babel/preset-env": "^7.12.1", "@babel/preset-env": "^7.14.2",
"@babel/preset-react": "^7.12.1", "@babel/preset-react": "^7.13.13",
"@babel/register": "^7.12.1", "@babel/register": "^7.13.16",
"babel-loader": "^8.1.0", "babel-loader": "^8.2.2",
"babel-plugin-module-resolver": "^4.0.0", "babel-plugin-module-resolver": "^4.1.0",
"circular-dependency-plugin": "^5.2.0", "circular-dependency-plugin": "^5.2.2",
"css-loader": "^5.1.0", "css-loader": "^5.2.5",
"eslint": "^7.12.0", "eslint": "^7.27.0",
"eslint-plugin-react": "^7.21.5", "eslint-plugin-react": "^7.23.2",
"postcss": "^8.1.4", "postcss": "^8.3.0",
"postcss-cli": "^8.1.0", "postcss-cli": "^8.3.1",
"postcss-csso": "^4.0.0", "postcss-csso": "^4.0.0",
"postcss-easy-import": "^3.0.0", "postcss-easy-import": "^3.0.0",
"postcss-loader": "^4.2.0", "postcss-loader": "^4.3.0",
"stylelint": "^13.7.2", "stylelint": "^13.13.1",
"stylelint-config-standard": "^20.0.0", "stylelint-config-standard": "^20.0.0",
"webpack": "^4.43.0", "webpack": "^4.46.0",
"webpack-cli": "^3.3.12" "webpack-cli": "^3.3.12"
} }
} }

View File

@ -64,6 +64,7 @@ export default new class SettingsRenderer {
const UserSettings = WebpackModules.getByDisplayName("SettingsView"); const UserSettings = WebpackModules.getByDisplayName("SettingsView");
Patcher.after("SettingsManager", UserSettings.prototype, "getPredicateSections", (thisObject, args, returnValue) => { Patcher.after("SettingsManager", UserSettings.prototype, "getPredicateSections", (thisObject, args, returnValue) => {
let location = returnValue.findIndex(s => s.section.toLowerCase() == "changelog") - 1; let location = returnValue.findIndex(s => s.section.toLowerCase() == "changelog") - 1;
if (location < 0) return;
const insert = (section) => { const insert = (section) => {
returnValue.splice(location, 0, section); returnValue.splice(location, 0, section);
location++; location++;