diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..4718333 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# 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-HTTPSPROXYAGENT-469131: + - npm > npm-profile > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T08:23:18.855Z' + - npm > npm-registry-fetch > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T08:23:18.855Z' + - npm > pacote > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T08:23:18.855Z' + - npm > libcipm > pacote > make-fetch-happen > https-proxy-agent: + patched: '2019-10-04T08:23:18.855Z' diff --git a/package.json b/package.json index 863fea6..06fc085 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.230.5" + }, + "snyk": true }