Skip to content

Commit 082f7a9

Browse files
snyk-botlisong
authored andcommitted
fix: package.json & .snyk to reduce vulnerabilities (lisong#66)
The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/npm:ms:20170412 Latest report for lisong/code-push-server: https://snyk.io/test/github/lisong/code-push-server
1 parent a4516ee commit 082f7a9

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.snyk

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2+
version: v1.7.0
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
'npm:ms:20170412':
7+
- extract-zip > debug > ms:
8+
patched: '2017-05-23T03:00:06.406Z'
9+
- morgan > debug > ms:
10+
patched: '2017-05-23T03:00:06.406Z'

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@
3535
"upgrade": "node ./bin/db upgrade",
3636
"test": "make test",
3737
"test-win": "mocha test/api/init test/api/users test/api/auth test/api/account test/api/accessKeys test/api/sessions test/api/apps test/api/index --recursive --timeout 15000",
38-
"coverage": "make coverage"
38+
"coverage": "make coverage",
39+
"snyk-protect": "snyk protect",
40+
"prepublish": "npm run snyk-protect"
3941
},
4042
"dependencies": {
4143
"aliyun-oss-upload-stream": "^1.3.0",
@@ -71,7 +73,8 @@
7173
"slash": "^1.0.0",
7274
"validator": "^7.0.0",
7375
"yargs": "^6.2.0",
74-
"yazl": "^2.3.0"
76+
"yazl": "^2.3.0",
77+
"snyk": "^1.30.1"
7578
},
7679
"devDependencies": {
7780
"istanbul": "^0.4.5",
@@ -93,5 +96,6 @@
9396
"app.js",
9497
"README.md",
9598
"LICENSE"
96-
]
99+
],
100+
"snyk": true
97101
}

0 commit comments

Comments
 (0)