diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..36d8f9f --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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': + - html-wiring > cheerio > lodash: + patched: '2022-10-05T22:06:01.493Z' + - yeoman-generator > html-wiring > cheerio > lodash: + patched: '2022-10-05T22:06:01.493Z' diff --git a/package.json b/package.json index 2e3fd62..c7c0f17 100644 --- a/package.json +++ b/package.json @@ -21,13 +21,16 @@ "url": "https://github.com/nahidf/code-generator.git" }, "scripts": { - "test": "mocha" + "test": "mocha", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "dependencies": { - "yeoman-generator": "^0.19.0", - "chalk": "^1.0.0", + "yeoman-generator": "^5.0.0", + "chalk": "^2.0.0", "html-wiring": "^1.1.0", - "yosay": "^1.0.0" + "yosay": "^2.0.0", + "@snyk/protect": "latest" }, "devDependencies": { "mocha": "~1.14.0" @@ -43,5 +46,6 @@ { "type": "MIT" } - ] + ], + "snyk": true }