diff --git a/.snyk b/.snyk new file mode 100644 index 0000000000..6f25f5a656 --- /dev/null +++ b/.snyk @@ -0,0 +1,14 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.12.0 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:hoek:20180212': + - node-sass > node-gyp > request > hawk > hoek: + patched: '2018-06-19T07:15:20.412Z' + - node-sass > node-gyp > request > hawk > boom > hoek: + patched: '2018-06-19T07:15:20.412Z' + - node-sass > node-gyp > request > hawk > sntp > hoek: + patched: '2018-06-19T07:15:20.412Z' + - node-sass > node-gyp > request > hawk > cryptiles > boom > hoek: + patched: '2018-06-19T07:15:20.412Z' diff --git a/package.json b/package.json index 82d7b92852..3627d962bc 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "build": "webpack --env.dev", - "build:prod": "webpack --env.prod -p" + "build:prod": "webpack --env.prod -p", + "snyk-protect": "snyk protect", + "prepublish": "npm run snyk-protect" }, "license": "MIT", "dependencies": { @@ -33,6 +35,8 @@ "angular-loading-bar": "^0.9.0", "ng-file-upload": "^12.2.12", "angular-pdf": "~1.3.0", - "angular-truncate": "sparkalow/angular-truncate" - } + "angular-truncate": "sparkalow/angular-truncate", + "snyk": "^1.83.0" + }, + "snyk": true }