From 6ac0bdea293629d76827fdd41b869785d678f4d0 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 2 Jul 2018 22:09:41 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..861dbf7 --- /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': + - strong-mesh-models > lodash: + patched: '2018-07-02T22:09:40.287Z' diff --git a/package.json b/package.json index a7efdc6..18e9509 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ "main": "index.js", "scripts": { "pretest": "eslint --ignore-path .gitignore .", - "test": "tap --timeout=300 ./test/test-*.js" + "test": "tap --timeout=300 ./test/test-*.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "bin": { "sl-deploy": "./bin/sl-deploy.js" @@ -38,7 +40,8 @@ "shelljs": "^0.3.0", "strong-mesh-models": "^7.0.0", "strong-tunnel": "^1.1.1", - "strong-url-defaults": "^1.0.0" + "strong-url-defaults": "^1.0.0", + "snyk": "^1.88.0" }, "devDependencies": { "eslint": "^2.7.0", @@ -46,5 +49,6 @@ "http-auth": "^2.2.5", "strong-fork-cicada": "^1.1.2", "tap": "^0.7.1" - } + }, + "snyk": true }