From 7ef2bc0fbafba2245afae09328db45128e565392 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 2 Jul 2018 22:30:32 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 24 ++++++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4db5fdc --- /dev/null +++ b/.snyk @@ -0,0 +1,24 @@ +# 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:lodash:20180130': + - '@frctl/fractal > cli-table2 > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > browser-sync > easy-extender > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > cli-table2 > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > browser-sync > easy-extender > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > @frctl/handlebars > @frctl/fractal > cli-table2 > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > @frctl/handlebars > @frctl/fractal > browser-sync > easy-extender > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > @frctl/handlebars > @frctl/fractal > vorpal > inquirer > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > @frctl/mandelbrot > @frctl/fractal > vorpal > inquirer > lodash': + patched: '2018-07-02T22:30:30.848Z' + - '@frctl/fractal > vorpal > inquirer > lodash': + patched: '2018-07-02T22:30:30.848Z' diff --git a/package.json b/package.json index f25e40f..fd3acd1 100644 --- a/package.json +++ b/package.json @@ -21,16 +21,20 @@ "@frctl/fractal": "latest", "lodash": "^4.17.4", "query-string": "^5.0.0", - "twig": "1.10.5" + "twig": "1.10.5", + "snyk": "^1.88.0" }, "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", + "prepare": "npm run snyk-protect" }, "babel": { "presets": [ "es2015" ] - } + }, + "snyk": true }