From 58cf9e3e15621836aca37b8f6b0d089763ada9e9 Mon Sep 17 00:00:00 2001 From: Benny Chew Date: Wed, 6 Apr 2022 10:54:01 +1000 Subject: [PATCH] chore: override lodash of pegjs-otf grandchild dep to resolve dependabot alerts --- package-lock.json | 34 +++++++++++++++++++--------------- package.json | 11 ++++++++++- 2 files changed, 29 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 379409dfe..078a18757 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9551,6 +9551,15 @@ "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", "dev": true }, + "node_modules/duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "dependencies": { + "readable-stream": "^2.0.2" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -18699,12 +18708,6 @@ "through": "2.3.8" } }, - "node_modules/pegjs-otf/node_modules/lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", - "dev": true - }, "node_modules/pegjs-util": { "version": "1.4.14", "resolved": "https://registry.npmjs.org/pegjs-util/-/pegjs-util-1.4.14.tgz", @@ -31657,6 +31660,15 @@ "integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==", "dev": true }, + "duplexer2": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", + "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", + "dev": true, + "requires": { + "readable-stream": "^2.0.2" + } + }, "eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -38538,18 +38550,10 @@ "integrity": "sha512-GZ5hd1HL6fUuqqRU6tmLAhWFJCnsfbcKfuiVsJEiX9limjsFOx4oxGxri7tKcWgQPIA5e6I+IOlbaDo4er1xNA==", "dev": true, "requires": { - "lodash": "4.17.10", + "lodash": "4.17.21", "pegjs": "0.10.0", "static-module": "3.0.0", "through": "2.3.8" - }, - "dependencies": { - "lodash": { - "version": "4.17.10", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.10.tgz", - "integrity": "sha512-UejweD1pDoXu+AD825lWwp4ZGtSwgnpZxb3JDViD7StjQz+Nb/6l093lx4OQ0foGWNRoc19mWy7BzL+UAK2iVg==", - "dev": true - } } }, "pegjs-util": { diff --git a/package.json b/package.json index b6e020f50..5961492ef 100644 --- a/package.json +++ b/package.json @@ -77,8 +77,8 @@ "@babel/cli": "^7.17.0", "@babel/core": "^7.17.0", "@babel/generator": "^7.16.7", - "@babel/plugin-transform-runtime": "^7.17.0", "@babel/plugin-proposal-class-properties": "^7.16.7", + "@babel/plugin-transform-runtime": "^7.17.0", "@babel/preset-env": "^7.16.11", "@babel/preset-react": "^7.16.7", "@commitlint/cli": "^16.1.0", @@ -175,6 +175,15 @@ "react": "^16.8.6", "react-dom": "^16.8.6" }, + "overrides": { + "react-to-typescript-definitions": { + "astq": { + "pegjs-otf": { + "lodash": "4.17.21" + } + } + } + }, "engines": { "node": "^16" },