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' 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 }