From 32ded0d19b54175e89cd1e78d54b095ef3ca96f0 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 02:04:31 +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 000000000..7d862a15a --- /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: + - hugo-algolia > lodash: + patched: '2019-07-04T02:04:29.996Z' diff --git a/package.json b/package.json index 550ef7294..cd4e6a66d 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "gulp": "gulp", "index-site": "hugo-algolia -m --all", "index-and-send": "hugo-algolia -s -m --all -c 19kb", - "index-and-send-staging": "hugo-algolia -s -m --all -c 19kb --config ./config.staging.yaml" + "index-and-send-staging": "hugo-algolia -s -m --all -c 19kb --config ./config.staging.yaml", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "algoliasearch": "^3.24.1", @@ -23,6 +25,8 @@ "gulp-rev-replace": "^0.4.3", "gulp-useref": "^3.1.2", "hugo-algolia": "^1.2.14", - "support-bundle-upload": "^1.0.7" - } + "support-bundle-upload": "^1.0.7", + "snyk": "^1.189.0" + }, + "snyk": true }