From 4f8093f913bc3647945a3304c8deb4ca16e83596 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 22:18:11 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .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 0000000..3abd7e5 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - portscanner > async > lodash: + patched: '2019-07-03T22:17:59.009Z' diff --git a/package.json b/package.json index 73bf47c..915f81b 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "start": "electron .", - "build": "electron-packager . clusterioClient --all && echo Done packaging!" + "build": "electron-packager . clusterioClient --all && echo Done packaging!", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -37,6 +39,8 @@ "needle": "^1.4.3", "os": "^0.1.1", "portscanner": "^2.1.1", - "simple-rcon": "^0.3.1" - } + "simple-rcon": "^0.3.1", + "snyk": "^1.189.0" + }, + "snyk": true }