diff --git a/packages/gatsby-remark-images-contentful/.snyk b/packages/gatsby-remark-images-contentful/.snyk new file mode 100644 index 0000000000000..4b16cff16c06f --- /dev/null +++ b/packages/gatsby-remark-images-contentful/.snyk @@ -0,0 +1,10 @@ +# 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: + - lodash: + patched: '2020-05-01T04:57:40.338Z' + - cheerio > lodash: + patched: '2020-05-01T04:57:40.338Z' diff --git a/packages/gatsby-remark-images-contentful/package.json b/packages/gatsby-remark-images-contentful/package.json index f91e41fd31fe9..0d6451206d6b9 100644 --- a/packages/gatsby-remark-images-contentful/package.json +++ b/packages/gatsby-remark-images-contentful/package.json @@ -5,8 +5,9 @@ "main": "index.js", "scripts": { "build": "babel src --out-dir . --ignore **/__tests__", - "prepare": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore **/__tests__" + "prepare": "npm run snyk-protect && cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore **/__tests__", + "snyk-protect": "snyk protect" }, "dependencies": { "@babel/runtime": "^7.0.0", @@ -15,7 +16,8 @@ "is-relative-url": "^2.0.0", "lodash": "^4.17.10", "sharp": "^0.20.2", - "unist-util-select": "^1.5.0" + "unist-util-select": "^1.5.0", + "snyk": "^1.316.1" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -33,5 +35,6 @@ "peerDependencies": { "gatsby": ">2.0.0-alpha" }, - "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465" + "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465", + "snyk": true }