diff --git a/packages/gatsby-transformer-javascript-static-exports/.snyk b/packages/gatsby-transformer-javascript-static-exports/.snyk new file mode 100644 index 0000000000000..2bada65840c54 --- /dev/null +++ b/packages/gatsby-transformer-javascript-static-exports/.snyk @@ -0,0 +1,14 @@ +# 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: + - '@babel/traverse > lodash': + patched: '2020-05-01T05:17:59.059Z' + - '@babel/traverse > @babel/generator > lodash': + patched: '2020-05-01T05:17:59.059Z' + - '@babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash': + patched: '2020-05-01T05:17:59.059Z' + - '@babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash': + patched: '2020-05-01T05:17:59.059Z' diff --git a/packages/gatsby-transformer-javascript-static-exports/package.json b/packages/gatsby-transformer-javascript-static-exports/package.json index 060df3b504e34..cf4e8c2aec946 100644 --- a/packages/gatsby-transformer-javascript-static-exports/package.json +++ b/packages/gatsby-transformer-javascript-static-exports/package.json @@ -10,7 +10,8 @@ "@babel/parser": "^7.0.0", "@babel/runtime": "^7.0.0", "@babel/traverse": "^7.0.0", - "bluebird": "^3.5.0" + "bluebird": "^3.5.0", + "snyk": "^1.316.1" }, "devDependencies": { "@babel/cli": "^7.0.0", @@ -31,7 +32,9 @@ "repository": "https://github.com/gatsbyjs/gatsby/tree/master/packages/gatsby-transformer-javascript-static-exports", "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__" - } + "prepare": "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 }