diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..69f9341 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# 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: + - pug > pug-code-gen > constantinople > babel-types > lodash: + patched: '2020-04-30T22:58:12.872Z' + - pug > pug-filters > constantinople > babel-types > lodash: + patched: '2020-04-30T22:58:12.872Z' + - pug > pug-code-gen > pug-attrs > constantinople > babel-types > lodash: + patched: '2020-04-30T22:58:12.872Z' diff --git a/package.json b/package.json index 41ca13f..059a8c1 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" @@ -97,6 +99,8 @@ "pug": "^2.0.4", "snapsvg": "^0.5.1", "socket.io": "^2.3.0", - "socket.io-client": "^2.3.0" - } + "socket.io-client": "^2.3.0", + "snyk": "^1.316.1" + }, + "snyk": true }