diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..ffeda1e --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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': + - npm > cli-table2 > lodash: + patched: '2018-07-02T22:34:11.110Z' + - npm > npm-audit-report > cli-table2 > lodash: + patched: '2018-07-02T22:34:11.110Z' diff --git a/package.json b/package.json index 863fea6..c16a961 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", + "prepare": "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.88.0" + }, + "snyk": true }