From a5d56289c767b5fda6d5d836fcac78c90d353a99 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 30 May 2020 05:02:47 +0000 Subject: [PATCH] fix: examples/using-emotion-prismjs/package.json & examples/using-emotion-prismjs/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- examples/using-emotion-prismjs/.snyk | 8 ++++++++ examples/using-emotion-prismjs/package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 examples/using-emotion-prismjs/.snyk diff --git a/examples/using-emotion-prismjs/.snyk b/examples/using-emotion-prismjs/.snyk new file mode 100644 index 0000000000000..3f44be6dd4aa3 --- /dev/null +++ b/examples/using-emotion-prismjs/.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: + - gatsby-transformer-remark > sanitize-html > lodash: + patched: '2020-05-30T05:02:45.429Z' diff --git a/examples/using-emotion-prismjs/package.json b/examples/using-emotion-prismjs/package.json index 178032a2cb631..42e719c2bb08d 100644 --- a/examples/using-emotion-prismjs/package.json +++ b/examples/using-emotion-prismjs/package.json @@ -4,7 +4,9 @@ "main": "n/a", "scripts": { "develop": "gatsby develop", - "build": "gatsby build" + "build": "gatsby build", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "emotion": "^8.0.2-8", @@ -22,8 +24,10 @@ "prop-types": "^15.6.0", "react-emotion": "^8.0.2-8", "typography": "^0.16.6", - "typography-theme-bootstrap": "^0.16.7" + "typography-theme-bootstrap": "^0.16.7", + "snyk": "^1.332.1" }, "author": "Andrew Wyatt ", - "license": "MIT" + "license": "MIT", + "snyk": true }