diff --git a/package-lock.json b/package-lock.json index 901f8219..42623275 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "dependencies": { "@aws-sdk/client-sqs": "^3.726.1", "@ministryofjustice/frontend": "^3.3.1", - "@ministryofjustice/hmpps-digital-prison-reporting-frontend": "3.26.8", + "@ministryofjustice/hmpps-digital-prison-reporting-frontend": "3.35.0", "@ministryofjustice/hmpps-non-associations-api": "^0.5.0", "agentkeepalive": "^4.6.0", "applicationinsights": "^2.9.6", @@ -2826,6 +2826,12 @@ "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==", "dev": true }, + "node_modules/@kurkle/color": { + "version": "0.3.4", + "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.4.tgz", + "integrity": "sha512-M5UknZPHRu3DEDWoipU6sE8PdkZ6Z/S+v4dD+Ke8IaNlpdSQah50lz1KtcFBa2vsdOnwbbnxJwVM4wty6udA5w==", + "license": "MIT" + }, "node_modules/@microsoft/applicationinsights-web-snippet": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/@microsoft/applicationinsights-web-snippet/-/applicationinsights-web-snippet-1.0.1.tgz", @@ -2877,57 +2883,33 @@ } }, "node_modules/@ministryofjustice/hmpps-digital-prison-reporting-frontend": { - "version": "3.26.8", - "resolved": "https://registry.npmjs.org/@ministryofjustice/hmpps-digital-prison-reporting-frontend/-/hmpps-digital-prison-reporting-frontend-3.26.8.tgz", - "integrity": "sha512-7WLlTbB8x0oV/O7q8yRnYDFQXjnw2qyYV3WGc4LOG9Eve0MCb9DujCrYk3T3XiMCCm5wy3YmPWXRhzYTrqvYCw==", + "version": "3.35.0", + "resolved": "https://registry.npmjs.org/@ministryofjustice/hmpps-digital-prison-reporting-frontend/-/hmpps-digital-prison-reporting-frontend-3.35.0.tgz", + "integrity": "sha512-ZqX2Tribqfd9npEEf9TCfcE/jD1XhL2aEg4XxlSCK4+SpAZasZtAoGUBTePhU5LwDb4HDlAKQ9kgHZGWnYc7Ew==", "license": "MIT", "dependencies": { + "@ministryofjustice/frontend": "^3.0.3", "agentkeepalive": "^4.5.0", "bunyan": "^1.8.15", "bunyan-format": "^0.2.1", + "chart.js": "^4.4.4", + "chartjs-plugin-datalabels": "^2.2.0", + "dayjs": "^1.11.12", "express": "^4.18.2", "govuk-frontend": "^5.3.0", + "json-2-csv": "^5.5.6", "nunjucks": "^3.2.4", "nunjucks-date": "^1.5.0", - "superagent": "^8.1.2" + "parseurl": "^1.3.3", + "redis": "^4.6.14", + "superagent": "^10.1.1" }, "engines": { - "node": "^20", - "npm": "^10" - } - }, - "node_modules/@ministryofjustice/hmpps-digital-prison-reporting-frontend/node_modules/mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", - "license": "MIT", - "bin": { - "mime": "cli.js" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/@ministryofjustice/hmpps-digital-prison-reporting-frontend/node_modules/superagent": { - "version": "8.1.2", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-8.1.2.tgz", - "integrity": "sha512-6WTxW1EB6yCxV5VFOIPQruWGHqc3yI7hEmZK6h+pyk69Lk/Ut7rLUY6W/ONF2MjBuGjvmMiIpsrVJ2vjrHlslA==", - "deprecated": "Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net", - "license": "MIT", - "dependencies": { - "component-emitter": "^1.3.0", - "cookiejar": "^2.1.4", - "debug": "^4.3.4", - "fast-safe-stringify": "^2.1.1", - "form-data": "^4.0.0", - "formidable": "^2.1.2", - "methods": "^1.1.2", - "mime": "2.6.0", - "qs": "^6.11.0", - "semver": "^7.3.8" + "node": "^22", + "npm": "^11" }, - "engines": { - "node": ">=6.4.0 <13 || >=14" + "peerDependencies": { + "jquery": "^3.7.1" } }, "node_modules/@ministryofjustice/hmpps-non-associations-api": { @@ -5489,6 +5471,27 @@ "node": "*" } }, + "node_modules/chart.js": { + "version": "4.4.7", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.7.tgz", + "integrity": "sha512-pwkcKfdzTMAU/+jNosKhNL2bHtJc/sSmYgVbuGTEDhzkrhmyihmP7vUc/5ZK9WopidMDHNe3Wm7jOd/WhuHWuw==", + "license": "MIT", + "dependencies": { + "@kurkle/color": "^0.3.0" + }, + "engines": { + "pnpm": ">=8" + } + }, + "node_modules/chartjs-plugin-datalabels": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/chartjs-plugin-datalabels/-/chartjs-plugin-datalabels-2.2.0.tgz", + "integrity": "sha512-14ZU30lH7n89oq+A4bWaJPnAG8a7ZTk7dKf48YAzMvJjQtjrgg5Dpk9f+LbjCF6bpx3RAGTeL13IXpKQYyRvlw==", + "license": "MIT", + "peerDependencies": { + "chart.js": ">=3.0.0" + } + }, "node_modules/check-more-types": { "version": "2.24.0", "resolved": "https://registry.npmjs.org/check-more-types/-/check-more-types-2.24.0.tgz", @@ -6233,7 +6236,6 @@ "version": "1.11.13", "resolved": "https://registry.npmjs.org/dayjs/-/dayjs-1.11.13.tgz", "integrity": "sha512-oaMBel6gjolK862uaPQOVTA7q3TZhuSvuMQAAglQDOWYO9A91IrAOUJEyKVlqJlHE0vq5p5UXxzdPfMH/x6xNg==", - "dev": true, "license": "MIT" }, "node_modules/debug": { @@ -6279,6 +6281,15 @@ } } }, + "node_modules/deeks": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/deeks/-/deeks-3.1.0.tgz", + "integrity": "sha512-e7oWH1LzIdv/prMQ7pmlDlaVoL64glqzvNgkgQNgyec9ORPHrT2jaOqMtRyqJuwWjtfb6v+2rk9pmaHj+F137A==", + "license": "MIT", + "engines": { + "node": ">= 16" + } + }, "node_modules/deep-is": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", @@ -6443,6 +6454,15 @@ "node": ">=8" } }, + "node_modules/doc-path": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/doc-path/-/doc-path-4.1.1.tgz", + "integrity": "sha512-h1ErTglQAVv2gCnOpD3sFS6uolDbOKHDU1BZq+Kl3npPqroU3dYL42lUgMfd5UimlwtRgp7C9dLGwqQ5D2HYgQ==", + "license": "MIT", + "engines": { + "node": ">=16" + } + }, "node_modules/doctrine": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-2.1.0.tgz", @@ -7945,21 +7965,6 @@ "node": ">= 6" } }, - "node_modules/formidable": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-2.1.2.tgz", - "integrity": "sha512-CM3GuJ57US06mlpQ47YcunuUZ9jpm8Vx+P2CGt2j7HpgkKZO/DJYQ0Bobim8G6PFQmK5lOqOOdUXboU+h73A4g==", - "license": "MIT", - "dependencies": { - "dezalgo": "^1.0.4", - "hexoid": "^1.0.0", - "once": "^1.4.0", - "qs": "^6.11.0" - }, - "funding": { - "url": "https://ko-fi.com/tunnckoCore/commissions" - } - }, "node_modules/forwarded": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", @@ -8453,6 +8458,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/hexoid/-/hexoid-1.0.0.tgz", "integrity": "sha512-QFLV0taWQOZtvIRIAdBChesmogZrtuXvVWsFHZTk2SU+anspqZ2vMnoLg7IE1+Uk16N19APic1BuF8bC8c2m5g==", + "dev": true, "engines": { "node": ">=8" } @@ -9965,6 +9971,19 @@ "node": ">=4" } }, + "node_modules/json-2-csv": { + "version": "5.5.7", + "resolved": "https://registry.npmjs.org/json-2-csv/-/json-2-csv-5.5.7.tgz", + "integrity": "sha512-aZ0EOadeNnO4ifF60oXXTH8P177WeHhFLbRLqILW1Kk1gNHlgAOuvddMwEIaxbLpCzx+vXo49whK6AILdg8qLg==", + "license": "MIT", + "dependencies": { + "deeks": "3.1.0", + "doc-path": "4.1.1" + }, + "engines": { + "node": ">= 16" + } + }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", diff --git a/package.json b/package.json index 26007d92..94ac9983 100644 --- a/package.json +++ b/package.json @@ -84,7 +84,7 @@ "dependencies": { "@aws-sdk/client-sqs": "^3.726.1", "@ministryofjustice/frontend": "^3.3.1", - "@ministryofjustice/hmpps-digital-prison-reporting-frontend": "3.26.8", + "@ministryofjustice/hmpps-digital-prison-reporting-frontend": "3.35.0", "@ministryofjustice/hmpps-non-associations-api": "^0.5.0", "agentkeepalive": "^4.6.0", "applicationinsights": "^2.9.6",