From 7329df8ded780f2fbb9114e052a40906200d55f5 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 7 Apr 2021 03:10:47 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 12 ++++++++++++ package.json | 10 +++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7a773fe --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.19.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - waterline-adapter-tests > sails-memory > lodash: + patched: '2021-04-07T03:10:45.699Z' + - waterline-adapter-tests > sails-memory > waterline-criteria > lodash: + patched: '2021-04-07T03:10:45.699Z' + - waterline-adapter-tests > sails-memory > waterline-cursor > lodash: + patched: '2021-04-07T03:10:45.699Z' diff --git a/package.json b/package.json index 729cfa3..d5e3e48 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "mysql": "~2.6.1", "waterline-cursor": "~0.0.5", "waterline-errors": "~0.10.0", - "waterline-sequel": "git+https://github.com/postmanlabs/waterline-sequel.git#v0.5.1-postman.3" + "waterline-sequel": "git+https://github.com/postmanlabs/waterline-sequel.git#v0.5.1-postman.3", + "snyk": "^1.526.0" }, "devDependencies": { "expect.js": "^0.3.1", @@ -40,6 +41,9 @@ }, "scripts": { "postinstall": "scripts/postinstall.sh", - "test": "scripts/test.sh" - } + "test": "scripts/test.sh", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }