diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..f05ce6e --- /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: + - typemoq > lodash: + patched: '2019-07-04T08:19:37.805Z' diff --git a/package.json b/package.json index 863fea6..812582a 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,9 @@ "local:watch": "npm run build && npm run lint && cat ./tslint.err && npm run build && node --inspect ./dist/src/index.js", "start": "npm run build && node ./dist/src/index.js", "test": "set NODE_ENV=TEST && nyc --extension .ts --extension .tsx mocha --timeout 10000 -r ts-node/register ./test/*.ts && nyc report --reporter text-lcov --extension .ts --extension .tsx | coveralls", - "test-watch": "npm run clean && mocha-typescript-watch -p tsconfig.json -o ./mocha.opts" + "test-watch": "npm run clean && mocha-typescript-watch -p tsconfig.json -o ./mocha.opts", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -69,6 +71,8 @@ "typeorm": "^0.2.0", "typescript": "^2.7.2", "typescript-ioc": "^1.1.0", - "vision": "^5.3.2" - } + "vision": "^5.3.2", + "snyk": "^1.189.0" + }, + "snyk": true }