From a45fd1d18fdae231c8aa1d28305c51c2e3e04039 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 03:30:05 +0100 Subject: [PATCH 1/2] fix: examples/head-elements/package.json & examples/head-elements/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/head-elements/package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/examples/head-elements/package.json b/examples/head-elements/package.json index 756f0679f0e39..58a28a0fd830a 100644 --- a/examples/head-elements/package.json +++ b/examples/head-elements/package.json @@ -4,12 +4,16 @@ "scripts": { "dev": "next", "build": "next build", - "start": "next start" + "start": "next start", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "next": "latest", "react": "^16.0.0", - "react-dom": "^16.0.0" + "react-dom": "^16.0.0", + "snyk": "^1.316.1" }, - "license": "ISC" + "license": "ISC", + "snyk": true } From c2a294fa3a0534775873e613d11705c68912ae3f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 03:30:06 +0100 Subject: [PATCH 2/2] fix: examples/head-elements/package.json & examples/head-elements/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/head-elements/.snyk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/head-elements/.snyk diff --git a/examples/head-elements/.snyk b/examples/head-elements/.snyk new file mode 100644 index 0000000000000..a758221e33f47 --- /dev/null +++ b/examples/head-elements/.snyk @@ -0,0 +1,26 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - next > @babel/core > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > babel-plugin-transform-define > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-block-scoping > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > styled-jsx > @babel/types > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-classes > @babel/helper-define-map > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-unicode-regex > @babel/helper-create-regexp-features-plugin > @babel/helper-regex > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/generator > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash: + patched: '2020-05-01T02:30:02.920Z' + - next > @babel/preset-env > @babel/plugin-transform-exponentiation-operator > @babel/helper-builder-binary-assignment-operator-visitor > @babel/helper-explode-assignable-expression > @babel/traverse > @babel/helper-function-name > @babel/helper-get-function-arity > @babel/types > lodash: + patched: '2020-05-01T02:30:02.920Z'