From f1016da0025d2b1938123b0f52fa3478118af787 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 13 Oct 2018 03:20:03 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:cryptiles:20180710 - https://snyk.io/vuln/npm:extend:20180424 - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:lodash:20180130 - https://snyk.io/vuln/npm:querystringify:20180419 - https://snyk.io/vuln/npm:sshpk:20180409 - https://snyk.io/vuln/npm:stringstream:20180511 - https://snyk.io/vuln/npm:url-parse:20180731 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..0825977 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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:lodash:20180130': + - replicated-lint > junit-report-builder > xmlbuilder > lodash: + patched: '2018-10-13T03:20:01.403Z' diff --git a/package.json b/package.json index 423cf54..d65a626 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,9 @@ "tslint": "tslint --project ./tsconfig.json", "test": "yarn run prepublish && mocha ./dist/test/*.js", "login-cli": "npm-cli-login", - "publish-if-version-changed": "publish" + "publish-if-version-changed": "publish", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "bin": "bin/replicated-studio", "devDependencies": { @@ -36,10 +38,12 @@ "express": "^4.15.0", "express-http-proxy": "^0.11.0", "js-yaml": "^3.8.2", - "lodash": "^4.17.4", + "lodash": "^4.17.5", "npm-cli-login": "^0.0.10", "replicated-lint": "^0.13.7", "source-map-support": "^0.4.11", - "uuid": "^3.0.1" - } + "uuid": "^3.0.1", + "snyk": "^1.103.4" + }, + "snyk": true }