From e32f4b3dc2e0f09d2438da52fdda5e0a3d8be300 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Sun, 7 Jul 2019 04:18:24 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-MARKED-451540 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 10 ++++++++++ package.json | 12 ++++++++---- 2 files changed, 18 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d077b14 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - markdown-contents > lodash: + patched: '2019-07-07T04:18:22.469Z' + - markdown-contents > contents > lodash: + patched: '2019-07-07T04:18:22.469Z' diff --git a/package.json b/package.json index 8e6e528..85aa3a8 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,9 @@ }, "license": "BSD-3-Clause", "scripts": { - "test": "gulp test" + "test": "gulp test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "devDependencies": { "chai": "^3.3.0", @@ -48,13 +50,15 @@ "jsonfile": "^2.2.2", "lodash": "^3.10.1", "markdown-contents": "^1.0.8", - "marked": "^0.3.5", + "marked": "^0.4.0", "moment": "^2.10.6", "stack-trace": "^0.0.9", "url-extractor": "^1.0.1", - "yargs": "^3.26.0" + "yargs": "^3.26.0", + "snyk": "^1.192.3" }, "engines": { "node": ">=4" - } + }, + "snyk": true }