diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..017c83c --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - lodash: + patched: '2020-05-01T07:41:54.808Z' diff --git a/package.json b/package.json index b340be5..c577b32 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,8 @@ "dependencies": { "xml2js": "^0.4", "lodash": "^4.12.0", - "loader-utils": "^0.2" + "loader-utils": "^0.2", + "snyk": "^1.316.1" }, "devDependencies": { "react": "^0.14", @@ -30,7 +31,9 @@ "should": "^7.0" }, "scripts": { - "test": "./node_modules/.bin/mocha -R spec test/test-*.js" + "test": "./node_modules/.bin/mocha -R spec test/test-*.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "MIT", "repository": { @@ -43,5 +46,6 @@ "contributors": [ "Jerry Hamlet (http://hamletink.com)", "Jonathan Ong (http://twitter.com/jongleberry)" - ] + ], + "snyk": true }