From 31dacc75b16e6ece761bccb0e105683e8af8264d Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 5 Oct 2022 19:51:42 +0000 Subject: [PATCH] fix: npm-react-codemod/package.json & npm-react-codemod/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-ANSIREGEX-1583908 - https://snyk.io/vuln/SNYK-JS-LODASH-1018905 - https://snyk.io/vuln/SNYK-JS-LODASH-1040724 - https://snyk.io/vuln/SNYK-JS-LODASH-450202 - https://snyk.io/vuln/SNYK-JS-LODASH-567746 - https://snyk.io/vuln/SNYK-JS-LODASH-608086 - https://snyk.io/vuln/SNYK-JS-LODASH-73638 - https://snyk.io/vuln/SNYK-JS-LODASH-73639 - https://snyk.io/vuln/SNYK-JS-MINIMATCH-1019388 - https://snyk.io/vuln/npm:braces:20180219 - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:minimatch:20160620 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- npm-react-codemod/.snyk | 8 ++++++++ npm-react-codemod/package.json | 9 ++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 npm-react-codemod/.snyk diff --git a/npm-react-codemod/.snyk b/npm-react-codemod/.snyk new file mode 100644 index 0000000000000..a443cf4be2675 --- /dev/null +++ b/npm-react-codemod/.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:lodash:20180130': + - jscodeshift > babel > babel-core > babel-plugin-proto-to-assign > lodash: + patched: '2022-10-05T19:51:39.485Z' diff --git a/npm-react-codemod/package.json b/npm-react-codemod/package.json index 29505e80a21ee..87e6f1331e9ea 100644 --- a/npm-react-codemod/package.json +++ b/npm-react-codemod/package.json @@ -10,13 +10,15 @@ "scripts": { "build": "rm -rf build; babel transforms/ --out-dir=build/", "test": "jest", - "prepublish": "npm run build" + "prepublish": "npm run snyk-protect && npm run build", + "snyk-protect": "snyk-protect" }, "bin": { "react-codemod": "./react-codemod" }, "dependencies": { - "jscodeshift": "^0.1.0" + "jscodeshift": "^0.3.23", + "@snyk/protect": "latest" }, "devDependencies": { "babel": "^4.7.16", @@ -28,5 +30,6 @@ "testPathDirs": [ "test" ] - } + }, + "snyk": true }