diff --git a/examples/using-prefetching-preloading-modules/.snyk b/examples/using-prefetching-preloading-modules/.snyk new file mode 100644 index 0000000000000..4f54451a2b533 --- /dev/null +++ b/examples/using-prefetching-preloading-modules/.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:hoek:20180212': + - gatsby > joi2gql > hoek: + patched: '2020-04-15T08:45:20.804Z' diff --git a/examples/using-prefetching-preloading-modules/package.json b/examples/using-prefetching-preloading-modules/package.json index f1fe726b51b73..3021752e44d0d 100644 --- a/examples/using-prefetching-preloading-modules/package.json +++ b/examples/using-prefetching-preloading-modules/package.json @@ -19,7 +19,8 @@ "slash": "^1.0.0", "styled-components": "^3.3.2", "typography": "^0.16.17", - "typography-breakpoint-constants": "^0.15.10" + "typography-breakpoint-constants": "^0.15.10", + "snyk": "^1.305.1" }, "keywords": [ "gatsby" @@ -29,6 +30,9 @@ "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "start": "npm run develop" - } + "start": "npm run develop", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }