diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a8ac9ab --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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': + - universal-jst > glob > minimatch: + patched: '2018-09-19T23:12:58.122Z' diff --git a/package.json b/package.json index cb8f7fc..0c1bc91 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "test": "echo \"Error: no test specified\" && exit 1", "start": "webpack --progress --watch --devtool source-map", "build": "webpack -p --colors --progress --config 'webpack.production.config.js'", - "preinstall": "npm install -g concurrently" + "preinstall": "npm install -g concurrently", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "dependencies": { "clipboard": "^1.5.15", @@ -19,7 +21,8 @@ "universal-jst": "^1.0.5", "url-parse": "^1.1.3", "vdom-virtualize": "^2.0.0", - "virtual-dom": "^2.1.1" + "virtual-dom": "^2.1.1", + "snyk": "^1.96.0" }, "devDependencies": { "babel-core": "^6.14.0", @@ -28,5 +31,6 @@ "json-loader": "^0.5.4", "less": "^3.7.1", "webpack": "^1.13.2" - } + }, + "snyk": true }