diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e09ac64 --- /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-HTTPSPROXYAGENT-469131: + - perimeterx-node-core > https-proxy-agent: + patched: '2019-10-10T08:04:34.162Z' diff --git a/package.json b/package.json index 1c4be62..6a21d36 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ "scripts": { "test": "mocha --exit", "cover": "istanbul cover _mocha", - "lint": "./node_modules/eslint/bin/eslint.js lib/" + "lint": "./node_modules/eslint/bin/eslint.js lib/", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "repository": { "type": "git", @@ -31,7 +33,8 @@ "dependencies": { "cookie-parser": "^1.4.1", "moment": "^2.19.3", - "perimeterx-node-core": "^2.3.2" + "perimeterx-node-core": "^2.3.2", + "snyk": "^1.234.0" }, "devDependencies": { "eslint": "^6.5.1", @@ -44,5 +47,6 @@ "sinon": "^2.1.0", "superagent": "^3.8.3", "uuid": "^3.0.0" - } + }, + "snyk": true }