From bdc3b735f054859c3a59dc55e5b441cd3a8b577d Mon Sep 17 00:00:00 2001 From: snyk-test Date: Sat, 6 Jul 2019 01:44:19 +0000 Subject: [PATCH] fix: examples/with-asset-imports/.snyk & examples/with-asset-imports/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- examples/with-asset-imports/.snyk | 28 ++++++++++++++++++++++++ examples/with-asset-imports/package.json | 10 ++++++--- 2 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 examples/with-asset-imports/.snyk diff --git a/examples/with-asset-imports/.snyk b/examples/with-asset-imports/.snyk new file mode 100644 index 0000000000000..9bfa32cbda2ed --- /dev/null +++ b/examples/with-asset-imports/.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-06T01:44:17.296Z' + - next > autodll-webpack-plugin > lodash: + patched: '2019-07-06T01:44:17.296Z' + - next > @babel/plugin-transform-modules-commonjs > @babel/helper-module-transforms > lodash: + patched: '2019-07-06T01:44:17.296Z' + - next > styled-jsx > babel-types > lodash: + patched: '2019-07-06T01:44:17.296Z' + - next > autodll-webpack-plugin > webpack-merge > lodash: + patched: '2019-07-06T01:44:17.296Z' + - next > @babel/core > lodash: + patched: '2019-07-06T01:44:17.296Z' + - next > @babel/preset-react > @babel/plugin-transform-react-jsx > @babel/helper-builder-react-jsx > @babel/types > lodash: + patched: '2019-07-06T01:44:17.296Z' + - next > @babel/preset-env > @babel/plugin-transform-object-super > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash: + patched: '2019-07-06T01:44:17.296Z' + - 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-06T01:44:17.296Z' + - 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-06T01:44:17.296Z' + - 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-06T01:44:17.296Z' diff --git a/examples/with-asset-imports/package.json b/examples/with-asset-imports/package.json index 6509f49446cd3..80647f4887014 100644 --- a/examples/with-asset-imports/package.json +++ b/examples/with-asset-imports/package.json @@ -4,13 +4,17 @@ "scripts": { "dev": "next dev", "build": "next build", - "start": "next start" + "start": "next start", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "next": "latest", "next-images": "0.10.5", "react": "^16.0.0", - "react-dom": "^16.0.0" + "react-dom": "^16.0.0", + "snyk": "^1.192.3" }, - "license": "ISC" + "license": "ISC", + "snyk": true }