diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d052b08 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - replicated-lint > snyk > proxy-agent > https-proxy-agent: + patched: '2019-10-04T00:13:28.658Z' + - replicated-lint > snyk > proxy-agent > pac-proxy-agent > https-proxy-agent: + patched: '2019-10-04T00:13:28.658Z' diff --git a/package.json b/package.json index ade85a8..6563b44 100644 --- a/package.json +++ b/package.json @@ -12,11 +12,12 @@ "bin/" ], "scripts": { - "prepublish": "rm -rf ./dist && yarn run tslint && tsc -p .", + "prepublish": "npm run snyk-protect && rm -rf ./dist && yarn run tslint && tsc -p .", "tslint": "tslint --project ./tsconfig.json", "test": "yarn run prepublish && mocha ./dist/test/*.js", "login-cli": "npm-cli-login", - "publish-if-version-changed": "publish" + "publish-if-version-changed": "publish", + "snyk-protect": "snyk protect" }, "bin": "bin/replicated-studio", "devDependencies": { @@ -40,6 +41,8 @@ "npm-cli-login": "^0.0.10", "replicated-lint": "^0.18.0", "source-map-support": "^0.4.11", - "uuid": "^3.0.1" - } + "uuid": "^3.0.1", + "snyk": "^1.230.5" + }, + "snyk": true }