From 9b44281c18f2f1e51f700a6ea619c1d7145c3f0c Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Wed, 24 May 2017 12:31:23 +0000 Subject: [PATCH] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for dadi/api-wrapper: https://snyk.io/test/github/dadi/api-wrapper --- .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..ac0e53d --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - standard > eslint-plugin-import > eslint-module-utils > debug > ms: + patched: '2017-05-24T12:31:23.622Z' diff --git a/package.json b/package.json index 2a0528b..8cb3324 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "standard 'lib/**/*.js' && NODE_ENV=test ./node_modules/.bin/istanbul cover --report cobertura --report text --report html --report lcov ./node_modules/.bin/_mocha test", "posttest": "./scripts/coverage.js", - "semantic-release": "semantic-release pre && npm publish && semantic-release post" + "semantic-release": "semantic-release pre && npm publish && semantic-release post", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "Eduardo Boucas ", "license": "GPL", @@ -16,7 +18,8 @@ "debug": "^2.6.1", "query-string": "^4.1.0", "request-promise": "^2.0.1", - "standard": "*" + "standard": "*", + "snyk": "^1.30.1" }, "repository": { "type": "git", @@ -37,5 +40,6 @@ "supertest": "^1.2.0", "underscore": "^1.8.3", "semantic-release": "^6.3.2" - } + }, + "snyk": true }