refactor: update all

This commit is contained in:
openstappsbot
2022-08-17 13:09:40 +00:00
committed by Rainer Killinger
parent a20200e52a
commit 6e07041215
4 changed files with 1341 additions and 485 deletions

1775
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -34,70 +34,70 @@
}, },
"dependencies": { "dependencies": {
"@elastic/elasticsearch": "5.6.22", "@elastic/elasticsearch": "5.6.22",
"@openstapps/core": "0.68.0", "@openstapps/core": "0.69.0",
"@openstapps/core-tools": "0.31.0", "@openstapps/core-tools": "0.32.0",
"@openstapps/logger": "0.8.1", "@openstapps/logger": "1.0.0",
"@types/express-prometheus-middleware": "1.2.1", "@types/express-prometheus-middleware": "1.2.1",
"@types/node": "14.18.21", "@types/node": "14.18.24",
"config": "3.3.7", "config": "3.3.7",
"cors": "2.8.5", "cors": "2.8.5",
"express": "4.18.1", "express": "4.18.1",
"express-prometheus-middleware": "1.2.0", "express-prometheus-middleware": "1.2.0",
"express-promise-router": "4.1.1", "express-promise-router": "4.1.1",
"got": "11.8.5", "got": "11.8.5",
"moment": "2.29.3", "moment": "2.29.4",
"morgan": "1.10.0", "morgan": "1.10.0",
"nock": "13.2.7", "nock": "13.2.9",
"node-cache": "5.1.2", "node-cache": "5.1.2",
"node-cron": "3.0.1", "node-cron": "3.0.2",
"nodemailer": "6.7.5", "nodemailer": "6.7.8",
"prom-client": "14.0.1", "prom-client": "14.0.1",
"promise-queue": "2.2.5", "promise-queue": "2.2.5",
"ts-node": "10.8.1", "ts-node": "10.9.1",
"uuid": "8.3.2" "uuid": "8.3.2"
}, },
"devDependencies": { "devDependencies": {
"@openstapps/configuration": "0.32.0", "@openstapps/configuration": "0.33.0",
"@openstapps/es-mapping-generator": "0.2.0", "@openstapps/es-mapping-generator": "0.3.0",
"@openstapps/eslint-config": "1.1.0", "@openstapps/eslint-config": "1.1.0",
"@testdeck/mocha": "0.2.0", "@testdeck/mocha": "0.2.0",
"@types/chai": "4.3.1", "@types/chai": "4.3.3",
"@types/chai-as-promised": "7.1.5", "@types/chai-as-promised": "7.1.5",
"@types/config": "0.0.41", "@types/config": "3.3.0",
"@types/cors": "2.8.12", "@types/cors": "2.8.12",
"@types/elasticsearch": "5.0.40", "@types/elasticsearch": "5.0.40",
"@types/express": "4.17.13", "@types/express": "4.17.13",
"@types/geojson": "1.0.6", "@types/geojson": "1.0.6",
"@types/mocha": "9.1.1", "@types/mocha": "9.1.1",
"@types/morgan": "1.9.3", "@types/morgan": "1.9.3",
"@types/node-cron": "3.0.1", "@types/node-cron": "3.0.2",
"@types/nodemailer": "6.4.4", "@types/nodemailer": "6.4.5",
"@types/promise-queue": "2.2.0", "@types/promise-queue": "2.2.0",
"@types/sinon-express-mock": "1.3.9", "@types/sinon-express-mock": "1.3.9",
"@types/supertest": "2.0.12", "@types/supertest": "2.0.12",
"@types/uuid": "8.3.4", "@types/uuid": "8.3.4",
"@typescript-eslint/eslint-plugin": "5.29.0", "@typescript-eslint/eslint-plugin": "5.33.1",
"@typescript-eslint/parser": "5.29.0", "@typescript-eslint/parser": "5.33.1",
"chai": "4.3.6", "chai": "4.3.6",
"chai-as-promised": "7.1.1", "chai-as-promised": "7.1.1",
"conventional-changelog-cli": "2.2.2", "conventional-changelog-cli": "2.2.2",
"eslint": "8.18.0", "eslint": "8.22.0",
"eslint-config-prettier": "8.5.0", "eslint-config-prettier": "8.5.0",
"eslint-plugin-jsdoc": "39.3.3", "eslint-plugin-jsdoc": "39.3.6",
"eslint-plugin-prettier": "4.1.0", "eslint-plugin-prettier": "4.2.1",
"eslint-plugin-unicorn": "42.0.0", "eslint-plugin-unicorn": "43.0.2",
"get-port": "5.1.1", "get-port": "5.1.1",
"mocha": "10.0.0", "mocha": "10.0.0",
"mocked-env": "1.3.5", "mocked-env": "1.3.5",
"nyc": "15.1.0", "nyc": "15.1.0",
"prepend-file-cli": "1.0.6", "prepend-file-cli": "1.0.6",
"prettier": "2.7.1", "prettier": "2.7.1",
"redoc-cli": "0.13.16", "redoc-cli": "0.13.18",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"sinon": "14.0.0", "sinon": "14.0.0",
"sinon-express-mock": "2.2.1", "sinon-express-mock": "2.2.1",
"supertest": "6.2.3", "supertest": "6.2.4",
"typedoc": "0.22.17", "typedoc": "0.22.18",
"typescript": "4.4.4" "typescript": "4.4.4"
}, },
"nyc": { "nyc": {

View File

@@ -101,6 +101,7 @@ configureApp(app, {elasticsearch: Elasticsearch})
// After app setup listen on provided port, on all network interfaces // After app setup listen on provided port, on all network interfaces
server.listen(port); server.listen(port);
}) })
// eslint-disable-next-line unicorn/prefer-top-level-await
.catch(error => { .catch(error => {
throw error; throw error;
}); });

View File

@@ -148,4 +148,4 @@ export const getTransport = (verified: boolean) => {
}; };
export const getIndex = (uid?: string) => export const getIndex = (uid?: string) =>
`stapps_footype_foosource_${uid ? uid : Elasticsearch.getIndexUID(v4())}`; `stapps_footype_foosource_${uid ?? Elasticsearch.getIndexUID(v4())}`;