diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..5aa008f --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.5 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + SNYK-JS-LODASH-450202: + - lodash: + patched: '2019-07-04T08:18:47.144Z' + - googleapis > async > lodash: + patched: '2019-07-04T08:18:47.144Z' + - google-auth-library > request > form-data > async > lodash: + patched: '2019-07-04T08:18:47.144Z' diff --git a/package.json b/package.json index 0c948eb..cc40f3a 100644 --- a/package.json +++ b/package.json @@ -15,9 +15,10 @@ "scripts": { "clean": "rm -rf lib", "compile": "babel --source-maps both -d lib/ src/", - "prepublish": "npm run compile", + "prepublish": "npm run snyk-protect; npm run compile", "test": "npm run compile && mocha --compilers js:babel-core/register --timeout 5000", - "lint": "./node_modules/.bin/eslint --fix src bin" + "lint": "./node_modules/.bin/eslint --fix src bin", + "snyk-protect": "snyk protect" }, "repository": { "type": "git", @@ -59,7 +60,8 @@ "probe-image-size": "^2.1.1", "promise": "^7.1.1", "promise-retry": "^1.1.1", - "uuid": "^2.0.3" + "uuid": "^2.0.3", + "snyk": "^1.189.0" }, "devDependencies": { "babel-cli": "^6.14.0", @@ -74,5 +76,6 @@ }, "bin": { "md2gslides": "bin/md2gslides.js" - } + }, + "snyk": true }