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 }