diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..e56b4bd --- /dev/null +++ b/.snyk @@ -0,0 +1,22 @@ +# 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-01T05:49:07.370Z' + - async > lodash: + patched: '2020-05-01T05:49:07.370Z' + - jsforce > lodash: + patched: '2020-05-01T05:49:07.370Z' + - nforce > lodash: + patched: '2020-05-01T05:49:07.370Z' + - restangular > lodash: + patched: '2020-05-01T05:49:07.370Z' + - grunt > grunt-legacy-log > lodash: + patched: '2020-05-01T05:49:07.370Z' + - grunt > grunt-legacy-util > lodash: + patched: '2020-05-01T05:49:07.370Z' + - grunt > grunt-legacy-log > grunt-legacy-log-utils > lodash: + patched: '2020-05-01T05:49:07.370Z' diff --git a/package.json b/package.json index 6278b3a..b9147b1 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "echo \"no test specified yet \"", "start": "node ./server/index.js", - "lint": "node_modules/.bin/goodparts lib" + "lint": "node_modules/.bin/goodparts lib", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "author": "", "license": "ISC", @@ -26,7 +28,8 @@ "moment": "^2.14.1", "nforce": "^1.6.0", "request": "^2.61.0", - "restangular": "^1.5.1" + "restangular": "^1.5.1", + "snyk": "^1.316.1" }, "cacheDirectories": [ "node_modules", @@ -45,5 +48,6 @@ "repository": { "type": "git", "url": "git://github.com/forcedotcom/IoraLite.git" - } + }, + "snyk": true }