diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..6993ab6 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - phantomjs-prebuilt > extract-zip > debug > ms: + patched: '2017-08-15T22:58:03.073Z' diff --git a/package.json b/package.json index 2bd4215..ca3a38f 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "async": "^1.5.2", "mocha-phantomjs-core": "^1.3.0", "object-assign": "^4.1.0", - "phantomjs-prebuilt": "^2.1.3" + "phantomjs-prebuilt": "^2.1.3", + "snyk": "^1.38.2" }, "devDependencies": { "chai": "^3.5.0", @@ -27,7 +28,9 @@ "grunt": ">=0.4.0" }, "scripts": { - "test": "grunt" + "test": "grunt", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -44,5 +47,6 @@ "bugs": { "url": "https://github.com/jdcataldo/grunt-mocha-phantomjs/issues" }, - "homepage": "https://github.com/jdcataldo/grunt-mocha-phantomjs" + "homepage": "https://github.com/jdcataldo/grunt-mocha-phantomjs", + "snyk": true }