diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..974b966 --- /dev/null +++ b/.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: + SNYK-JS-LODASH-567746: + - winston > async > lodash: + patched: '2020-05-01T07:28:28.334Z' diff --git a/package.json b/package.json index 7917d14..36c336d 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.316.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 }