From b0a6a6b904586eedb21b12686b650d70856560fb Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 5 Sep 2021 00:40:43 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:minimatch:20160620 --- .snyk | 10 ++++++++++ package.json | 10 +++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 00000000..b0c43816 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:minimatch:20160620': + - gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2021-09-05T00:40:41.971Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2021-09-05T00:40:41.971Z' diff --git a/package.json b/package.json index 71cdb935..4997de1f 100644 --- a/package.json +++ b/package.json @@ -39,11 +39,14 @@ "readable-stream": "^2.0.2", "request": "^2.60.0", "underscore.string": "^3.2.2", - "vows": "^0.8.0" + "vows": "^0.8.0", + "@snyk/protect": "latest" }, "engine": "node >= 0.4.1", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" }, "repository": { "type": "git", @@ -53,5 +56,6 @@ "bugs": { "url": "https://github.com/marklogic/slush-marklogic-node/issues" }, - "homepage": "https://github.com/marklogic/slush-marklogic-node" + "homepage": "https://github.com/marklogic/slush-marklogic-node", + "snyk": true }