From 27daf23236300fe04647b96c02ecc4e7019b8b08 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 30 May 2020 08:44:48 +0000 Subject: [PATCH] fix: packages/gatsby-transformer-remark/package.json & packages/gatsby-transformer-remark/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- packages/gatsby-transformer-remark/.snyk | 8 ++++++++ packages/gatsby-transformer-remark/package.json | 11 +++++++---- 2 files changed, 15 insertions(+), 4 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..988d5ff001870 --- /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.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - sanitize-html > lodash: + patched: '2020-05-30T08:44:46.388Z' diff --git a/packages/gatsby-transformer-remark/package.json b/packages/gatsby-transformer-remark/package.json index eea77fb11392d..334f775757041 100644 --- a/packages/gatsby-transformer-remark/package.json +++ b/packages/gatsby-transformer-remark/package.json @@ -26,7 +26,8 @@ "unified": "^6.1.5", "unist-util-remove-position": "^1.1.1", "unist-util-select": "^1.5.0", - "unist-util-visit": "^1.1.1" + "unist-util-visit": "^1.1.1", + "snyk": "^1.332.1" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -44,7 +45,9 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-remark", "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 }