diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..7fabac8f --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.8.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:marked:20170907': + - marked: + patched: '2017-11-02T05:02:04.816Z' diff --git a/package.json b/package.json index f3641bf1..752c2439 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "doc": "docs" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -30,6 +32,8 @@ "handlebars": "~1.3.0", "mkdirp": "~0.3.5", "path": "~0.4.9", - "cpr": "~0.1.1" - } + "cpr": "~0.1.1", + "snyk": "^1.47.0" + }, + "snyk": true } \ No newline at end of file