Update dependencies

parent 589a681e
......@@ -40,7 +40,7 @@ class DumpCryptor {
let salt = null;
if (fs.existsSync(this.pathToSalt)) {
salt = JSON.parse(fs.readFileSync(this.pathToSalt));
salt = JSON.parse(fs.readFileSync(this.pathToSalt, {encoding: 'UTF-8'}));
} else {
const bytesInSalt = 128 / 8;
salt = CryptoJS.lib.WordArray.random(bytesInSalt);
......
......@@ -15,80 +15,73 @@
"dependency-check": "npx --ignore-existing madge --circular --extensions ts src"
},
"dependencies": {
"api-spec-converter": "^2.7.32",
"body-parser": "^1.18.3",
"bull": "^3.7.0",
"api-spec-converter": "^2.8.3",
"body-parser": "^1.19.0",
"bunyan": "^1.8.12",
"cas": "0.0.3",
"compression": "^1.7.4",
"connect-busboy": "0.0.2",
"cookie-parser": "^1.4.4",
"cors": "^2.8.5",
"crypto-js": "^3.1.9-1",
"cssstyle": "^1.2.2",
"excel4node": "^1.7.1",
"express": "^4.16.4",
"excel4node": "^1.7.2",
"express": "^4.17.1",
"express-ws": "^4.0.0",
"file-type": "^10.10.0",
"file-type": "^12.0.0",
"gitlab": "^4.5.1",
"i18n": "^0.8.3",
"jsonwebtoken": "^8.5.1",
"lowdb": "^1.0.0",
"mathjax-node": "^2.1.1",
"messageformat": "^2.1.0",
"mime": "^2.4.2",
"mime-types": "^2.1.22",
"messageformat": "^2.2.1",
"mime": "^2.4.4",
"mime-types": "^2.1.24",
"minimist": "^1.2.0",
"mongoose": "^5.4.22",
"morgan": "^1.9.1",
"multer": "^1.4.1",
"node-sass-middleware": "0.11.0",
"nodemailer": "^5.1.1",
"nodemailer": "^6.2.1",
"reflect-metadata": "^0.1.13",
"request": "^2.88.0",
"request-promise-native": "^1.0.7",
"routing-controllers": "^0.7.7",
"routing-controllers-openapi": "^1.6.0",
"source-map-support": "^0.5.11",
"swagger-ui-express": "^4.0.2",
"typegoose": "^5.6.0",
"url-join": "^4.0.0",
"ws": "^6.2.1",
"routing-controllers-openapi": "^1.7.0",
"source-map-support": "^0.5.12",
"swagger-ui-express": "^4.0.6",
"typegoose": "^5.7.2",
"ws": "^7.0.1",
"xml2js": "^0.4.19"
},
"devDependencies": {
"@types/body-parser": "1.17.0",
"@types/bull": "^3.5.11",
"@types/bull": "^3.5.14",
"@types/bunyan": "^1.8.6",
"@types/busboy": "^0.2.3",
"@types/chai": "^4.1.7",
"@types/chai-http": "3.0.5",
"@types/chai-http": "4.2.0",
"@types/compression": "^0.0.36",
"@types/cors": "^2.8.4",
"@types/cors": "^2.8.5",
"@types/crypto-js": "^3.1.43",
"@types/express": "^4.16.1",
"@types/express": "^4.17.0",
"@types/file-type": "^10.9.1",
"@types/i18n": "^0.8.5",
"@types/jsonwebtoken": "^8.3.2",
"@types/lowdb": "^1.0.7",
"@types/minimist": "^1.2.0",
"@types/mocha": "^5.2.6",
"@types/mocha": "^5.2.7",
"@types/mongoose": "^5.3.24",
"@types/morgan": "^1.7.35",
"@types/node": "^10.14.4",
"@types/node": "^12.0.10",
"@types/request": "^2.48.1",
"@types/request-promise-native": "^1.0.15",
"@types/request-promise-native": "^1.0.16",
"@types/websocket": "0.0.40",
"@types/ws": "^6.0.1",
"@types/xml2js": "^0.4.4",
"chai": "^4.2.0",
"chai-http": "^4.2.1",
"mocha": "^5.2.0",
"chai-http": "^4.3.0",
"mocha": "^6.1.4",
"mocha-typescript": "^1.1.17",
"nyc": "^13.3.0",
"ts-loader": "^5.3.3",
"ts-node": "^8.0.3",
"tslint": "^5.15.0",
"typescript": "^3.4.2"
"nyc": "^14.1.1",
"ts-loader": "^6.0.4",
"ts-node": "^8.3.0",
"tslint": "^5.18.0",
"typescript": "^3.5.2"
}
}
......@@ -63,11 +63,9 @@ class MongoDbConnector {
this._mongoURL += `${mongoHost}:${mongoPort}/${mongoDatabase}`;
const mongoURLOptions = [];
if (process.env.MONGODB_REPLICA_NAME) {
mongoURLOptions.push(`replicaSet=${mongoReplSet}`);
}
mongoURLOptions.push(`replicaSet=${mongoReplSet}`);
if (process.env.MONGODB_AUTH_SOURCE) {
if (Boolean(process.env.MONGODB_AUTH_SOURCE)) {
if (process.env.MONGODB_AUTH_SOURCE === 'true') {
mongoURLOptions.push(`authSource=${process.env.MONGODB_AUTH_SOURCE}`);
}
} else {
......
......@@ -52,7 +52,7 @@ interface IInetAddress {
}
process.on('unhandledRejection', rejectionToCreateDump);
process.on('uncaughtException', rejectionToCreateDump); // Throws exceptions when debugging with IntelliJ
// process.on('uncaughtException', rejectionToCreateDump); // Throws exceptions when debugging with IntelliJ
if (process.env.NODE_ENV === 'production') {
}
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import { suite, test } from 'mocha-typescript';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as assert from 'assert';
import * as fs from 'fs';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import { suite, test } from 'mocha-typescript';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import { suite, test } from 'mocha-typescript';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import { suite, test } from 'mocha-typescript';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import * as fs from 'fs';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import * as fs from 'fs';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import * as fs from 'fs';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import * as fs from 'fs';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import { suite, test } from 'mocha-typescript';
......
/// <reference path="../../../node_modules/@types/chai-http/index.d.ts" />
/// <reference path="../../../node_modules/chai-http/types/index.d.ts" />
import * as chai from 'chai';
import * as fs from 'fs';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment