diff --git a/packages/gatsby-source-hacker-news/.snyk b/packages/gatsby-source-hacker-news/.snyk new file mode 100644 index 0000000000000..a6adaa38d0697 --- /dev/null +++ b/packages/gatsby-source-hacker-news/.snyk @@ -0,0 +1,8 @@ +# 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: + - lodash: + patched: '2019-07-04T07:45:25.319Z' diff --git a/packages/gatsby-source-hacker-news/package.json b/packages/gatsby-source-hacker-news/package.json index 7d08c4c9db811..fa524ae4f2eab 100644 --- a/packages/gatsby-source-hacker-news/package.json +++ b/packages/gatsby-source-hacker-news/package.json @@ -9,7 +9,8 @@ "dependencies": { "axios": "^0.16.1", "babel-runtime": "^6.26.0", - "lodash": "^4.17.4" + "lodash": "^4.17.4", + "snyk": "^1.189.0" }, "devDependencies": { "cross-env": "^5.0.5" @@ -24,7 +25,9 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-source-hacker-news", "scripts": { "build": "babel src --out-dir . --ignore __tests__", - "prepublish": "cross-env NODE_ENV=production npm run build", - "watch": "babel -w src --out-dir . --ignore __tests__" - } + "prepublish": "npm run snyk-protect; cross-env NODE_ENV=production npm run build", + "watch": "babel -w src --out-dir . --ignore __tests__", + "snyk-protect": "snyk protect" + }, + "snyk": true }