diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e9bfac2 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:marked:20170112': + - marked: + patched: '2017-02-10T15:00:50.245Z' + - jstransformer-marked > marked: + patched: '2017-02-10T15:00:50.245Z' diff --git a/package.json b/package.json index bcea686..5dd5933 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "lodash": "^3.10.1", "marked": "^0.3.5", "minim": "^0.11.0", - "npm": "^3.3.5" + "npm": "^3.3.5", + "snyk": "^1.25.0" }, "devDependencies": { "chai": "^3.2.0", @@ -30,7 +31,9 @@ "lint": "peasant lint", "peasant": "peasant", "ci": "peasant -s lint test build", - "prepublish": "npm run ci", - "test": "peasant test" - } + "prepublish": "npm run snyk-protect && npm run ci", + "test": "peasant test", + "snyk-protect": "snyk protect" + }, + "snyk": true }