diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d8890e5 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - '@dadi/logger > aws-kinesis-writable > lodash': + patched: '2018-07-05T03:32:19.971Z' diff --git a/package.json b/package.json index 28a21d1..3c5ebd4 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,9 @@ "test": "snazzy 'lib/**/*.js' && env NODE_ENV=test ./node_modules/.bin/istanbul cover --report cobertura --report text --report html --report lcov ./node_modules/mocha/bin/_mocha test", "atest": "./node_modules/mocha/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", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -31,7 +33,8 @@ "dustjs-helpers": "^1.7.3", "dustjs-linkedin": "^2.7.5", "mkdirp": "^0.5.1", - "wildcard": "^1.1.2" + "wildcard": "^1.1.2", + "snyk": "^1.88.1" }, "devDependencies": { "colors": "^1.1.2", @@ -46,5 +49,6 @@ "sinon": "~1.17.6", "snazzy": "^6.0.0", "standard": "*" - } + }, + "snyk": true }