diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a6b75aa --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:moment:20170905': + - browsertime > moment: + patched: '2018-05-02T03:23:32.495Z' diff --git a/package.json b/package.json index 44d9a1d..ce262d4 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "args": "^2.2.4", "browsertime": "^2.5.0", "chalk": "^1.1.3", - "cli-table": "^0.3.1" + "cli-table": "^0.3.1", + "snyk": "^1.78.0" }, "devDependencies": { "ava": "^0.18.1", @@ -39,12 +40,15 @@ "sinon": "^1.17.7" }, "scripts": { - "test": "ava" + "test": "ava", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "ava": { "require": [ "babel-register" ], "babel": "inherit" - } + }, + "snyk": true }