diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..89fb9ca --- /dev/null +++ b/.snyk @@ -0,0 +1,34 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - gridsome > @vue/babel-preset-app > @babel/helper-module-imports > @babel/types > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > webpack-merge > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > html-webpack-plugin > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @babel/core > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @babel/core > @babel/generator > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > optimize-css-assets-webpack-plugin > last-call-webpack-plugin > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gh-pages > async > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @babel/core > @babel/traverse > @babel/helper-function-name > @babel/types > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-modules-commonjs > @babel/helper-module-transforms > @babel/types > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @vue/babel-preset-app > @babel/plugin-proposal-decorators > @babel/helper-create-class-features-plugin > @babel/helper-replace-supers > @babel/helper-optimise-call-expression > @babel/types > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-proposal-async-generator-functions > @babel/helper-remap-async-to-generator > @babel/helper-wrap-function > @babel/traverse > @babel/generator > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/generator > @babel/types > lodash: + patched: '2019-07-03T22:35:23.446Z' + - gridsome > @vue/babel-preset-app > @babel/preset-env > @babel/plugin-proposal-async-generator-functions > @babel/helper-remap-async-to-generator > @babel/helper-wrap-function > @babel/traverse > @babel/helper-function-name > @babel/helper-get-function-arity > @babel/types > lodash: + patched: '2019-07-03T22:35:23.446Z' diff --git a/package.json b/package.json index d71e23f..2f28d28 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "scripts": { "build": "gridsome build", "develop": "gridsome develop", - "explore": "gridsome explore" + "explore": "gridsome explore", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "@gridsome/source-filesystem": "^0.5.0", @@ -12,6 +14,8 @@ "@gridsome/transformer-yaml": "^0.2.1", "gh-pages": "^2.0.1", "gridsome": "^0.6.0", - "lunr": "^2.3.6" - } + "lunr": "^2.3.6", + "snyk": "^1.189.0" + }, + "snyk": true }