Skip to content

Commit

Permalink
fix: .snyk & package.json to reduce vulnerabilities (#180)
Browse files Browse the repository at this point in the history
The following vulnerabilities are fixed with a Snyk patch:
- https://snyk.io/vuln/SNYK-JS-LODASH-450202
  • Loading branch information
snyk-bot authored and ScriptedAlchemy committed Jul 5, 2019
1 parent 757b11b commit f4d5466
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
12 changes: 12 additions & 0 deletions .snyk
@@ -0,0 +1,12 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.13.5
ignore: {}
# patches apply the minimum changes required to fix a vulnerability
patch:
SNYK-JS-LODASH-450202:
- webpack-external-import > babel-traverse > lodash:
patched: '2019-07-04T06:20:01.150Z'
- webpack-external-import > @babel/helper-module-imports > @babel/types > lodash:
patched: '2019-07-04T06:20:01.150Z'
- webpack-external-import > babel-traverse > babel-types > lodash:
patched: '2019-07-04T06:20:01.150Z'
10 changes: 7 additions & 3 deletions package.json
Expand Up @@ -57,7 +57,9 @@
"ci:coverage": "npm run test:coverage -- --runInBand",
"defaults": "webpack-defaults",
"semantic-release": "npx semantic-release",
"travis": "npm run ci:coverage"
"travis": "npm run ci:coverage",
"snyk-protect": "snyk protect",
"prepublish": "npm run snyk-protect"
},
"files": [
"dist"
Expand All @@ -70,7 +72,8 @@
"normalize-url": "1.9.1",
"schema-utils": "^1.0.0",
"webpack-external-import": "^0.0.1-beta.16",
"webpack-sources": "^1.1.0"
"webpack-sources": "^1.1.0",
"snyk": "^1.189.0"
},
"devDependencies": {
"@babel/cli": "^7.4.4",
Expand Down Expand Up @@ -110,5 +113,6 @@
"eslint --fix",
"git add"
]
}
},
"snyk": true
}

0 comments on commit f4d5466

Please sign in to comment.