From ea5887d5b4de9b8cabb430f90cab3767494152c9 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 21 Jun 2018 22:00:30 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:hoek:20180212 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 Latest report for 720kb/ndm: https://snyk.io/test/github/720kb/ndm --- .snyk | 14 ++++++++++++++ package.json | 12 ++++++++---- 2 files changed, 22 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..abca29ba --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - npm > node-gyp > request > hawk > hoek: + patched: '2018-06-21T22:00:30.406Z' + - npm > node-gyp > request > hawk > boom > hoek: + patched: '2018-06-21T22:00:30.406Z' + - npm > node-gyp > request > hawk > sntp > hoek: + patched: '2018-06-21T22:00:30.406Z' + - npm > node-gyp > request > hawk > cryptiles > boom > hoek: + patched: '2018-06-21T22:00:30.406Z' diff --git a/package.json b/package.json index 4ae0eca6..21c6ae43 100644 --- a/package.json +++ b/package.json @@ -112,7 +112,9 @@ "build-win": "gulp distify --platform=win && build --win --publish=never && echo 'IMPORTANT! if build fails see https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build , you probably miss some library on your OS, just install them and retry :).'", "build-linux": "gulp distify --platform=linux && build --linux --publish=never && echo 'IMPORTANT! if build fails see https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build , you probably miss some library on your OS, just install them and retry :).'", "build-linux-deb": "gulp distify --platform=linux && build --linux deb --publish=never && echo 'IMPORTANT! if build fails see https://github.com/electron-userland/electron-builder/wiki/Multi-Platform-Build , you probably miss some library on your OS, just install them and retry :).'", - "postversion": "git push && git push --tags" + "postversion": "git push && git push --tags", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "ace-builds": "^1.2.5", @@ -122,12 +124,13 @@ "electron-storage": "^1.0.6", "fs-extra": "^2.0.0", "node-fetch": "^1.6.3", - "npm": "^4.4.0", + "npm": "^5.5.0", "rimraf": "^2.6.1", "selection-model": "^0.11.0", "shell-path": "^2.0.0", "universal-analytics": "^0.4.8", - "uuid": "^3.0.1" + "uuid": "^3.0.1", + "snyk": "^1.83.0" }, "devDependencies": { "babel-preset-es2015-rollup": "^3.0.0", @@ -152,5 +155,6 @@ "rollup-plugin-json": "^2.0.0", "run-sequence": "^1.1.5", "yargs": "^6.5.0" - } + }, + "snyk": true }