diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..07774f6 --- /dev/null +++ b/.snyk @@ -0,0 +1,12 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +version: v1.13.1 +ignore: {} +# patches apply the minimum changes required to fix a vulnerability +patch: + 'npm:minimatch:20160620': + - sequelize-cli > gulp > vinyl-fs > glob-stream > minimatch: + patched: '2018-11-27T05:20:55.062Z' + - sequelize-cli > gulp > vinyl-fs > glob-watcher > gaze > globule > minimatch: + patched: '2018-11-27T05:20:55.062Z' + - sequelize-cli > gulp > vinyl-fs > glob-watcher > gaze > globule > glob > minimatch: + patched: '2018-11-27T05:20:55.062Z' diff --git a/package.json b/package.json index fdb8699..221bcfa 100644 --- a/package.json +++ b/package.json @@ -50,18 +50,19 @@ "marked": "^0.3.6", "moment": "^2.15.2", "node-fetch": "^1.6.3", - "nunjucks": "^2.5.2", + "nunjucks": "^3.1.3", "nunjucks-markdown": "^2.0.0", "pg": "^6.1.0", "pg-hstore": "^2.3.2", "pretty-ms": "^2.1.0", "promise": "^7.1.1", - "sequelize": "^3.24.6", - "sequelize-cli": "^2.4.0", + "sequelize": "^4.17.2", + "sequelize-cli": "^5.0.1", "svg-intersections": "^0.2.5", "trip": "^1.0.3", "winston": "^2.2.0", - "xmldom": "^0.1.22" + "xmldom": "^0.1.22", + "snyk": "^1.110.2" }, "devDependencies": { "babel-eslint": "^7.1.0", @@ -86,6 +87,9 @@ "migrate": "sequelize db:migrate", "republisher": "node --require ./setup.js server/lib/results/republisher", "start": "npm run migrate && node --optimize_for_size --max_old_space_size=460 --gc_interval=100 --require ./setup.js server", - "test": "mocha --compilers js:babel-core/register layouts/*.spec.js" - } + "test": "mocha --compilers js:babel-core/register layouts/*.spec.js", + "snyk-protect": "snyk protect", + "prepare": "npm run snyk-protect" + }, + "snyk": true }