From efdcce911cdfbb236169a45936ffcf3e21eb9fca Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sat, 22 Feb 2020 04:07:16 +0000 Subject: [PATCH] fix: examples/using-remark/package.json & examples/using-remark/.snyk to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-JSYAML-173999 - https://snyk.io/vuln/SNYK-JS-JSYAML-174129 - https://snyk.io/vuln/SNYK-JS-LODASH-450202 - https://snyk.io/vuln/SNYK-JS-LODASH-73638 - https://snyk.io/vuln/SNYK-JS-LODASH-73639 - https://snyk.io/vuln/SNYK-JS-SERVE-174738 - https://snyk.io/vuln/SNYK-JS-SERVEHANDLER-450208 - https://snyk.io/vuln/SNYK-JS-SERVEHANDLER-72615 - https://snyk.io/vuln/SNYK-JS-WEBPACKDEVSERVER-72405 - https://snyk.io/vuln/npm:braces:20180219 - https://snyk.io/vuln/npm:lodash:20180130 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- examples/using-remark/.snyk | 8 ++++++++ examples/using-remark/package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 examples/using-remark/.snyk diff --git a/examples/using-remark/.snyk b/examples/using-remark/.snyk new file mode 100644 index 0000000000000..b4cab2f3ab3be --- /dev/null +++ b/examples/using-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: + 'npm:lodash:20180130': + - gatsby > webpack-configurator > lodash: + patched: '2020-02-22T04:07:14.169Z' diff --git a/examples/using-remark/package.json b/examples/using-remark/package.json index e5192e900c942..8b581002312cf 100644 --- a/examples/using-remark/package.json +++ b/examples/using-remark/package.json @@ -8,7 +8,7 @@ "babel-plugin-lodash": "^3.2.11", "bluebird": "^3.4.7", "es6-object-assign": "^1.1.0", - "gatsby": "^1.9.75", + "gatsby": "^2.0.0", "gatsby-image": "^1.0.5", "gatsby-link": "latest", "gatsby-plugin-catch-links": "latest", @@ -33,13 +33,17 @@ "slash": "^1.0.0", "typeface-space-mono": "^0.0.22", "typeface-spectral": "^0.0.29", - "typography": "^0.15.10" + "typography": "^0.15.10", + "snyk": "^1.295.0" }, "license": "MIT", "main": "index.js", "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "serve": "gatsby serve" - } + "serve": "gatsby serve", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }