diff --git a/examples/with-google-analytics/.snyk b/examples/with-google-analytics/.snyk new file mode 100644 index 0000000000000..a9fd7d900d24b --- /dev/null +++ b/examples/with-google-analytics/.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-05T00:02:08.854Z' + - next > autodll-webpack-plugin > lodash: + patched: '2019-07-05T00:02:08.854Z' + - next > @babel/plugin-transform-modules-commonjs > @babel/helper-module-transforms > lodash: + patched: '2019-07-05T00:02:08.854Z' + - next > styled-jsx > babel-types > lodash: + patched: '2019-07-05T00:02:08.854Z' + - next > autodll-webpack-plugin > webpack-merge > lodash: + patched: '2019-07-05T00:02:08.854Z' + - next > @babel/core > lodash: + patched: '2019-07-05T00:02:08.854Z' + - next > @babel/preset-react > @babel/plugin-transform-react-jsx > @babel/helper-builder-react-jsx > @babel/types > lodash: + patched: '2019-07-05T00:02:08.854Z' + - next > @babel/preset-env > @babel/plugin-transform-object-super > @babel/helper-replace-supers > @babel/traverse > @babel/generator > lodash: + patched: '2019-07-05T00:02:08.854Z' + - 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-05T00:02:08.854Z' + - 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-05T00:02:08.854Z' + - 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-05T00:02:08.854Z' diff --git a/examples/with-google-analytics/package.json b/examples/with-google-analytics/package.json index ba89a7174a6ff..1505026fef722 100644 --- a/examples/with-google-analytics/package.json +++ b/examples/with-google-analytics/package.json @@ -3,11 +3,15 @@ "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.2.0", - "react-dom": "^16.2.0" - } + "react-dom": "^16.2.0", + "snyk": "^1.192.0" + }, + "snyk": true }