From 5a9538415af85c25d2d787b7584c1a4ba0c0da63 Mon Sep 17 00:00:00 2001 From: snyk-test Date: Thu, 4 Jul 2019 06:38:31 +0000 Subject: [PATCH] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-450202 --- .snyk | 8 ++++++++ package.json | 10 +++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 000000000..e15722b22 --- /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-LODASH-450202: + - lodash: + patched: '2019-07-04T06:38:30.084Z' diff --git a/package.json b/package.json index 21a62220b..2f4767d50 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,9 @@ }, "scripts": { "build": "grunt", - "test": "karma start karma.conf.js" + "test": "karma start karma.conf.js", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "keywords": [ "gridstack", @@ -27,7 +29,8 @@ "dependencies": { "jquery": "^3.1.0", "jquery-ui": "^1.12.0", - "lodash": "^4.14.2" + "lodash": "^4.14.2", + "snyk": "^1.189.0" }, "devDependencies": { "connect": "^3.4.1", @@ -54,5 +57,6 @@ "karma-phantomjs-launcher": "^1.0.0", "phantomjs-prebuilt": "^2.1.5", "serve-static": "^1.10.2" - } + }, + "snyk": true }