From 6bb4c7a8043f5e983ff89bbe238446af35479616 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 21:59:34 +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..9becde2 --- /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/framework > lodash': + patched: '2019-07-03T21:59:32.899Z' + - '@adonisjs/lucid > knex > lodash': + patched: '2019-07-03T21:59:32.899Z' + - '@adonisjs/framework > @adonisjs/middleware-base > lodash': + patched: '2019-07-03T21:59:32.899Z' + - '@adonisjs/framework > edge.js > lodash': + patched: '2019-07-03T21:59:32.899Z' + - '@adonisjs/framework > winston > async > lodash': + patched: '2019-07-03T21:59:32.899Z' diff --git a/package.json b/package.json index 00f6deb..d847929 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", @@ -25,10 +27,12 @@ "@adonisjs/ignitor": "^2.0.8", "@adonisjs/lucid": "^6.1.3", "@adonisjs/session": "^1.0.27", - "@adonisjs/shield": "^1.0.8" + "@adonisjs/shield": "^1.0.8", + "snyk": "^1.189.0" }, "devDependencies": {}, "autoload": { "App": "./app" - } + }, + "snyk": true }