From bee17f5948d5d7560db696cab873c08205f5a0ae Mon Sep 17 00:00:00 2001 From: snyk-test Date: Sun, 7 Jul 2019 03:54:15 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..64c6b76 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - lodash: + patched: '2019-07-07T03:54:13.907Z' diff --git a/package.json b/package.json index 6643288..b62d607 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,9 @@ "test": "mocha", "test-watch": "mocha --watch", "update-D": "npm install --save-dev babel-cli@latest babel-preset-es2015@latest babel-preset-stage-0@latest babel-register@latest chai@latest chai-as-promised@latest coveralls@latest graphql@latest mocha@latest nyc@latest", - "watch": "npm run build-watch & npm run test-watch" + "watch": "npm run build-watch & npm run test-watch", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -36,7 +38,8 @@ "moment": "^2.22.2", "numeral": "^2.0.6", "lodash": "^4.17.5", - "libphonenumber-js": "^1.6.4" + "libphonenumber-js": "^1.6.4", + "snyk": "^1.192.3" }, "peerDependencies": { "graphql": "*" @@ -55,5 +58,6 @@ "mocha": "^3.1.2", "nyc": "^8.3.1", "prettier": "^1.13.5" - } + }, + "snyk": true }