diff --git a/examples/using-remark-copy-linked-files/.snyk b/examples/using-remark-copy-linked-files/.snyk new file mode 100644 index 0000000000000..cb00647c5b792 --- /dev/null +++ b/examples/using-remark-copy-linked-files/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.21.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - gatsby > webpack-configurator > lodash: + patched: '2021-09-02T19:10:34.367Z' diff --git a/examples/using-remark-copy-linked-files/package.json b/examples/using-remark-copy-linked-files/package.json index ed47d8be24282..4b5dfca2ae2ea 100644 --- a/examples/using-remark-copy-linked-files/package.json +++ b/examples/using-remark-copy-linked-files/package.json @@ -4,7 +4,7 @@ "description": "Gatsby example site on gatsby-remark-copy-linked-files", "author": "Florian Kissling ", "dependencies": { - "gatsby": "^1.9.108", + "gatsby": "^3.13.0", "gatsby-link": "latest", "gatsby-plugin-google-analytics": "^1.0.12", "gatsby-plugin-offline": "^1.0.10", @@ -25,7 +25,8 @@ "react-responsive-grid": "^0.3.3", "typeface-merriweather": "^0.0.35", "typeface-montserrat": "^0.0.37", - "typography-theme-wordpress-2016": "^0.15.1" + "typography-theme-wordpress-2016": "^0.15.1", + "@snyk/protect": "latest" }, "devDependencies": { "eslint": "^4.9.0", @@ -43,6 +44,9 @@ "develop": "gatsby develop", "build": "gatsby build", "deploy": "gatsby build --prefix-paths && gh-pages -d public", - "fix-semi": "eslint --quiet --ignore-pattern node_modules --ignore-pattern public --parser babel-eslint --no-eslintrc --rule '{\"semi\": [2, \"never\"], \"no-extra-semi\": [2]}' --fix gatsby-node.js" - } + "fix-semi": "eslint --quiet --ignore-pattern node_modules --ignore-pattern public --parser babel-eslint --no-eslintrc --rule '{\"semi\": [2, \"never\"], \"no-extra-semi\": [2]}' --fix gatsby-node.js", + "prepublish": "npm run snyk-protect", + "snyk-protect": "snyk-protect" + }, + "snyk": true }