From ecdee968228ae9c9fcdcb0f23923341269f3859b Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 1 May 2019 22:16:13 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-TAR-174125 - https://snyk.io/vuln/npm:hoek:20180212 - https://snyk.io/vuln/npm:ws:20171108 The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:hoek:20180212 --- .snyk | 14 ++++++++++++++ package.json | 13 ++++++++----- 2 files changed, 22 insertions(+), 5 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..16bfb49 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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:hoek:20180212': + - sqlite3 > node-pre-gyp > hawk > hoek: + patched: '2019-05-01T22:16:08.040Z' + - sqlite3 > node-pre-gyp > hawk > boom > hoek: + patched: '2019-05-01T22:16:08.040Z' + - sqlite3 > node-pre-gyp > hawk > sntp > hoek: + patched: '2019-05-01T22:16:08.040Z' + - sqlite3 > node-pre-gyp > hawk > cryptiles > boom > hoek: + patched: '2019-05-01T22:16:08.040Z' diff --git a/package.json b/package.json index 140bb52..14828ef 100644 --- a/package.json +++ b/package.json @@ -10,21 +10,24 @@ "dev": "run-p watch server", "lint": "eslint .", "lint-fix": "eslint . --fix", - "check-vulnerabilities": "snyk test" + "check-vulnerabilities": "snyk test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "dependencies": { "babel-eslint": "^8.2.2", "chart.js": "^2.7.2", "degrees-to-direction": "^1.1.1", "express": "^4.16.2", - "express-ws": "^3.0.0", + "express-ws": "^4.0.0", "moment": "^2.20.1", "mqtt": "^2.15.2", "mustache": "^2.3.0", "mustache-express": "^1.2.5", "node-schedule": "^1.3.0", "solar-calc": "^1.1.0", - "sqlite3": "^3.1.13" + "sqlite3": "^4.0.0", + "snyk": "^1.158.0" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -37,9 +40,9 @@ "eslint": "^4.18.2", "eslint-plugin-security": "^1.4.0", "npm-run-all": "^4.1.2", - "snyk": "^1.69.10", "watchify": "^3.10.0" }, "author": "Felix Gonschorek ", - "license": "ISC" + "license": "ISC", + "snyk": true }