From 97481445e9bd2abb274a2b91265e64dfd727136f Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 04:00:54 -0300 Subject: [PATCH 1/2] fix: .snyk & package.json 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..beb31fc --- /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: + - mongoose > async > lodash: + patched: '2020-05-01T07:00:53.106Z' From 7349075859de0ecc4c0041a1a3241e76fc20fbf6 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Fri, 1 May 2020 04:00:55 -0300 Subject: [PATCH 2/2] fix: .snyk & package.json to reduce vulnerabilities The following vulnerabilities are fixed with a Snyk patch: - https://snyk.io/vuln/SNYK-JS-LODASH-567746 --- package.json | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 96da0d0..9e33ebd 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,8 @@ "koa-graphql-batch": "^1.1.0", "koa-logger": "^3.1.0", "koa-router": "^7.2.1", - "mongoose": "^4.12.4" + "mongoose": "^4.12.4", + "snyk": "^1.316.1" }, "devDependencies": { "babel-cli": "^6.26.0", @@ -47,14 +48,22 @@ }, "jest": { "testEnvironment": "node", - "testPathIgnorePatterns": ["/node_modules/", "./dist"], - "coverageReporters": ["lcov", "html"], + "testPathIgnorePatterns": [ + "/node_modules/", + "./dist" + ], + "coverageReporters": [ + "lcov", + "html" + ], "coverageDirectory": "./coverage/", "collectCoverage": true, "moduleNameMapper": { "^mongoose$": "/node_modules/mongoose" }, - "setupFiles": ["babel-polyfill"] + "setupFiles": [ + "babel-polyfill" + ] }, "license": "MIT", "main": "index.js", @@ -69,8 +78,7 @@ ] }, "scripts": { - "build": - "npm run clear && babel src --ignore *.spec.js --out-dir dist --copy-files", + "build": "npm run clear && babel src --ignore *.spec.js --out-dir dist --copy-files", "clear": "rimraf ./dist", "flow": "flow; test $? -eq 0 -o $? -eq 2", "lint": "eslint src/**", @@ -80,6 +88,9 @@ "test": "jest --coverage --forceExit --runInBand", "test:watch": "jest --watch --coverage", "update-schema": "babel-node ./scripts/updateSchema.js", - "watch": "nodemon src/index.js --exec babel-node" - } + "watch": "nodemon src/index.js --exec babel-node", + "snyk-protect": "snyk protect", + "prepare": "yarn run snyk-protect" + }, + "snyk": true }