From ba6d8113723e17369269cf22377bbb322b0847e1 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 03:40:55 +0000 Subject: [PATCH] fix: examples/nextjs/.snyk & examples/nextjs/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- examples/nextjs/.snyk | 28 ++++++++++++++++++++++++++++ examples/nextjs/package.json | 10 +++++++--- 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 examples/nextjs/.snyk diff --git a/examples/nextjs/.snyk b/examples/nextjs/.snyk new file mode 100644 index 00000000000000..11b918509a32c6 --- /dev/null +++ b/examples/nextjs/.snyk @@ -0,0 +1,28 @@ +# 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: + - next > @babel/plugin-proposal-class-properties > @babel/helper-function-name > @babel/types > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > autodll-webpack-plugin > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @babel/plugin-transform-modules-commonjs > @babel/helper-module-transforms > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > styled-jsx > babel-types > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > autodll-webpack-plugin > webpack-merge > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @babel/core > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @babel/preset-react > @babel/plugin-transform-react-jsx > @babel/helper-builder-react-jsx > @babel/types > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @babel/preset-env > @babel/plugin-transform-object-super > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @babel/plugin-proposal-class-properties > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/helper-get-function-arity > @babel/types > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @babel/preset-env > @babel/plugin-transform-object-super > @babel/helper-replace-supers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash: + patched: '2019-07-04T03:40:49.793Z' + - next > @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-04T03:40:49.793Z' diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 35e067794607fb..e193484d1b57d4 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -6,11 +6,15 @@ "material-ui": "next", "next": "latest", "react": "latest", - "react-dom": "latest" + "react-dom": "latest", + "snyk": "^1.189.0" }, "scripts": { "dev": "next", "build": "next build", - "start": "next start" - } + "start": "next start", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }