From c3413d47e449f7a80373138e58d3730570c5e090 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 14 Jun 2020 23:26:46 +0000 Subject: [PATCH] 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 +++ package.json | 135 ++++++++++++++++++++++++++------------------------- 2 files changed, 78 insertions(+), 65 deletions(-) create mode 100644 .snyk diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..bc91d20 --- /dev/null +++ b/.snyk @@ -0,0 +1,8 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.15.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-567746: + - ava > concordance > lodash: + patched: '2020-06-14T23:26:42.645Z' diff --git a/package.json b/package.json index e36047a..5c6eeab 100644 --- a/package.json +++ b/package.json @@ -1,68 +1,73 @@ { - "name": "@slimio/timemap", - "version": "0.3.0", - "description": "Map implementation with timelife keys", - "main": "index.js", - "scripts": { - "prepublishOnly": "pkg-ok", - "test": "cross-env psp && nyc --reporter=lcov ava --verbose", - "doc": "jsdoc -c ./jsdoc.json -r -R ./README.md -P ./package.json --verbose", - "coverage": "codecov", - "report": "nyc report --reporter=html" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/SlimIO/TimeMap.git" - }, - "keywords": [ - "map", - "timemap", - "lifetime", - "timed" - ], - "files": [ - "index.js", - "index.d.ts" - ], - "author": "SlimIO", - "license": "MIT", - "bugs": { - "url": "https://github.com/SlimIO/TimeMap/issues" - }, - "homepage": "https://github.com/SlimIO/TimeMap#readme", - "dependencies": {}, - "devDependencies": { - "@commitlint/cli": "^8.3.5", - "@commitlint/config-conventional": "^8.3.4", - "@escommunity/minami": "^1.0.0", - "@slimio/eslint-config": "^4.1.0", - "@slimio/is": "^1.5.0", - "@slimio/psp": "^0.11.1", - "@types/node": "^14.0.1", - "ava": "^3.8.2", - "codecov": "^3.7.0", - "cross-env": "^7.0.2", - "eslint": "^7.0.0", - "husky": "^4.2.5", - "jsdoc": "^3.6.4", - "nyc": "^15.0.1", - "pkg-ok": "^2.3.1" - }, - "engines": { - "node": ">=12" - }, - "husky": { - "hooks": { - "pre-push": "cross-env eslint index.js && npm test", - "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" - } - }, - "nyc": { - "check-coverage": true, - "per-file": false, - "lines": 50, - "statements": 50, - "functions": 50, - "branches": 50 + "name": "@slimio/timemap", + "version": "0.3.0", + "description": "Map implementation with timelife keys", + "main": "index.js", + "scripts": { + "prepublishOnly": "pkg-ok", + "test": "cross-env psp && nyc --reporter=lcov ava --verbose", + "doc": "jsdoc -c ./jsdoc.json -r -R ./README.md -P ./package.json --verbose", + "coverage": "codecov", + "report": "nyc report --reporter=html", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/SlimIO/TimeMap.git" + }, + "keywords": [ + "map", + "timemap", + "lifetime", + "timed" + ], + "files": [ + "index.js", + "index.d.ts" + ], + "author": "SlimIO", + "license": "MIT", + "bugs": { + "url": "https://github.com/SlimIO/TimeMap/issues" + }, + "homepage": "https://github.com/SlimIO/TimeMap#readme", + "dependencies": { + "snyk": "^1.339.3" + }, + "devDependencies": { + "@commitlint/cli": "^8.3.5", + "@commitlint/config-conventional": "^8.3.4", + "@escommunity/minami": "^1.0.0", + "@slimio/eslint-config": "^4.1.0", + "@slimio/is": "^1.5.0", + "@slimio/psp": "^0.11.1", + "@types/node": "^14.0.1", + "ava": "^3.8.2", + "codecov": "^3.7.0", + "cross-env": "^7.0.2", + "eslint": "^7.0.0", + "husky": "^4.2.5", + "jsdoc": "^3.6.4", + "nyc": "^15.0.1", + "pkg-ok": "^2.3.1" + }, + "engines": { + "node": ">=12" + }, + "husky": { + "hooks": { + "pre-push": "cross-env eslint index.js && npm test", + "commit-msg": "commitlint -E HUSKY_GIT_PARAMS" } + }, + "nyc": { + "check-coverage": true, + "per-file": false, + "lines": 50, + "statements": 50, + "functions": 50, + "branches": 50 + }, + "snyk": true }