diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f640614 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.7.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:ms:20170412': + - cloudant > debug > ms: + patched: '2017-05-23T08:12:05.367Z' diff --git a/package.json b/package.json index 0de17dd..33360a1 100644 --- a/package.json +++ b/package.json @@ -5,10 +5,12 @@ "main": "./lib/index", "author": "david_taieb@us.ibm.com", "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { - "type" : "git", - "url": "git+https://github.com/ibm-cds-labs/bluemix-helper-config.git" + "type": "git", + "url": "git+https://github.com/ibm-cds-labs/bluemix-helper-config.git" }, "keywords": [ "bluemix" @@ -16,17 +18,19 @@ "dependencies": { "when": "3.7.7", "async": "~2.1.4", - "cfenv": "*", + "cfenv": "*", "nconfig": "*", "lodash": "~3.9.3", "bunyan": "^1.3.2", "bunyan-console-stream": "^0.1.0", "moment": "^2.10.3", - "cloudant": "^1.0.0" + "cloudant": "^1.0.0", + "snyk": "^1.30.1" }, "devDependencies": { "mocha": "*" }, "license": "Apache-2.0", - "readmeFilename": "README.md" + "readmeFilename": "README.md", + "snyk": true }