From d3fd724b4880c95f2d14569bab7767aead11fb81 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Sun, 7 Jul 2019 01:09:26 +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 | 20 ++++++++++++++++++++ package.json | 10 +++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4f0e9ba --- /dev/null +++ b/.snyk @@ -0,0 +1,20 @@ +# 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: + - swagger-tools > lodash: + patched: '2019-07-07T01:09:24.373Z' + - mocha > yargs-unparser > lodash: + patched: '2019-07-07T01:09:24.373Z' + - mosca > amqp > lodash: + patched: '2019-07-07T01:09:24.373Z' + - swagger-tools > async > lodash: + patched: '2019-07-07T01:09:24.373Z' + - swagger-tools > json-refs > lodash: + patched: '2019-07-07T01:09:24.373Z' + - mosca > ascoltatori > amqp > lodash: + patched: '2019-07-07T01:09:24.373Z' + - swagger-tools > json-refs > graphlib > lodash: + patched: '2019-07-07T01:09:24.373Z' diff --git a/package.json b/package.json index a3be224..a8fba94 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "main": "server.js", "scripts": { "test": "node_modules/mocha/bin/mocha ut/mocha.js --timeout 10000", - "jslint": "jslint 'apps/*.js' 'server.js'" + "jslint": "jslint 'apps/*.js' 'server.js'", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -56,7 +58,8 @@ "shelljs": "0.7.1", "tcp-port-used": "*", "tingyun": "*", - "tty.js": "*" + "tty.js": "*", + "snyk": "^1.192.3" }, "author": "Zhizhou Li", "license": "GPL", @@ -68,5 +71,6 @@ "keywords": [ "Restapi", "node" - ] + ], + "snyk": true }