chore(deps): update all dev dependencies and add NodePolyfillPlugin

Add NodePolyfillPlugin to simplify node fallback configuration.
Also, run `npm audit fix` to address most audit issues.
This commit is contained in:
Bart van Andel 2026-02-05 16:13:16 +01:00
parent 7942d60349
commit 318b10379b
3 changed files with 2225 additions and 1965 deletions

4104
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -69,14 +69,11 @@
"bootstrap": "4.6.2", "bootstrap": "4.6.2",
"bootstrap-colorpicker": "^3.4.0", "bootstrap-colorpicker": "^3.4.0",
"bootstrap-material-design": "^4.1.3", "bootstrap-material-design": "^4.1.3",
"browserify-zlib": "^0.2.0",
"bson": "^4.7.2", "bson": "^4.7.2",
"buffer": "^6.0.3",
"cbor": "9.0.2", "cbor": "9.0.2",
"chi-squared": "^1.1.0", "chi-squared": "^1.1.0",
"codepage": "^1.15.0", "codepage": "^1.15.0",
"crypto-api": "^0.8.5", "crypto-api": "^0.8.5",
"crypto-browserify": "^3.12.1",
"crypto-js": "^4.2.0", "crypto-js": "^4.2.0",
"ctph.js": "0.0.5", "ctph.js": "0.0.5",
"d3": "7.9.0", "d3": "7.9.0",
@ -87,7 +84,7 @@
"escodegen": "^2.1.0", "escodegen": "^2.1.0",
"esprima": "^4.0.1", "esprima": "^4.0.1",
"exif-parser": "^0.1.12", "exif-parser": "^0.1.12",
"fernet": "^0.4.0", "fernet": "~0.3.3",
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"flat": "^6.0.1", "flat": "^6.0.1",
"geodesy": "1.1.3", "geodesy": "1.1.3",
@ -103,7 +100,7 @@
"json5": "^2.2.3", "json5": "^2.2.3",
"jsonata": "^2.0.3", "jsonata": "^2.0.3",
"jsonpath-plus": "^10.3.0", "jsonpath-plus": "^10.3.0",
"jsonwebtoken": "8.5.1", "jsonwebtoken": "^9.0.3",
"jsqr": "^1.4.0", "jsqr": "^1.4.0",
"jsrsasign": "^11.1.0", "jsrsasign": "^11.1.0",
"kbpgp": "^2.1.17", "kbpgp": "^2.1.17",
@ -125,7 +122,6 @@
"ntlm": "^0.1.3", "ntlm": "^0.1.3",
"nwmatcher": "^1.4.4", "nwmatcher": "^1.4.4",
"otpauth": "9.3.6", "otpauth": "9.3.6",
"path": "^0.12.7",
"popper.js": "^1.16.1", "popper.js": "^1.16.1",
"process": "^0.11.10", "process": "^0.11.10",
"protobufjs": "^7.3.1", "protobufjs": "^7.3.1",
@ -137,7 +133,6 @@
"sortablejs": "^1.15.2", "sortablejs": "^1.15.2",
"split.js": "^1.6.5", "split.js": "^1.6.5",
"ssdeep.js": "0.0.3", "ssdeep.js": "0.0.3",
"stream-browserify": "^3.0.0",
"tesseract.js": "5.1.0", "tesseract.js": "5.1.0",
"ua-parser-js": "^1.0.38", "ua-parser-js": "^1.0.38",
"unorm": "^1.6.0", "unorm": "^1.6.0",
@ -149,56 +144,58 @@
"zlibjs": "^0.3.1" "zlibjs": "^0.3.1"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.24.7", "@babel/core": "^7.29.0",
"@babel/eslint-parser": "^7.24.7", "@babel/eslint-parser": "^7.28.6",
"@babel/plugin-syntax-import-assertions": "^7.24.7", "@babel/plugin-syntax-import-assertions": "^7.28.6",
"@babel/plugin-transform-runtime": "^7.24.7", "@babel/plugin-transform-runtime": "^7.29.0",
"@babel/preset-env": "^7.24.7", "@babel/preset-env": "^7.29.0",
"@babel/runtime": "^7.24.7", "@babel/runtime": "^7.28.6",
"@codemirror/commands": "^6.6.0", "@codemirror/commands": "^6.10.1",
"@codemirror/language": "^6.10.2", "@codemirror/language": "^6.12.1",
"@codemirror/search": "^6.5.6", "@codemirror/search": "^6.6.0",
"@codemirror/state": "^6.4.1", "@codemirror/state": "^6.5.4",
"@codemirror/view": "^6.28.0", "@codemirror/view": "^6.39.12",
"autoprefixer": "^10.4.19", "autoprefixer": "^10.4.24",
"babel-loader": "^9.1.3", "babel-loader": "^10.0.0",
"babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-transform-builtin-extend": "1.1.2", "babel-plugin-transform-builtin-extend": "^1.1.2",
"base64-loader": "^1.0.0", "base64-loader": "^1.0.0",
"chromedriver": "^144.0.0", "chromedriver": "^144.0.0",
"cli-progress": "^3.12.0", "cli-progress": "^3.12.0",
"colors": "^1.4.0", "colors": "^1.4.0",
"compression-webpack-plugin": "^11.1.0", "compression-webpack-plugin": "^11.1.0",
"copy-webpack-plugin": "^13.0.1", "copy-webpack-plugin": "^13.0.1",
"core-js": "^3.37.1", "core-js": "^3.48.0",
"cspell": "^8.17.3", "cspell": "^9.6.4",
"css-loader": "7.1.2", "css-loader": "^7.1.3",
"eslint": "^9.4.0", "eslint": "^9.39.2",
"eslint-plugin-jsdoc": "^48.2.9", "eslint-plugin-jsdoc": "^62.5.2",
"globals": "^15.4.0", "glob": "^13.0.1",
"globals": "^17.3.0",
"grunt": "^1.6.1", "grunt": "^1.6.1",
"grunt-chmod": "~1.1.1", "grunt-chmod": "~1.0.3",
"grunt-concurrent": "^3.0.0", "grunt-concurrent": "^3.0.0",
"grunt-contrib-clean": "~2.0.1", "grunt-contrib-clean": "~2.0.1",
"grunt-contrib-connect": "^4.0.0", "grunt-contrib-connect": "^5.0.1",
"grunt-contrib-copy": "~1.0.0", "grunt-contrib-copy": "~1.0.0",
"grunt-contrib-watch": "^1.1.0", "grunt-contrib-watch": "^1.1.0",
"grunt-eslint": "^25.0.0", "grunt-eslint": "^26.0.0",
"grunt-exec": "~3.0.0", "grunt-exec": "~3.0.0",
"grunt-webpack": "^7.0.1", "grunt-webpack": "^7.0.1",
"grunt-zip": "^1.0.0", "grunt-zip": "^1.0.0",
"html-webpack-plugin": "^5.6.6", "html-webpack-plugin": "^5.6.6",
"imports-loader": "^5.0.0", "imports-loader": "^5.0.0",
"mini-css-extract-plugin": "2.9.0", "mini-css-extract-plugin": "^2.10.0",
"modify-source-webpack-plugin": "^4.1.0", "modify-source-webpack-plugin": "^4.1.0",
"nightwatch": "^3.15.0", "nightwatch": "^3.15.0",
"postcss": "^8.4.38", "node-polyfill-webpack-plugin": "~4.0.0",
"postcss": "^8.5.6",
"postcss-css-variables": "^0.19.0", "postcss-css-variables": "^0.19.0",
"postcss-import": "^16.1.0", "postcss-import": "^16.1.1",
"postcss-loader": "^8.1.1", "postcss-loader": "^8.2.0",
"prompt": "^1.3.0", "prompt": "^1.3.0",
"sitemap": "^8.0.0", "sitemap": "^9.0.0",
"terser": "^5.31.1", "terser": "^5.46.0",
"webpack": "^5.105.0", "webpack": "^5.105.0",
"webpack-bundle-analyzer": "^5.2.0", "webpack-bundle-analyzer": "^5.2.0",
"webpack-dev-server": "^5.2.3", "webpack-dev-server": "^5.2.3",

View File

@ -3,6 +3,7 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const CompressionPlugin = require("compression-webpack-plugin"); const CompressionPlugin = require("compression-webpack-plugin");
const CopyWebpackPlugin = require("copy-webpack-plugin"); const CopyWebpackPlugin = require("copy-webpack-plugin");
const { ModifySourcePlugin, ReplaceOperation } = require("modify-source-webpack-plugin"); const { ModifySourcePlugin, ReplaceOperation } = require("modify-source-webpack-plugin");
const NodePolyfillPlugin = require("node-polyfill-webpack-plugin");
const path = require("path"); const path = require("path");
const zlib = require("zlib"); const zlib = require("zlib");
@ -112,26 +113,14 @@ module.exports = {
] ]
} }
] ]
}) }),
new NodePolyfillPlugin(),
], ],
resolve: { resolve: {
extensions: [".mjs", ".js", ".json"], // Allows importing files without extensions extensions: [".mjs", ".js", ".json"], // Allows importing files without extensions
alias: { alias: {
jquery: "jquery/src/jquery", jquery: "jquery/src/jquery",
}, },
fallback: {
"fs": false,
"child_process": false,
"net": false,
"tls": false,
"path": require.resolve("path/"),
"buffer": require.resolve("buffer/"),
"crypto": require.resolve("crypto-browserify"),
"stream": require.resolve("stream-browserify"),
"zlib": require.resolve("browserify-zlib"),
"process": false,
"vm": false
}
}, },
module: { module: {
// argon2-browser loads argon2.wasm by itself, so Webpack should not load it // argon2-browser loads argon2.wasm by itself, so Webpack should not load it