diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..08eee39 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.14.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - request-promise-native > request-promise-core > lodash: + patched: '2020-05-01T00:27:07.056Z' diff --git a/package.json b/package.json index d704330..40800fc 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,8 @@ "test": "jest --coverage --collectCoverageFrom=src/**/*.{ts,tsx}", "prebuild": "rimraf build/", "build": "tsc", - "prepublish": "npm run test" + "prepublish": "npm run snyk-protect && npm run test", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -39,7 +40,8 @@ "@types/request-promise-native": "1.0.15", "joi": "14.3.1", "request": "2.88.0", - "request-promise-native": "1.0.5" + "request-promise-native": "1.0.5", + "snyk": "^1.316.1" }, "devDependencies": { "@types/jest": "24.0.0", @@ -51,5 +53,6 @@ "tslint": "5.12.1", "tslint-config-airbnb": "^5.11.1", "typescript": "3.3.3" - } + }, + "snyk": true }