From 2786b1f7c29a437b9ca376910293b608ff2fd662 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 3 Feb 2023 04:07:49 +0000 Subject: [PATCH] fix: webapp/package.json & webapp/package-lock.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-D3COLOR-1076592 --- webapp/package-lock.json | 115 ++++++++++++++++++++++++--------------- webapp/package.json | 2 +- 2 files changed, 72 insertions(+), 45 deletions(-) mode change 100755 => 100644 webapp/package.json diff --git a/webapp/package-lock.json b/webapp/package-lock.json index ef59f7ca..4dbf7457 100644 --- a/webapp/package-lock.json +++ b/webapp/package-lock.json @@ -39,7 +39,7 @@ "monaco-editor-webpack-plugin": "^7.0.1", "openseadragon": "^3.0.0", "path-to-regexp": "^6.2.0", - "plotly.js": "^2.8.3", + "plotly.js": "^2.18.1", "qs": "^6.9.4", "react": "^17.0.1", "react-app-polyfill": "^3.0.0", @@ -8965,8 +8965,9 @@ } }, "node_modules/is-mobile": { - "version": "2.2.2", - "license": "MIT" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-mobile/-/is-mobile-3.1.1.tgz", + "integrity": "sha512-RRoXXR2HNFxNkUnxtaBdGBXtFlUMFa06S0NUKf/LCF+MuGLu13gi9iBCkoEmc6+rpXuwi5Mso5V8Zf7mNynMBQ==" }, "node_modules/is-module": { "version": "1.0.0", @@ -11381,7 +11382,8 @@ }, "node_modules/needle": { "version": "2.9.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", + "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", "dependencies": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -11396,7 +11398,8 @@ }, "node_modules/needle/node_modules/iconv-lite": { "version": "0.4.24", - "license": "MIT", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dependencies": { "safer-buffer": ">= 2.1.2 < 3" }, @@ -12047,8 +12050,9 @@ } }, "node_modules/plotly.js": { - "version": "2.8.3", - "license": "MIT", + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/plotly.js/-/plotly.js-2.18.1.tgz", + "integrity": "sha512-ZOOWAI4X8vYPrlhKnO27+NdA99GIYvj0+DHFmPXMZCkfxMT8YWUb6th0og6HKCve727tH+7vWAkb+Hg+2KgtUA==", "dependencies": { "@plotly/d3": "3.8.0", "@plotly/d3-sankey": "0.7.2", @@ -12067,7 +12071,7 @@ "d3-geo": "^1.12.1", "d3-geo-projection": "^2.9.0", "d3-hierarchy": "^1.1.9", - "d3-interpolate": "^1.4.0", + "d3-interpolate": "^3.0.1", "d3-time": "^1.1.0", "d3-time-format": "^2.2.3", "fast-isnumeric": "^1.1.4", @@ -12076,16 +12080,17 @@ "glslify": "^7.1.1", "has-hover": "^1.0.1", "has-passive-events": "^1.0.0", - "is-mobile": "^2.2.2", + "is-mobile": "^3.1.1", "mapbox-gl": "1.10.1", "mouse-change": "^1.4.0", "mouse-event-offset": "^3.0.2", "mouse-wheel": "^1.2.0", "native-promise-only": "^0.8.1", "parse-svg-path": "^0.1.2", + "point-in-polygon": "^1.1.0", "polybooljs": "^1.2.0", - "probe-image-size": "^7.2.2", - "regl": "^2.1.0", + "probe-image-size": "^7.2.3", + "regl": "npm:@plotly/regl@^2.1.2", "regl-error2d": "^2.0.12", "regl-line2d": "^3.1.2", "regl-scatter2d": "^3.2.8", @@ -12100,10 +12105,6 @@ "world-calendars": "^1.0.3" } }, - "node_modules/plotly.js/node_modules/d3-color": { - "version": "1.4.1", - "license": "BSD-3-Clause" - }, "node_modules/plotly.js/node_modules/d3-format": { "version": "1.4.5", "license": "BSD-3-Clause" @@ -12112,13 +12113,6 @@ "version": "1.1.9", "license": "BSD-3-Clause" }, - "node_modules/plotly.js/node_modules/d3-interpolate": { - "version": "1.4.0", - "license": "BSD-3-Clause", - "dependencies": { - "d3-color": "1" - } - }, "node_modules/plotly.js/node_modules/d3-time": { "version": "1.1.0", "license": "BSD-3-Clause" @@ -12130,6 +12124,17 @@ "d3-time": "1" } }, + "node_modules/plotly.js/node_modules/regl": { + "name": "@plotly/regl", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/@plotly/regl/-/regl-2.1.2.tgz", + "integrity": "sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw==" + }, + "node_modules/point-in-polygon": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/point-in-polygon/-/point-in-polygon-1.1.0.tgz", + "integrity": "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw==" + }, "node_modules/polybooljs": { "version": "1.2.0", "license": "MIT" @@ -13207,8 +13212,9 @@ "license": "MIT" }, "node_modules/probe-image-size": { - "version": "7.2.2", - "license": "MIT", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/probe-image-size/-/probe-image-size-7.2.3.tgz", + "integrity": "sha512-HubhG4Rb2UH8YtV4ba0Vp5bQ7L78RTONYu/ujmCu5nBI8wGv24s4E9xSKBi0N1MowRpxk76pFCpJtW0KPzOK0w==", "dependencies": { "lodash.merge": "^4.6.2", "needle": "^2.5.2", @@ -14843,21 +14849,24 @@ }, "node_modules/stream-parser": { "version": "0.3.1", - "license": "MIT", + "resolved": "https://registry.npmjs.org/stream-parser/-/stream-parser-0.3.1.tgz", + "integrity": "sha512-bJ/HgKq41nlKvlhccD5kaCr/P+Hu0wPNKPJOH7en+YrJu/9EgqUF+88w5Jb6KNcjOFMhfX4B2asfeAtIGuHObQ==", "dependencies": { "debug": "2" } }, "node_modules/stream-parser/node_modules/debug": { "version": "2.6.9", - "license": "MIT", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dependencies": { "ms": "2.0.0" } }, "node_modules/stream-parser/node_modules/ms": { "version": "2.0.0", - "license": "MIT" + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" }, "node_modules/stream-shift": { "version": "1.0.1", @@ -22381,7 +22390,9 @@ "version": "1.0.0" }, "is-mobile": { - "version": "2.2.2" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/is-mobile/-/is-mobile-3.1.1.tgz", + "integrity": "sha512-RRoXXR2HNFxNkUnxtaBdGBXtFlUMFa06S0NUKf/LCF+MuGLu13gi9iBCkoEmc6+rpXuwi5Mso5V8Zf7mNynMBQ==" }, "is-module": { "version": "1.0.0" @@ -23977,6 +23988,8 @@ }, "needle": { "version": "2.9.1", + "resolved": "https://registry.npmjs.org/needle/-/needle-2.9.1.tgz", + "integrity": "sha512-6R9fqJ5Zcmf+uYaFgdIHmLwNldn5HbK8L5ybn7Uz+ylX/rnOsSp1AHcvQSrCaFN+qNM1wpymHqD7mVasEOlHGQ==", "requires": { "debug": "^3.2.6", "iconv-lite": "^0.4.4", @@ -23985,6 +23998,8 @@ "dependencies": { "iconv-lite": { "version": "0.4.24", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", + "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "requires": { "safer-buffer": ">= 2.1.2 < 3" } @@ -24373,7 +24388,9 @@ } }, "plotly.js": { - "version": "2.8.3", + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/plotly.js/-/plotly.js-2.18.1.tgz", + "integrity": "sha512-ZOOWAI4X8vYPrlhKnO27+NdA99GIYvj0+DHFmPXMZCkfxMT8YWUb6th0og6HKCve727tH+7vWAkb+Hg+2KgtUA==", "requires": { "@plotly/d3": "3.8.0", "@plotly/d3-sankey": "0.7.2", @@ -24392,7 +24409,7 @@ "d3-geo": "^1.12.1", "d3-geo-projection": "^2.9.0", "d3-hierarchy": "^1.1.9", - "d3-interpolate": "^1.4.0", + "d3-interpolate": "^3.0.1", "d3-time": "^1.1.0", "d3-time-format": "^2.2.3", "fast-isnumeric": "^1.1.4", @@ -24401,16 +24418,17 @@ "glslify": "^7.1.1", "has-hover": "^1.0.1", "has-passive-events": "^1.0.0", - "is-mobile": "^2.2.2", + "is-mobile": "^3.1.1", "mapbox-gl": "1.10.1", "mouse-change": "^1.4.0", "mouse-event-offset": "^3.0.2", "mouse-wheel": "^1.2.0", "native-promise-only": "^0.8.1", "parse-svg-path": "^0.1.2", + "point-in-polygon": "^1.1.0", "polybooljs": "^1.2.0", - "probe-image-size": "^7.2.2", - "regl": "^2.1.0", + "probe-image-size": "^7.2.3", + "regl": "npm:@plotly/regl@^2.1.2", "regl-error2d": "^2.0.12", "regl-line2d": "^3.1.2", "regl-scatter2d": "^3.2.8", @@ -24425,21 +24443,12 @@ "world-calendars": "^1.0.3" }, "dependencies": { - "d3-color": { - "version": "1.4.1" - }, "d3-format": { "version": "1.4.5" }, "d3-hierarchy": { "version": "1.1.9" }, - "d3-interpolate": { - "version": "1.4.0", - "requires": { - "d3-color": "1" - } - }, "d3-time": { "version": "1.1.0" }, @@ -24448,9 +24457,19 @@ "requires": { "d3-time": "1" } + }, + "regl": { + "version": "npm:@plotly/regl@2.1.2", + "resolved": "https://registry.npmjs.org/@plotly/regl/-/regl-2.1.2.tgz", + "integrity": "sha512-Mdk+vUACbQvjd0m/1JJjOOafmkp/EpmHjISsopEz5Av44CBq7rPC05HHNbYGKVyNUF2zmEoBS/TT0pd0SPFFyw==" } } }, + "point-in-polygon": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/point-in-polygon/-/point-in-polygon-1.1.0.tgz", + "integrity": "sha512-3ojrFwjnnw8Q9242TzgXuTD+eKiutbzyslcq1ydfu82Db2y+Ogbmyrkpv0Hgj31qwT3lbS9+QAAO/pIQM35XRw==" + }, "polybooljs": { "version": "1.2.0" }, @@ -25007,7 +25026,9 @@ } }, "probe-image-size": { - "version": "7.2.2", + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/probe-image-size/-/probe-image-size-7.2.3.tgz", + "integrity": "sha512-HubhG4Rb2UH8YtV4ba0Vp5bQ7L78RTONYu/ujmCu5nBI8wGv24s4E9xSKBi0N1MowRpxk76pFCpJtW0KPzOK0w==", "requires": { "lodash.merge": "^4.6.2", "needle": "^2.5.2", @@ -26070,18 +26091,24 @@ }, "stream-parser": { "version": "0.3.1", + "resolved": "https://registry.npmjs.org/stream-parser/-/stream-parser-0.3.1.tgz", + "integrity": "sha512-bJ/HgKq41nlKvlhccD5kaCr/P+Hu0wPNKPJOH7en+YrJu/9EgqUF+88w5Jb6KNcjOFMhfX4B2asfeAtIGuHObQ==", "requires": { "debug": "2" }, "dependencies": { "debug": { "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "requires": { "ms": "2.0.0" } }, "ms": { - "version": "2.0.0" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" } } }, diff --git a/webapp/package.json b/webapp/package.json old mode 100755 new mode 100644 index 8a68bd04..2cc61760 --- a/webapp/package.json +++ b/webapp/package.json @@ -35,7 +35,7 @@ "monaco-editor-webpack-plugin": "^7.0.1", "openseadragon": "^3.0.0", "path-to-regexp": "^6.2.0", - "plotly.js": "^2.8.3", + "plotly.js": "^2.18.1", "qs": "^6.9.4", "react": "^17.0.1", "react-app-polyfill": "^3.0.0",