diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..46a99ce --- /dev/null +++ b/.snyk @@ -0,0 +1,18 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - '@babel/core > lodash': + patched: '2019-07-03T23:20:26.778Z' + - '@babel/core > @babel/types > lodash': + patched: '2019-07-03T23:20:26.778Z' + - '@babel/core > @babel/helpers > @babel/traverse > lodash': + patched: '2019-07-03T23:20:26.778Z' + - '@babel/core > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash': + patched: '2019-07-03T23:20:26.778Z' + - '@babel/core > @babel/helpers > @babel/traverse > @babel/helper-split-export-declaration > @babel/types > lodash': + patched: '2019-07-03T23:20:26.778Z' + - '@babel/core > @babel/helpers > @babel/traverse > @babel/helper-function-name > @babel/template > @babel/types > lodash': + patched: '2019-07-03T23:20:26.778Z' diff --git a/package.json b/package.json index 2cd56f1..f4b4ffe 100644 --- a/package.json +++ b/package.json @@ -8,13 +8,16 @@ }, "dependencies": { "esoo-babel-plugin": "^1.0.0", - "@babel/core": "^7.4.5" + "@babel/core": "^7.4.5", + "snyk": "^1.189.0" }, "devDependencies": { "mathjs": "^6.0.2" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -26,5 +29,6 @@ "bugs": { "url": "https://github.com/Seasonley/esoo-loader/issues" }, - "homepage": "https://github.com/Seasonley/esoo-loader#readme" + "homepage": "https://github.com/Seasonley/esoo-loader#readme", + "snyk": true }