From dcd2cedac208fb423994b89fb71b242e9dc7cc4a Mon Sep 17 00:00:00 2001 From: snyk-test Date: Fri, 5 Jul 2019 00:31: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 | 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..22c0127 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - request-promise-native > request-promise-core > lodash: + patched: '2019-07-05T00:31:32.113Z' diff --git a/package.json b/package.json index 687c082..017eaac 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "app.js", "scripts": { "lint": "npm run test -- --fix", - "test": "eslint commands functions inhibitors events extendables app.js" + "test": "eslint commands functions inhibitors events extendables app.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -29,7 +31,8 @@ "request": "^2.81.0", "request-promise-native": "^1.0.4", "sqlite": "^2.8.0", - "ytdl-core": "^0.17.0" + "ytdl-core": "^0.17.0", + "snyk": "^1.192.0" }, "devDependencies": { "eslint": "^4.3.0", @@ -38,5 +41,6 @@ }, "engines": { "node": ">=8.1.0" - } + }, + "snyk": true }