diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c320a76 --- /dev/null +++ b/.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: + - eslint > lodash: + patched: '2020-05-06T21:11:37.230Z' + - eslint > inquirer > lodash: + patched: '2020-05-06T21:11:37.230Z' + - eslint > table > lodash: + patched: '2020-05-06T21:11:37.230Z' + - winston > async > lodash: + patched: '2020-05-06T21:11:37.230Z' diff --git a/package.json b/package.json index 7917d14..4f7b7df 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "csv": "^5.1.1", "csv-parse": "latest", "tinyqueue": "^2.0.0", - "winston": "^3.2.1" + "winston": "^3.2.1", + "snyk": "^1.319.1" }, "description": "Machine learning library", "devDependencies": { @@ -46,5 +47,10 @@ "type": "git", "url": "https://github.com/nl253/ML" }, - "version": "0.0.1" + "version": "0.0.1", + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }