From 4c6fb7818d1af11c31ae2aea919afc2d6f3d7d5e Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 17 May 2019 08:22:08 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/npm:chownr:20180731 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:lodash:20180130 --- .snyk | 8 ++++++++ package.json | 12 ++++++++---- 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..63f4a28 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - npm > cli-table2 > lodash: + patched: '2019-05-17T08:22:06.565Z' diff --git a/package.json b/package.json index 863fea6..ccf4d19 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "local:watch": "npm run build && npm run lint && cat ./tslint.err && npm run build && node --inspect ./dist/src/index.js", "start": "npm run build && node ./dist/src/index.js", "test": "set NODE_ENV=TEST && nyc --extension .ts --extension .tsx mocha --timeout 10000 -r ts-node/register ./test/*.ts && nyc report --reporter text-lcov --extension .ts --extension .tsx | coveralls", - "test-watch": "npm run clean && mocha-typescript-watch -p tsconfig.json -o ./mocha.opts" + "test-watch": "npm run clean && mocha-typescript-watch -p tsconfig.json -o ./mocha.opts", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -59,7 +61,7 @@ "inert": "^5.1.0", "jsonwebtoken": "^8.1.0", "multer": "^1.3.0", - "npm": "^5.8.0", + "npm": "^6.6.0", "pg": "^7.3.0", "reflect-metadata": "^0.1.10", "sql.js": "^0.5.0", @@ -69,6 +71,8 @@ "typeorm": "^0.2.0", "typescript": "^2.7.2", "typescript-ioc": "^1.1.0", - "vision": "^5.3.2" - } + "vision": "^5.3.2", + "snyk": "^1.165.0" + }, + "snyk": true }