refactor: update all

This commit is contained in:
openstappsbot
2021-03-29 04:14:49 +00:00
committed by Rainer Killinger
parent 31acec2a05
commit ff9fb49deb
3 changed files with 1304 additions and 1925 deletions

3169
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -32,62 +32,62 @@
"tslint": "tslint -p tsconfig.json -c tslint.json 'src/**/*.ts'"
},
"dependencies": {
"@elastic/elasticsearch": "5.6.20",
"@elastic/elasticsearch": "5.6.22",
"@openstapps/core": "0.42.0",
"@openstapps/core-tools": "0.18.0",
"@openstapps/logger": "0.5.0",
"@types/node": "10.14.12",
"commander": "2.20.0",
"config": "3.1.0",
"@types/node": "10.17.56",
"commander": "2.20.3",
"config": "3.3.6",
"cors": "2.8.5",
"express": "4.17.1",
"express-promise-router": "3.0.3",
"fs-extra": "8.0.1",
"fs-extra": "8.1.0",
"got": "9.6.0",
"moment": "2.24.0",
"morgan": "1.9.1",
"nock": "13.0.4",
"node-cache": "4.2.0",
"moment": "2.29.1",
"morgan": "1.10.0",
"nock": "13.0.11",
"node-cache": "4.2.1",
"node-cron": "2.0.3",
"nodemailer": "6.2.1",
"nodemailer": "6.5.0",
"promise-queue": "2.2.5",
"sanitize-filename": "1.6.3",
"ts-node": "8.2.0",
"uuid": "3.3.2"
"ts-node": "8.10.2",
"uuid": "3.4.0"
},
"devDependencies": {
"@openstapps/configuration": "0.26.0",
"@testdeck/mocha": "0.1.2",
"@types/chai": "4.2.14",
"@types/chai": "4.2.15",
"@types/chai-as-promised": "7.1.3",
"@types/config": "0.0.34",
"@types/cors": "2.8.5",
"@types/elasticsearch": "5.0.35",
"@types/express": "4.17.0",
"@types/config": "0.0.38",
"@types/cors": "2.8.10",
"@types/elasticsearch": "5.0.37",
"@types/express": "4.17.11",
"@types/fs-extra": "7.0.0",
"@types/got": "9.4.4",
"@types/mocha": "8.0.3",
"@types/morgan": "1.7.35",
"@types/got": "9.6.11",
"@types/mocha": "8.2.2",
"@types/morgan": "1.9.2",
"@types/nock": "10.0.3",
"@types/node-cache": "4.1.3",
"@types/node-cron": "2.0.2",
"@types/nodemailer": "6.2.0",
"@types/node-cron": "2.0.3",
"@types/nodemailer": "6.4.1",
"@types/promise-queue": "2.2.0",
"@types/sinon-express-mock": "1.3.9",
"@types/supertest": "2.0.10",
"@types/uuid": "3.4.5",
"chai": "4.2.0",
"@types/uuid": "3.4.9",
"chai": "4.3.4",
"chai-as-promised": "7.1.1",
"conventional-changelog-cli": "2.0.21",
"conventional-changelog-cli": "2.1.1",
"get-port": "5.1.1",
"mocha": "8.2.1",
"mocha": "8.3.2",
"mocked-env": "1.3.2",
"nyc": "15.1.0",
"prepend-file-cli": "1.0.6",
"rimraf": "2.6.3",
"sinon": "9.2.1",
"rimraf": "2.7.1",
"sinon": "9.2.4",
"sinon-express-mock": "2.2.1",
"supertest": "6.0.0",
"supertest": "6.1.3",
"tslint": "6.1.3",
"typedoc": "0.18.0",
"typescript": "3.8.3"

View File

@@ -85,7 +85,7 @@ export async function configureApp(app: Express, databases: {[name: string]: Dat
// TODO: See if it can handle options request with no content-type
// allow cors preflight requests on every route
app.options('*', cors(corsOptions));
app.options('*', [cors(corsOptions)]);
// only accept json as content type for all requests
app.use((req, res, next) => {