From 8b3cba798c29feccddbe721f75dd18dace079a4a Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 05:09:12 +0000 Subject: [PATCH] fix: packages/gatsby-transformer-remark/.snyk & packages/gatsby-transformer-remark/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- packages/gatsby-transformer-remark/.snyk | 8 ++++++++ packages/gatsby-transformer-remark/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 packages/gatsby-transformer-remark/.snyk diff --git a/packages/gatsby-transformer-remark/.snyk b/packages/gatsby-transformer-remark/.snyk new file mode 100644 index 0000000000000..57cc9234893d1 --- /dev/null +++ b/packages/gatsby-transformer-remark/.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-04T05:09:10.492Z' diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index 4e1c8948e4896..fa3fe66a7e995 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -25,7 +25,8 @@ "unified": "^6.1.5", "unist-util-remove-position": "^1.1.2", "unist-util-select": "^1.5.0", - "unist-util-visit": "^1.3.0" + "unist-util-visit": "^1.3.0", + "snyk": "^1.189.0" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -47,7 +48,10 @@ "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__" + "watch": "babel -w src --out-dir . --ignore **/__tests__", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, - "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465" + "gitHead": "5bd5aebe066b9875354a81a4b9ed98722731c465", + "snyk": true }