diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..5dcd53eb9 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:lodash:20180130': + - jscs-jsdoc > jsdoctypeparser > lodash: + patched: '2018-07-05T06:28:14.501Z' diff --git a/package.json b/package.json index 2c1b6ef04..561b17cc4 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "jscs-jsdoc": "^2.0.0", "jscs-preset-wikimedia": "~1.0.0", "jsonlint": "~1.6.2", - "lodash": "~3.10.0", + "lodash": "~4.17.5", "minimatch": "~3.0.0", "natural-compare": "~1.2.2", "pathval": "~0.1.1", @@ -85,7 +85,8 @@ "to-single-quotes": "^2.0.0", "vow": "~0.4.8", "vow-fs": "~0.3.4", - "xmlbuilder": "^3.1.0" + "xmlbuilder": "^4.2.1", + "snyk": "^1.88.1" }, "devDependencies": { "chai": "^3.3.0", @@ -136,7 +137,9 @@ "coverage-html": "unit-coverage run -p common -r html -o coverage.html", "coveralls": "unit-coverage run -p common -r lcov -o out.lcov && cat out.lcov | coveralls", "changelog": "git log `git describe --tags --abbrev=0`..HEAD --pretty=format:' * %s (%an)' | grep -v 'Merge pull request'", - "release": "node publish/prepublish && npm test && npm publish" + "release": "node publish/prepublish && npm test && npm publish", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "files": [ "bin", @@ -144,5 +147,6 @@ "patterns", "presets", "LICENSE" - ] + ], + "snyk": true }