From 5453ca643d8f2b009945d3cfa661273cf866bf45 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Wed, 3 Jul 2019 22:04:38 +0000 Subject: [PATCH] fix: nodejs/.snyk & nodejs/package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- nodejs/.snyk | 10 ++++++++++ nodejs/package.json | 10 ++++++++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 nodejs/.snyk diff --git a/nodejs/.snyk b/nodejs/.snyk new file mode 100644 index 0000000..7138f4d --- /dev/null +++ b/nodejs/.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-LODASH-450202: + - koalanlp > java > lodash: + patched: '2019-07-03T22:04:37.371Z' + - koalanlp > java > async > lodash: + patched: '2019-07-03T22:04:37.371Z' diff --git a/nodejs/package.json b/nodejs/package.json index 7430452..aec9e9c 100644 --- a/nodejs/package.json +++ b/nodejs/package.json @@ -2,6 +2,12 @@ "name": "koalanlp-node-sample", "version": "2.0.0", "dependencies": { - "koalanlp": "2.0.0" - } + "koalanlp": "2.0.0", + "snyk": "^1.189.0" + }, + "scripts": { + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "snyk": true }