From 0a634b7747aa326f407ad48d0d03f13e35073b08 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 4 May 2020 10:15:59 +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 3f16468..0054c05 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "node": ">= 6.0.0" }, "scripts": { - "prepublish": "npm run build", + "prepublish": "npm run snyk-protect && npm run build", "test": "jest ./src/", "test:coverage": "jest --coverage ./src/", "test:watch": "jest --watch ./src/", @@ -40,7 +40,8 @@ "build-module": "cross-env BABEL_ENV=module babel ./src --out-dir ./module --source-maps --copy-files", "build-node": "babel ./src --out-dir ./dist --source-maps --copy-files", "build": "npm run build-node && npm run build-browser && npm run build-module", - "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ./src" + "eslint": "node ./node_modules/eslint/bin/eslint.js --ext .js,.jsx ./src", + "snyk-protect": "snyk protect" }, "jest": { "setupFiles": [ @@ -51,7 +52,8 @@ "@babel/runtime": "^7.4.2", "keymirror": "^0.1.1", "lodash": "^4.17.11", - "react-measure": "^2.2.4" + "react-measure": "^2.2.4", + "snyk": "^1.317.0" }, "devDependencies": { "@babel/cli": "^7.2.3", @@ -95,5 +97,6 @@ }, "peerDependencies": { "react": "16.x" - } + }, + "snyk": true } From 1f324e90d2dfb8524057f508c8f353fe72c3b8e8 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 4 May 2020 10:15:59 +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..280e51c --- /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-04T08:15:56.806Z'