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 }