diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e7eda33 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# 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: + - lodash: + patched: '2019-07-07T22:32:41.093Z' diff --git a/package.json b/package.json index 0264d77..178ff9e 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,26 @@ "main": "src/index.js", "scripts": { "test": "./node_modules/jasmine-node/bin/jasmine-node ./test", - "test-travis": "./node_modules/istanbul/lib/cli.js cover --root . --include-all-sources jasmine-node ./test" + "test-travis": "./node_modules/istanbul/lib/cli.js cover --root . --include-all-sources jasmine-node ./test", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", "url": "git+https://github.com/wsiegenthaler/sequelize-embed.git" }, - "keywords": [ "sequelize", "associations", "model", "sync", "deep", "embed", "json", "document", "epilogue", "rest" ], + "keywords": [ + "sequelize", + "associations", + "model", + "sync", + "deep", + "embed", + "json", + "document", + "epilogue", + "rest" + ], "author": "Weston Siegenthaler", "license": "BSD-3-Clause", "bugs": { @@ -29,6 +42,8 @@ }, "dependencies": { "bluebird": "^3.4.7", - "lodash": "^4.17.4" - } + "lodash": "^4.17.4", + "snyk": "^1.192.3" + }, + "snyk": true }