Skip to content

Commit 995b687

Browse files
committed
fix: .snyk & package.json to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202
1 parent f6207bd commit 995b687

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.14.0
3+
ignore: {}
4+
# patches apply the minimum changes required to fix a vulnerability
5+
patch:
6+
SNYK-JS-LODASH-450202:
7+
- json-refs > lodash:
8+
patched: '2020-01-10T06:22:00.438Z'
9+
- json-refs > graphlib > lodash:
10+
patched: '2020-01-10T06:22:00.438Z'

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,16 @@
3232
"lit-element": "2.2.1",
3333
"lit-html": "1.0.0",
3434
"marked": "^0.8.0",
35-
"swagger2openapi": "^5.3.2"
35+
"swagger2openapi": "^5.3.2",
36+
"snyk": "^1.277.3"
3637
},
3738
"scripts": {
3839
"build": "NODE_ENV=production webpack",
3940
"serve": "webpack-dev-server --mode=development",
4041
"lint": "./node_modules/eslint/bin/eslint.js ./src/**",
41-
"lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**"
42+
"lint-fix": "./node_modules/eslint/bin/eslint.js --fix ./src/**",
43+
"snyk-protect": "snyk protect",
44+
"prepare": "yarn run snyk-protect"
4245
},
4346
"devDependencies": {
4447
"@babel/core": "^7.7.7",
@@ -64,5 +67,6 @@
6467
"webpack-bundle-analyzer": "^3.6.0",
6568
"webpack-cli": "^3.3.10",
6669
"webpack-dev-server": "^3.10.1"
67-
}
70+
},
71+
"snyk": true
6872
}

0 commit comments

Comments
 (0)