diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5acf349 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:minimatch:20160620': + - gulp > vinyl-fs > glob-stream > minimatch: + patched: '2018-10-24T09:47:37.551Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2018-10-24T09:47:37.551Z' + - gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2018-10-24T09:47:37.551Z' diff --git a/package.json b/package.json index 9095256..9469407 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "index.js", "homepage": "https://github.com/bcguan2008/gulp-negpack", "scripts": { - "test": "mocha tests" + "test": "mocha tests", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -22,11 +24,13 @@ ], "license": "ISC", "dependencies": { - "gulp": "^3.9.0", + "gulp": "^4.0.0", "gulp-util": "^3.0.6", "object-assign": "^3.0.0", "should": "^7.1.0", "stream": "0.0.2", - "through2": "^2.0.0" - } + "through2": "^2.0.0", + "snyk": "^1.104.2" + }, + "snyk": true }