From 8539c16350af911e98e91a6184f4fb0962689faf Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 5 May 2020 01:47:57 +0200 Subject: [PATCH 1/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index f0da6a1..3122583 100644 --- a/package.json +++ b/package.json @@ -10,11 +10,12 @@ }, "scripts": { "transpile": "rimraf dist && babel src -d dist", - "prepublish": "npm run transpile", + "prepublish": "npm run snyk-protect && npm run transpile", "lint": "eslint .", "mocha": "mocha specs/lib --recursive --compilers js:babel-register", "start": "export NODE_ENV=development; npm run mocha -- --watch --growl", - "test": "export NODE_ENV=test; npm run lint && rimraf coverage && nyc npm run mocha" + "test": "export NODE_ENV=test; npm run lint && rimraf coverage && nyc npm run mocha", + "snyk-protect": "snyk protect" }, "main": "dist/lib/index.js", "keywords": [ @@ -27,7 +28,8 @@ "dependencies": { "chalk": "^2.4.1", "lodash": "^4.17.11", - "strip-ansi": "^5.0.0" + "strip-ansi": "^5.0.0", + "snyk": "^1.317.0" }, "peerDependencies": { "node-sass": ">= 3.x" @@ -66,5 +68,6 @@ "html", "text" ] - } + }, + "snyk": true } From 87009f61dae62dad984423b20fe6ac22cce89191 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Tue, 5 May 2020 01:47:58 +0200 Subject: [PATCH 2/2] fix: package.json & .snyk to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- .snyk | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..d915c30 --- /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: + - lodash: + patched: '2020-05-04T23:47:51.370Z'