diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..486c6bb --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-TREEKILL-536781: + - stryker > tree-kill: + patched: '2019-12-12T00:28:09.486Z' diff --git a/package.json b/package.json index 3a51afd..5e9aac0 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "test": "npm run lint && nyc mocha", "lint": "eslint *.js test/**/*.js src/**/*.js", "coverage": "nyc report --reporter=text-lcov | coveralls", - "stryker": "stryker run" + "stryker": "stryker run", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "dependencies": { "chai": "4.2.0", @@ -21,7 +23,8 @@ "stryker-html-reporter": "0.18.1", "stryker-javascript-mutator": "0.14.1", "stryker-mocha-framework": "0.15.1", - "stryker-mocha-runner": "0.17.1" + "stryker-mocha-runner": "0.17.1", + "snyk": "^1.258.2" }, "repository": { "type": "git", @@ -44,5 +47,6 @@ "homepage": "https://github.com/APCOvernight/apc-test#readme", "devDependencies": { "apc-style": "1.4.0" - } + }, + "snyk": true }