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 }