diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..23fa890 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-AXIOS-174505: + - '@frctl/fractal > browser-sync > localtunnel > axios': + patched: '2019-05-06T08:00:49.758Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > browser-sync > localtunnel > axios': + patched: '2019-05-06T08:00:49.758Z' diff --git a/package.json b/package.json index 11cb411..5cdd6b1 100644 --- a/package.json +++ b/package.json @@ -22,16 +22,20 @@ "drupal-attribute": "1.0.2", "lodash": "^4.17.4", "query-string": "^5.0.0", - "twig": "1.10.5" + "twig": "1.10.5", + "snyk": "^1.161.1" }, "scripts": { "release:major": "npm version major -m \"Released version %s\" && npm publish && git push --follow-tags", "release:minor": "npm version minor -m \"Released version %s\" && npm publish && git push --follow-tags", - "release:patch": "npm version patch -m \"Released version %s\" && npm publish && git push --follow-tags" + "release:patch": "npm version patch -m \"Released version %s\" && npm publish && git push --follow-tags", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "babel": { "presets": [ "es2015" ] - } + }, + "snyk": true }