Skip to content

Commit d9ee09c

Browse files
Merge pull request #2 from learnwithgeeks/snyk-fix-rwiwtq
[Snyk] Fix for 1 vulnerable dependencies
2 parents 7b2adbc + 0b35d9a commit d9ee09c

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

.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.13.3
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
SNYK-JS-AXIOS-174505:
7+
- axios:
8+
patched: '2019-05-06T03:29:13.850Z'

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
"start": "node app.js",
88
"dev": "nodemon app.js",
99
"test": "jest test",
10-
"coverage": "jest --collectCoverageFrom=test/**.js --coverage test"
10+
"coverage": "jest --collectCoverageFrom=test/**.js --coverage test",
11+
"snyk-protect": "snyk protect",
12+
"prepublish": "npm run snyk-protect"
1113
},
1214
"repository": {
1315
"type": "git",
@@ -28,10 +30,12 @@
2830
"jsonwebtoken": "^8.4.0",
2931
"mongoose": "^5.3.12",
3032
"passport": "^0.4.0",
31-
"passport-jwt": "^4.0.0"
33+
"passport-jwt": "^4.0.0",
34+
"snyk": "^1.161.1"
3235
},
3336
"devDependencies": {
3437
"jest": "^23.6.0",
3538
"supertest": "^3.3.0"
36-
}
39+
},
40+
"snyk": true
3741
}

0 commit comments

Comments
 (0)