Skip to content

Commit f9802ba

Browse files
Merge pull request #2 from learnwithgeeks/snyk-fix-z8orsh
[Snyk] Fix for 1 vulnerable dependencies
2 parents 4d9f209 + ee15e7a commit f9802ba

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

checking unauthorized route/.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-06T00:42:06.368Z'

checking unauthorized route/package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
"description": "",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo \"Error: no test specified\" && exit 1",
8+
"snyk-protect": "snyk protect",
9+
"prepublish": "npm run snyk-protect"
810
},
911
"author": "",
1012
"license": "ISC",
1113
"dependencies": {
1214
"axios": "^0.18.0",
13-
"express": "^4.16.3"
14-
}
15+
"express": "^4.16.3",
16+
"snyk": "^1.161.1"
17+
},
18+
"snyk": true
1519
}

0 commit comments

Comments
 (0)