diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..88d8137 --- /dev/null +++ b/.snyk @@ -0,0 +1,27 @@ +# 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-sass-glob-import > glob > minimatch: + patched: '2018-10-24T07:46:29.113Z' + - gulp-add-src > vinyl-fs > glob-stream > minimatch: + patched: '2018-10-24T07:46:29.113Z' + - gulp-add-src > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2018-10-24T07:46:29.113Z' + - gulp-add-src > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2018-10-24T07:46:29.113Z' + 'npm:tunnel-agent:20170305': + - gulp-imagemin > imagemin-gifsicle > gifsicle > bin-build > download > caw > tunnel-agent: + patched: '2018-10-24T07:46:29.113Z' + - gulp-imagemin > imagemin-jpegtran > jpegtran-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-10-24T07:46:29.113Z' + - gulp-imagemin > imagemin-optipng > optipng-bin > bin-build > download > caw > tunnel-agent: + patched: '2018-10-24T07:46:29.113Z' + - gulp-imagemin > imagemin-gifsicle > gifsicle > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-10-24T07:46:29.113Z' + - gulp-imagemin > imagemin-jpegtran > jpegtran-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-10-24T07:46:29.113Z' + - gulp-imagemin > imagemin-optipng > optipng-bin > bin-wrapper > download > caw > tunnel-agent: + patched: '2018-10-24T07:46:29.113Z' diff --git a/package.json b/package.json index 75a229a..58285c6 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "start": "./node_modules/.bin/gulp", "build": "./node_modules/.bin/gulp build", - "rebuild": "npm run build && npm start" + "rebuild": "npm run build && npm start", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -37,7 +39,7 @@ "eslint-plugin-jsx-a11y": "^6.0.3", "eslint-plugin-react": "^7.5.1", "gulp": "github:gulpjs/gulp#4.0", - "gulp-add-src": "^0.2.0", + "gulp-add-src": "^1.0.0", "gulp-babel": "^7.0.0", "gulp-concat": "^2.6.1", "gulp-debug": "^3.1.0", @@ -62,6 +64,8 @@ "postcss-discard-comments": "^2.0.4", "posthtml-bem": "^0.2.2", "require-dir": "^0.3.1", - "sass": "^0.5.0" - } + "sass": "^0.5.0", + "snyk": "^1.104.2" + }, + "snyk": true }