diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..83131c8 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.3 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-AXIOS-174505: + - axios: + patched: '2019-05-06T00:19:30.809Z' diff --git a/package.json b/package.json index cc8b8b4..ad927a8 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "lint": "tslint -c tslint.json 'src/**/*.ts'", "build": "tsc", "docs": "typedoc --options ./typedocconfig.ts", - "prepublishOnly": "rm -rf dist && npm install && npm run build" + "prepublishOnly": "rm -rf dist && npm install && npm run build", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" }, "repository": { "type": "git", @@ -49,6 +51,8 @@ "axios": "^0.18.0", "axios-retry": "^3.1.1", "joi": "^14.0.6", - "xml2js": "^0.4.19" - } + "xml2js": "^0.4.19", + "snyk": "^1.161.1" + }, + "snyk": true }