From 73f10f6a04ec5de156c6048da5dd7421dac996bd Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 21:23:18 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 16 ++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 23 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..33c0a77 --- /dev/null +++ b/.snyk @@ -0,0 +1,16 @@ +# 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: + - '@adonisjs/lucid > lodash': + patched: '2019-07-03T21:23:16.408Z' + - '@adonisjs/framework > @adonisjs/middleware-base > lodash': + patched: '2019-07-03T21:23:16.408Z' + - '@adonisjs/framework > edge.js > lodash': + patched: '2019-07-03T21:23:16.408Z' + - '@adonisjs/lucid > knex > lodash': + patched: '2019-07-03T21:23:16.408Z' + - '@adonisjs/framework > winston > async > lodash': + patched: '2019-07-03T21:23:16.408Z' diff --git a/package.json b/package.json index 780700f..88e4db1 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "main": "index.js", "scripts": { "start": "node server.js", - "test": "node ace test" + "test": "node ace test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "adonisjs", @@ -23,10 +25,12 @@ "@adonisjs/fold": "^4.0.9", "@adonisjs/framework": "^5.0.9", "@adonisjs/ignitor": "^2.0.8", - "@adonisjs/lucid": "^6.1.3" + "@adonisjs/lucid": "^6.1.3", + "snyk": "^1.189.0" }, "devDependencies": {}, "autoload": { "App": "./app" - } + }, + "snyk": true }