From 941e2be85cd6f0872e7da796efb336c5d7c003ba Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 22:58:59 +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 | 14 ++++++++++++++ package.json | 10 +++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a2c8373 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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: + - async > lodash: + patched: '2019-07-03T22:58:52.733Z' + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2019-07-03T22:58:52.733Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2019-07-03T22:58:52.733Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2019-07-03T22:58:52.733Z' diff --git a/package.json b/package.json index db5b9a8..ab96e81 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "unix": "", "mac": "electron-builder", "pre": "electron-builder install-app-deps", - "release": "electron-builder --win && electron-builder --mac && electron-builder --linux" + "release": "electron-builder --win && electron-builder --mac && electron-builder --linux", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "engines": { "node": ">=50.9" @@ -73,6 +75,8 @@ "raw-socket": "1.6.4", "socket.io": "^2.2.0", "socket.io-client": "^2.2.0", - "twitter-text": "3.0.0" - } + "twitter-text": "3.0.0", + "snyk": "^1.189.0" + }, + "snyk": true }