Skip to content

Commit 725af85

Browse files
author
Sandeep Sudheer
authored
Merge pull request #4 from ops-sandy/snyk-fix-1bca619d
[Snyk] Fix for 35 vulnerable dependency paths
2 parents 81ca25a + 2e4e297 commit 725af85

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

01-express-nodemon/app/.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.10.2
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
'npm:uglify-js:20151024':
7+
- jade > transformers > uglify-js:
8+
patched: '2018-04-23T06:24:41.330Z'

01-express-nodemon/app/package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
6-
"start": "nodemon -L app/bin/www"
6+
"start": "nodemon -L app/bin/www",
7+
"snyk-protect": "snyk protect",
8+
"prepublish": "npm run snyk-protect"
79
},
810
"dependencies": {
9-
"express": "~4.9.0",
10-
"body-parser": "~1.8.1",
11+
"express": "~4.16.0",
12+
"body-parser": "~1.17.1",
1113
"cookie-parser": "~1.3.3",
1214
"morgan": "~1.3.0",
13-
"serve-favicon": "~2.1.3",
14-
"debug": "~2.0.0",
15+
"serve-favicon": "~2.4.5",
16+
"debug": "~2.6.9",
1517
"hjs": "~0.0.6",
16-
"jade": "*"
17-
}
18+
"jade": "*",
19+
"snyk": "^1.73.0"
20+
},
21+
"snyk": true
1822
}

0 commit comments

Comments
 (0)