From 9bbe61b1330ca4d11d338205e205df0fbb9ac3d6 Mon Sep 17 00:00:00 2001 From: Yan Low Date: Thu, 7 Dec 2023 16:11:38 +0800 Subject: [PATCH] chore: npm audit fix --- package-lock.json | 80 ++++++++++++++++++++++++++--------------------- package.json | 2 +- 2 files changed, 45 insertions(+), 37 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6838659..6dbebd1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@govtechsg/oa-encryption": "^1.3.5", - "@govtechsg/oa-verify": "^7.11.0", + "@govtechsg/oa-verify": "^9.0.0", "@govtechsg/open-attestation": "^6.5.1", "@middy/core": "^2.5.7", "@middy/http-cors": "^2.5.7", @@ -3213,16 +3213,6 @@ "runtypes": "^6.3.0" } }, - "node_modules/@govtechsg/dnsprove/node_modules/axios": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", - "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, "node_modules/@govtechsg/document-store": { "version": "2.6.1", "resolved": "https://registry.npmjs.org/@govtechsg/document-store/-/document-store-2.6.1.tgz", @@ -3252,15 +3242,15 @@ } }, "node_modules/@govtechsg/oa-verify": { - "version": "7.12.0", - "resolved": "https://registry.npmjs.org/@govtechsg/oa-verify/-/oa-verify-7.12.0.tgz", - "integrity": "sha512-kYepojF8xJjxCpy+tSpdwaRR3vz1+C+5rQZljzaaFLsFdzgNyVnD5DcYLy+GiEfq44HxrwckJWHO8ZtTBaYdPg==", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/@govtechsg/oa-verify/-/oa-verify-9.0.0.tgz", + "integrity": "sha512-oPzYDXY+H4/A+0gLcHe5iGO0xPhiowW76sWAFDURKjfhrn//jmvspjYkxpwfXL/7ea5oI5jDbKxrYJag6+38xQ==", "dependencies": { - "@govtechsg/dnsprove": "^2.5.0", + "@govtechsg/dnsprove": "^2.6.2", "@govtechsg/document-store": "^2.2.3", "@govtechsg/open-attestation": "^6.2.0", - "@govtechsg/token-registry": "^2.5.3", - "axios": "^0.21.4", + "@govtechsg/token-registry": "^4.1.7", + "axios": "^1.6.2", "debug": "^4.3.1", "did-resolver": "^3.1.0", "ethers": "^5.1.4", @@ -3339,10 +3329,12 @@ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==" }, "node_modules/@govtechsg/token-registry": { - "version": "2.6.1", - "resolved": "https://registry.npmjs.org/@govtechsg/token-registry/-/token-registry-2.6.1.tgz", - "integrity": "sha512-QnAIlYeGD4zHtYPiZ46SIe6hFc3HyMKvyBJIdlsFxHscMR4f8AENIyUS2AKhqJibCcN2beNJy/bPWlCAtHoT7w==", - "hasInstallScript": true, + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@govtechsg/token-registry/-/token-registry-4.3.0.tgz", + "integrity": "sha512-KW73mZAz2EoC0gjt9xnu1MJYBuE/ohP18HWXPv/ZRTweaJa7QHrq8PQ9u97UMjvdFz14k7sPAC9ZlNRNaSst3A==", + "dependencies": { + "@typechain/ethers-v5": "~10.0.0" + }, "peerDependencies": { "ethers": ">=5.0.8" } @@ -4523,17 +4515,6 @@ "sprintf-js": "~1.0.2" } }, - "node_modules/@serverless/platform-client/node_modules/axios": { - "version": "1.6.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", - "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", - "dev": true, - "dependencies": { - "follow-redirects": "^1.15.0", - "form-data": "^4.0.0", - "proxy-from-env": "^1.1.0" - } - }, "node_modules/@serverless/platform-client/node_modules/https-proxy-agent": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", @@ -5614,6 +5595,23 @@ "integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==", "dev": true }, + "node_modules/@typechain/ethers-v5": { + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@typechain/ethers-v5/-/ethers-v5-10.0.0.tgz", + "integrity": "sha512-Kot7fwAqnH96ZbI8xrRgj5Kpv9yCEdjo7mxRqrH7bYpEgijT5MmuOo8IVsdhOu7Uog4ONg7k/d5UdbAtTKUgsA==", + "dependencies": { + "lodash": "^4.17.15", + "ts-essentials": "^7.0.1" + }, + "peerDependencies": { + "@ethersproject/abi": "^5.0.0", + "@ethersproject/bytes": "^5.0.0", + "@ethersproject/providers": "^5.0.0", + "ethers": "^5.1.3", + "typechain": "^8.0.0", + "typescript": ">=4.3.0" + } + }, "node_modules/@types/aws-lambda": { "version": "8.10.115", "resolved": "https://registry.npmjs.org/@types/aws-lambda/-/aws-lambda-8.10.115.tgz", @@ -6534,11 +6532,13 @@ } }, "node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz", + "integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==", "dependencies": { - "follow-redirects": "^1.14.0" + "follow-redirects": "^1.15.0", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "node_modules/babel-jest": { @@ -15865,6 +15865,14 @@ "integrity": "sha512-kMuJJd8B2N/swCvIvn1hIFcIOrLGbWl9m/J6O3kHx9VRaevh00nvgjPiEGaRee7DRaAczMYR2uwWvXU22VFltw==", "dev": true }, + "node_modules/ts-essentials": { + "version": "7.0.3", + "resolved": "https://registry.npmjs.org/ts-essentials/-/ts-essentials-7.0.3.tgz", + "integrity": "sha512-8+gr5+lqO3G84KdiTSMRLtuyJ+nTBVRKuCrK4lidMPdVeEp0uqC875uE5NMcaA7YYMN7XsNiFQuMvasF8HT/xQ==", + "peerDependencies": { + "typescript": ">=3.7.0" + } + }, "node_modules/ts-jest": { "version": "29.1.1", "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.1.1.tgz", diff --git a/package.json b/package.json index c4009e2..4cf33a5 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ }, "dependencies": { "@govtechsg/oa-encryption": "^1.3.5", - "@govtechsg/oa-verify": "^7.11.0", + "@govtechsg/oa-verify": "^9.0.0", "@govtechsg/open-attestation": "^6.5.1", "@middy/core": "^2.5.7", "@middy/http-cors": "^2.5.7",