Skip to content

Commit 0b512e2

Browse files
author
snyk-bot
committed
fix: package.json & .snyk to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:debug:20170905 Latest report for chetanraj/hapijs-mongoose-restapi: https://snyk.io/test/github/chetanraj/hapijs-mongoose-restapi
1 parent 5693a3b commit 0b512e2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.snyk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.7.1
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
'npm:debug:20170905':
7+
- mongoose > mquery > debug:
8+
patched: '2017-09-27T22:46:05.069Z'

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"license": "MIT",
77
"dependencies": {
88
"hapi": "^16.0.1",
9-
"mongoose": "^4.7.1"
9+
"mongoose": "^4.7.1",
10+
"snyk": "^1.41.1"
1011
},
1112
"devDependencies": {
1213
"code": "^4.0.0",
@@ -21,6 +22,9 @@
2122
"xo": "xo",
2223
"flow": "flow",
2324
"test": "node_modules/lab/bin/lab",
24-
"coveralls": "node_modules/lab/bin/lab -r lcov | node_modules/coveralls/bin/coveralls.js"
25-
}
25+
"coveralls": "node_modules/lab/bin/lab -r lcov | node_modules/coveralls/bin/coveralls.js",
26+
"snyk-protect": "snyk protect",
27+
"prepublish": "npm run snyk-protect"
28+
},
29+
"snyk": true
2630
}

0 commit comments

Comments
 (0)