diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..b11ff09 --- /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-04T03:09:38.663Z' diff --git a/package.json b/package.json index 33b8bc1..6336770 100644 --- a/package.json +++ b/package.json @@ -29,15 +29,17 @@ "node": ">= 0.10.0" }, "scripts": { - "prepublish": "npm run build", + "prepublish": "npm run snyk-protect && npm run build", "test": "babel-node ./node_modules/gulp/bin/gulp.js test", "build": "babel-node ./node_modules/gulp/bin/gulp.js build", - "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ." + "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx .", + "snyk-protect": "snyk protect" }, "main": "./dist/index.js", "dependencies": { "lodash": "^4.13.1", - "events": "^1.1.0" + "events": "^1.1.0", + "snyk": "^1.317.0" }, "devDependencies": { "angular": "^1.5.6", @@ -64,5 +66,6 @@ }, "peerDependencies": { "angular": "^1.2.0" - } + }, + "snyk": true }