diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b600fcc --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - portscanner > async > lodash: + patched: '2020-04-30T22:13:49.170Z' diff --git a/package.json b/package.json index 73bf47c..e91ec6e 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.316.1" + }, + "snyk": true }