From 6eebeb2438262bf13c6b48266bee7ef6fae914a2 Mon Sep 17 00:00:00 2001 From: Snyk bot Date: Sun, 14 Feb 2021 23:42:51 +0200 Subject: [PATCH] [Snyk] Fix for 1 vulnerabilities (#7) * fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 * fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .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..3045591 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - async > lodash: + patched: '2020-05-01T07:14:51.338Z' diff --git a/package.json b/package.json index e914c3f..15a311b 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "A systemic express component", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "GuideSmiths", "license": "ISC", @@ -19,7 +21,8 @@ "lodash.merge": "^4.6.0", "lodash.once": "^4.1.1", "parse-duration": "^0.1.1", - "server-destroy": "^1.0.1" + "server-destroy": "^1.0.1", + "snyk": "^1.316.1" }, "devDependencies": {}, "keywords": [ @@ -33,5 +36,6 @@ "bugs": { "url": "https://github.com/guidesmiths/systemic-express/issues" }, - "homepage": "https://github.com/guidesmiths/systemic-express#readme" + "homepage": "https://github.com/guidesmiths/systemic-express#readme", + "snyk": true }