From db0356ddbc8bf76688e26ed971bb390f9d15d1ae Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 7 Oct 2022 14:27:44 +0000 Subject: [PATCH] fix: package.json & .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-BL-608877 - https://snyk.io/vuln/SNYK-JS-GOT-2932019 - 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/SNYK-JS-MINIMIST-2429795 - https://snyk.io/vuln/SNYK-JS-MINIMIST-559764 - https://snyk.io/vuln/SNYK-JS-SHELLJS-2332187 - https://snyk.io/vuln/SNYK-JS-TRIMNEWLINES-1298042 - https://snyk.io/vuln/npm:deep-extend:20180409 - 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:minimatch:20160620 --- .snyk | 12 ++++++++++++ package.json | 10 ++++++++-- 2 files changed, 20 insertions(+), 2 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7114942 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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:minimatch:20160620': + - yeoman-generator > file-utils > minimatch: + patched: '2022-10-07T14:27:41.377Z' + - yeoman-generator > file-utils > glob > minimatch: + patched: '2022-10-07T14:27:41.377Z' + - yeoman-generator > file-utils > findup-sync > glob > minimatch: + patched: '2022-10-07T14:27:41.377Z' diff --git a/package.json b/package.json index b980e9e..30e3b8a 100644 --- a/package.json +++ b/package.json @@ -22,10 +22,16 @@ ], "repository": "bhht/generator-html-template", "dependencies": { - "yeoman-generator": "^0.18.0" + "yeoman-generator": "^5.0.0", + "@snyk/protect": "latest" }, "engines": { "node": ">=0.10.0" }, - "licenses": "MIT" + "licenses": "MIT", + "scripts": { + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }