From f8bf979327ecb349efb37b62fad4d96eed4e4313 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 3 Jul 2018 06:07:59 +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 | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..fcb500f1 --- /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:lodash:20180130': + - html5-validator > caporal > cli-table2 > lodash: + patched: '2018-07-03T06:07:55.532Z' diff --git a/package.json b/package.json index a43060c1..a0691bad 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,9 @@ "cover": "./node_modules/.bin/istanbul cover ./node_modules/mocha/bin/_mocha -- \"./{{,node_modules/_app/**/},!(node_modules)/**/}*.spec.js\" -R spec || echo . && codecov -t f7b38085-36eb-4d72-84e6-64721910171e", "docs": "documentation build index.js --config documentation.yml -f html -o docs", "livedocs": "documentation serve --watch *.js lib/** --config documentation.yml", - "install": "node lib/npmPostinstall.js" + "install": "node lib/npmPostinstall.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "keywords": [ "factorio" @@ -63,7 +65,8 @@ "socket.io": "^2.0.4", "socket.io-client": "^2.0.4", "sync-request": "^4.0.1", - "underscore": "^1.8.3" + "underscore": "^1.8.3", + "snyk": "^1.88.0" }, "devDependencies": { "documentation": "^5.4.0", @@ -74,5 +77,6 @@ "nock": "^9.1.6", "sinon": "^2.4.1", "supertest": "^3.0.0" - } + }, + "snyk": true }