mirror of
https://github.com/bobwen-dev/react-templates
synced 2025-04-12 00:56:39 +02:00
fix: package.json & .snyk to reduce vulnerabilities
The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746
This commit is contained in:
parent
becfc2b789
commit
00a5499a49
@ -19,7 +19,8 @@
|
|||||||
"buildwp": "webpack --config webpack-production.config.js --progress --profile --colors",
|
"buildwp": "webpack --config webpack-production.config.js --progress --profile --colors",
|
||||||
"babel": "rm -rf dist && babel src/ --out-dir dist",
|
"babel": "rm -rf dist && babel src/ --out-dir dist",
|
||||||
"all": "npm run lint && npm run test",
|
"all": "npm run lint && npm run test",
|
||||||
"prepublish": "npm run babel"
|
"prepublish": "npm run snyk-protect && npm run babel",
|
||||||
|
"snyk-protect": "snyk protect"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -45,7 +46,8 @@
|
|||||||
"lodash": "^4.17.10",
|
"lodash": "^4.17.10",
|
||||||
"normalize-html-whitespace": "^0.2.0",
|
"normalize-html-whitespace": "^0.2.0",
|
||||||
"optionator": "^0.8.2",
|
"optionator": "^0.8.2",
|
||||||
"text-table": "^0.2.0"
|
"text-table": "^0.2.0",
|
||||||
|
"snyk": "^1.317.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-cli": "^6.26.0",
|
"babel-cli": "^6.26.0",
|
||||||
@ -84,5 +86,6 @@
|
|||||||
"react.js",
|
"react.js",
|
||||||
"react-component",
|
"react-component",
|
||||||
"react component"
|
"react component"
|
||||||
]
|
],
|
||||||
|
"snyk": true
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user