Skip to content

Commit 0c9275c

Browse files
authored
Merge pull request #5 from TNOCS/snyk-fix-edeaede1
[Snyk] Fix for 3 vulnerable dependency paths
2 parents 21db0eb + 29fb2c3 commit 0c9275c

2 files changed

Lines changed: 20 additions & 3 deletions

File tree

.snyk

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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:moment:20161019':
7+
- mosca > moment:
8+
patched: '2017-02-18T10:10:46.080Z'
9+
'npm:ws:20160104':
10+
- hypertimer > ws:
11+
patched: '2017-02-18T10:10:46.080Z'
12+
- csweb > hypertimer > ws:
13+
patched: '2017-02-18T10:10:46.080Z'

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,18 @@
1717
"postinstall": "typings install && npm run tsc",
1818
"tsc": "./node_modules/.bin/tsc",
1919
"tsc:w": "./node_modules/.bin/tsc -w",
20-
"typings": "typings"
20+
"typings": "typings",
21+
"snyk-protect": "snyk protect",
22+
"prepublish": "npm run snyk-protect"
2123
},
2224
"dependencies": {
2325
"csweb": "^0.3.1",
2426
"fs-extra": "^0.30.0",
2527
"hypertimer": "^2.1.3",
2628
"mosca": "^2.1.0",
2729
"setprototypeof": "^1.0.1",
28-
"winston": "^2.1.0"
30+
"winston": "^2.1.0",
31+
"snyk": "^1.25.0"
2932
},
3033
"devDependencies": {
3134
"chokidar": "^1.2.0",
@@ -58,5 +61,6 @@
5861
"bugs": {
5962
"url": "https://github.com/TNOCS/csWeb/issues"
6063
},
61-
"homepage": "https://github.com/TNOCS/csWeb"
64+
"homepage": "https://github.com/TNOCS/csWeb",
65+
"snyk": true
6266
}

0 commit comments

Comments
 (0)