diff --git a/interface/src/.snyk b/interface/src/.snyk new file mode 100644 index 00000000..7d93db7d --- /dev/null +++ b/interface/src/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.25.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:extend:20180424': + - react-http-request > superagent > extend: + patched: '2022-07-20T15:02:33.080Z' diff --git a/interface/src/package.json b/interface/src/package.json index fc7a92fc..18772b2f 100644 --- a/interface/src/package.json +++ b/interface/src/package.json @@ -3,7 +3,9 @@ "test": "npm run build", "dev": "cross-env NODE_ENV=development webpack-dev-server --progress --colors --config ./webpack.config.js", "build": "cross-env NODE_ENV=production webpack -p --progress --colors --config ./webpack.config.js", - "build:silent": "cross-env NODE_ENV=production webpack -p --colors --config ./webpack.config.js" + "build:silent": "cross-env NODE_ENV=production webpack -p --colors --config ./webpack.config.js", + "prepare": "yarn run snyk-protect", + "snyk-protect": "snyk-protect" }, "devDependencies": { "babel-core": "^6.26.0", @@ -57,7 +59,7 @@ "babel-inline-import-loader": "^0.0.5", "babel-plugin-inline-import": "^2.0.6", "codemirror": "^5.36.0", - "copy-webpack-plugin": "^4.5.1", + "copy-webpack-plugin": "^5.1.2", "history": "^4.7.2", "immutability-helper": "^2.6.6", "lodash": "^4.17.5", @@ -75,7 +77,7 @@ "react-dom": "^16.2.0", "react-draggable": "^3.0.5", "react-easy-chart": "^1.0.0", - "react-http-request": "^1.0.4", + "react-http-request": "^2.0.0", "react-inspector": "^2.2.2", "react-json-view": "^1.16.1", "react-linkify": "^0.2.2", @@ -85,14 +87,16 @@ "react-rnd": "^7.4.0", "react-router-dom": "^4.2.2", "react-router-redux": "^5.0.0-alpha.9", - "react-syntax-highlighter": "^7.0.2", + "react-syntax-highlighter": "^13.0.0", "redux": "^3.7.2", "redux-thunk": "^2.2.0", - "socket.io": "^2.0.4", + "socket.io": "^3.0.0", "socket.io-client": "^2.0.4", "source-map-loader": "^0.2.3", "tapable": "^1.0.0-beta.5", - "uglifyjs-webpack-plugin": "^1.2.4" + "uglifyjs-webpack-plugin": "^2.0.0", + "@snyk/protect": "latest" }, - "private": false + "private": false, + "snyk": true }