diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..7bbe684 --- /dev/null +++ b/.snyk @@ -0,0 +1,11 @@ +# 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:hawk:20160119': + - follow-registry > follow > request > hawk: + patched: '2018-05-29T13:01:37.075Z' + 'npm:request:20160119': + - follow-registry > follow > request: + patched: '2018-05-29T13:01:37.075Z' diff --git a/package.json b/package.json index c983bea..dbb2528 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,8 @@ "rimraf": "^2.6.2", "slice-file": "^0.2.1", "timethat": "~0.0.2", - "yargs": "^1.3.3" + "yargs": "^1.3.3", + "snyk": "^1.82.0" }, "devDependencies": { "abstract-blob-store": "^3.3.4", @@ -38,9 +39,10 @@ "supertest": "^1.2.0" }, "scripts": { - "prepublish": "mkdirp man && marked-man README.md > man/registry-static.1", + "prepublish": "npm run snyk-protect; mkdirp man && marked-man README.md > man/registry-static.1", "pretest": "jshint ./bin/* ./lib/* ./tests/*", - "test": "istanbul cover --print both -- _mocha tests" + "test": "istanbul cover --print both -- _mocha tests", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -51,5 +53,6 @@ "bugs": { "url": "https://github.com/davglass/registry-static/issues" }, - "homepage": "https://github.com/davglass/registry-static" + "homepage": "https://github.com/davglass/registry-static", + "snyk": true }