From 110dc82f88c14d12a20ac54c0af03cff515f1963 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 23:45:31 +0200 Subject: [PATCH 1/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..c2a47a3 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# 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: + - openapi2schema > json-schema-merge-allof > lodash: + patched: '2020-04-30T21:45:28.626Z' + - openapi2schema > json-schema-merge-allof > json-schema-compare > lodash: + patched: '2020-04-30T21:45:28.626Z' From 8de92a81eeeb33fc66c37c332522d8ff1a78ef00 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 30 Apr 2020 23:45:32 +0200 Subject: [PATCH 2/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 76877bf..8929eb0 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,9 @@ "lint": "./node_modules/.bin/tslint {src,test}/**/*.ts --format stylish", "pretest": "npm run build", "release": "./node_modules/.bin/release-it -p -n", - "prepublishOnly": "npm run build" + "prepublishOnly": "npm run build", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" }, "repository": { "type": "git", @@ -61,7 +63,8 @@ "js-yaml": "^3.13.1", "json-schema-deref-sync": "^0.6.0", "json-schema-ref-parser": "^4.0.4", - "openapi2schema": "^0.3.1" + "openapi2schema": "^0.3.1", + "snyk": "^1.316.1" }, "nyc": { "require": [ @@ -76,5 +79,6 @@ ], "sourceMap": true, "instrument": true - } + }, + "snyk": true }