diff --git a/QA Test 2017/simpleTask/.snyk b/QA Test 2017/simpleTask/.snyk new file mode 100644 index 0000000..c3c8eb9 --- /dev/null +++ b/QA Test 2017/simpleTask/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - selenium-download > lodash: + patched: '2019-07-04T07:53:39.321Z' + - selenium-download > async > lodash: + patched: '2019-07-04T07:53:39.321Z' diff --git a/QA Test 2017/simpleTask/package.json b/QA Test 2017/simpleTask/package.json index 71e45c1..6b872a0 100644 --- a/QA Test 2017/simpleTask/package.json +++ b/QA Test 2017/simpleTask/package.json @@ -17,7 +17,9 @@ }, "scripts": { "postinstall": "node nightwatch.conf.js", - "test": "./node_modules/.bin/nightwatch --env local --t ./test/testDemo.js --retries 2" + "test": "./node_modules/.bin/nightwatch --env local --t ./test/testDemo.js --retries 2", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -25,7 +27,8 @@ }, "dependencies": { "nightwatch": "^0.9.16", - "selenium-download": "^2.0.10" + "selenium-download": "^2.0.10", + "snyk": "^1.189.0" }, "devDependencies": { "mime-types": "^2.1.13" @@ -33,5 +36,6 @@ "keywords": [ "nightwatch", "testing" - ] + ], + "snyk": true }