feat: migrate backend to cosmiconfig

This commit is contained in:
2023-04-25 15:54:06 +02:00
parent d8c79256c9
commit 0a76427ba8
70 changed files with 1786 additions and 1635 deletions

135
pnpm-lock.yaml generated
View File

@@ -34,6 +34,7 @@ importers:
'@openstapps/prettier-config': workspace:*
'@openstapps/tsconfig': workspace:*
'@testdeck/mocha': 0.3.3
'@types/body-parser': 1.19.2
'@types/chai': 4.3.4
'@types/chai-as-promised': 7.1.5
'@types/config': 3.3.0
@@ -47,16 +48,20 @@ importers:
'@types/node-cron': 3.0.7
'@types/nodemailer': 6.4.7
'@types/promise-queue': 2.2.0
'@types/sinon': 10.0.14
'@types/sinon-express-mock': 1.3.9
'@types/supertest': 2.0.12
'@types/uuid': 8.3.4
'@typescript-eslint/eslint-plugin': 5.49.0
'@typescript-eslint/parser': 5.49.0
body-parser: 1.20.2
c8: 7.13.0
chai: 4.3.7
chai-as-promised: 7.1.1
config: 3.3.9
conventional-changelog-cli: 2.2.2
cors: 2.8.5
cosmiconfig: 8.1.3
cross-env: 7.0.3
eslint: 8.33.0
eslint-config-prettier: 8.6.0
eslint-plugin-jsdoc: 39.7.4
@@ -75,12 +80,11 @@ importers:
node-cache: 5.1.2
node-cron: 3.0.2
nodemailer: 6.9.1
nyc: 15.1.0
prettier: 2.8.6
prom-client: 14.1.1
promise-queue: 2.2.5
redoc-cli: 0.13.20
sinon: 14.0.2
sinon: 15.0.4
sinon-express-mock: 2.2.1
supertest: 6.3.3
ts-node: 10.9.1
@@ -93,8 +97,9 @@ importers:
'@openstapps/core': link:../../packages/core
'@openstapps/core-tools': link:../../packages/core-tools
'@openstapps/logger': link:../../packages/logger
config: 3.3.9
body-parser: 1.20.2
cors: 2.8.5
cosmiconfig: 8.1.3
express: 4.18.2
express-prom-bundle: 6.6.0_prom-client@14.1.1
express-promise-router: 4.1.1_fhep4uswmxibn3567pnkkiq3fa
@@ -116,6 +121,7 @@ importers:
'@openstapps/prettier-config': link:../../configuration/prettier-config
'@openstapps/tsconfig': link:../../configuration/tsconfig
'@testdeck/mocha': 0.3.3
'@types/body-parser': 1.19.2
'@types/chai': 4.3.4
'@types/chai-as-promised': 7.1.5
'@types/config': 3.3.0
@@ -129,14 +135,17 @@ importers:
'@types/node-cron': 3.0.7
'@types/nodemailer': 6.4.7
'@types/promise-queue': 2.2.0
'@types/sinon': 10.0.14
'@types/sinon-express-mock': 1.3.9
'@types/supertest': 2.0.12
'@types/uuid': 8.3.4
'@typescript-eslint/eslint-plugin': 5.49.0_bhfhikta3fu7tua7ac2hrytgwe
'@typescript-eslint/parser': 5.49.0_o2s6jvgtr2hafiobaqfgu6k2l4
c8: 7.13.0
chai: 4.3.7
chai-as-promised: 7.1.1_chai@4.3.7
conventional-changelog-cli: 2.2.2
cross-env: 7.0.3
eslint: 8.33.0
eslint-config-prettier: 8.6.0_eslint@8.33.0
eslint-plugin-jsdoc: 39.7.4_eslint@8.33.0
@@ -145,11 +154,10 @@ importers:
get-port: 5.1.1
mocha: 10.2.0
mocked-env: 1.3.5
nyc: 15.1.0
prettier: 2.8.6
redoc-cli: 0.13.20_ouq63s25oqg3e72zt7ebre7ohe
sinon: 14.0.2
sinon-express-mock: 2.2.1_sinon@14.0.2
sinon: 15.0.4
sinon-express-mock: 2.2.1_sinon@15.0.4
supertest: 6.3.3
tsup: 6.7.0_mwhvu7sfp6vq5ryuwb6hlbjfka
typedoc: 0.23.28_typescript@4.8.4
@@ -236,6 +244,32 @@ importers:
tsup: 6.7.0_mwhvu7sfp6vq5ryuwb6hlbjfka
typedoc: 0.23.28_typescript@4.8.4
configuration/backend-config:
specifiers:
'@openstapps/eslint-config': workspace:*
'@openstapps/prettier-config': workspace:*
'@openstapps/tsconfig': workspace:*
'@typescript-eslint/eslint-plugin': 5.49.0
'@typescript-eslint/parser': 5.49.0
eslint: 8.33.0
eslint-config-prettier: 8.6.0
eslint-plugin-jsdoc: 39.7.4
eslint-plugin-prettier: 4.2.1
eslint-plugin-unicorn: 45.0.2
prettier: 2.8.6
devDependencies:
'@openstapps/eslint-config': link:../eslint-config
'@openstapps/prettier-config': link:../prettier-config
'@openstapps/tsconfig': link:../tsconfig
'@typescript-eslint/eslint-plugin': 5.49.0_bhfhikta3fu7tua7ac2hrytgwe
'@typescript-eslint/parser': 5.49.0_o2s6jvgtr2hafiobaqfgu6k2l4
eslint: 8.33.0
eslint-config-prettier: 8.6.0_eslint@8.33.0
eslint-plugin-jsdoc: 39.7.4_eslint@8.33.0
eslint-plugin-prettier: 4.2.1_2blprs6rvzrjlgi3xqpegp3hoe
eslint-plugin-unicorn: 45.0.2_eslint@8.33.0
prettier: 2.8.6
configuration/eslint-config:
specifiers:
'@typescript-eslint/eslint-plugin': 5.49.0
@@ -5588,12 +5622,6 @@ packages:
engines: {node: '>=14.16'}
dev: false
/@sinonjs/commons/1.8.6:
resolution: {integrity: sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==}
dependencies:
type-detect: 4.0.8
dev: true
/@sinonjs/commons/2.0.0:
resolution: {integrity: sha512-uLa0j859mMrg2slwQYdO/AkrOfmH+X6LTVmNTS9CqexuE2IvVORIkSpJLqePAbEnKJ77aMmCwr1NUZ57120Xcg==}
dependencies:
@@ -5612,20 +5640,6 @@ packages:
'@sinonjs/commons': 2.0.0
dev: true
/@sinonjs/fake-timers/9.1.2:
resolution: {integrity: sha512-BPS4ynJW/o92PUR4wgriz2Ud5gpST5vz6GQfMixEDK0Z8ZCUv2M7SkBLykH56T++Xs+8ln9zTGbOvNGIe02/jw==}
dependencies:
'@sinonjs/commons': 1.8.6
dev: true
/@sinonjs/samsam/7.0.1:
resolution: {integrity: sha512-zsAk2Jkiq89mhZovB2LLOdTCxJF4hqqTToGP0ASWlhp4I1hqOjcfmZGafXntCN7MDC6yySH0mFHrYtHceOeLmw==}
dependencies:
'@sinonjs/commons': 2.0.0
lodash.get: 4.4.2
type-detect: 4.0.8
dev: true
/@sinonjs/samsam/8.0.0:
resolution: {integrity: sha512-Bp8KUVlLp8ibJZrnvq2foVhP0IVX2CIprMJPK0vqGqgrDa0OHVKeZyBykqskkrdxV6yKBPmGasO8LVjAKR3Gew==}
dependencies:
@@ -5763,7 +5777,7 @@ packages:
resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==}
dependencies:
'@types/connect': 3.4.35
'@types/node': 18.15.5
'@types/node': 18.15.3
/@types/bonjour/3.5.10:
resolution: {integrity: sha512-p7ienRMiS41Nu2/igbJxxLDWrSZ0WxM8UQgCeO9KhoVF7cOVFkrKsiDr1EsJIla8vV3oEEjGcz11jc5yimhzZw==}
@@ -5816,7 +5830,7 @@ packages:
/@types/connect/3.4.35:
resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}
dependencies:
'@types/node': 18.15.5
'@types/node': 18.15.3
/@types/cookie/0.4.1:
resolution: {integrity: sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q==}
@@ -6117,13 +6131,7 @@ packages:
resolution: {integrity: sha512-wHtSYqZ/c1FytL4qEMVb3tp8UZk1EnUq6Qc4jQv5eJ9N2QtFdS4WU3Wijqzeu5r3/DfZqpvzkxbbZLa0+9F9sA==}
dependencies:
'@types/express': 4.17.16
'@types/sinon': 10.0.13
dev: true
/@types/sinon/10.0.13:
resolution: {integrity: sha512-UVjDqJblVNQYvVNUsj0PuYYw0ELRmgt1Nt5Vk0pT5f16ROGfcKJY8o1HVuMOJOpD727RrGB9EGvoaTQE5tgxZQ==}
dependencies:
'@types/sinonjs__fake-timers': 8.1.2
'@types/sinon': 10.0.14
dev: true
/@types/sinon/10.0.14:
@@ -7455,6 +7463,25 @@ packages:
transitivePeerDependencies:
- supports-color
/body-parser/1.20.2:
resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==}
engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16}
dependencies:
bytes: 3.1.2
content-type: 1.0.5
debug: 2.6.9
depd: 2.0.0
destroy: 1.2.0
http-errors: 2.0.0
iconv-lite: 0.4.24
on-finished: 2.4.1
qs: 6.11.0
raw-body: 2.5.2
type-is: 1.6.18
unpipe: 1.0.0
transitivePeerDependencies:
- supports-color
/bonjour/3.5.0:
resolution: {integrity: sha512-RaVTblr+OnEli0r/ud8InrU7D+G0y6aJhlxaLa6Pwty4+xoxboF1BsUI45tujvRpbj9dQVoglChqonGAsjEBYg==}
dependencies:
@@ -8684,6 +8711,16 @@ packages:
path-type: 4.0.0
dev: true
/cosmiconfig/8.1.3:
resolution: {integrity: sha512-/UkO2JKI18b5jVMJUp0lvKFMpa/Gye+ZgZjKD+DGEN9y7NRcf/nK1A0sp67ONmKtnDCNMS44E6jrk0Yc3bDuUw==}
engines: {node: '>=14'}
dependencies:
import-fresh: 3.3.0
js-yaml: 4.1.0
parse-json: 5.2.0
path-type: 4.0.0
dev: false
/cpu-features/0.0.4:
resolution: {integrity: sha512-fKiZ/zp1mUwQbnzb9IghXtHtDoTMtNeb8oYGx6kX2SYfhnG0HNdBEBIzB9b5KlXu5DQPhfy3mInbBxFcgwAr3A==}
engines: {node: '>=10.0.0'}
@@ -8736,6 +8773,14 @@ packages:
pretty-bytes: 5.6.0
dev: true
/cross-env/7.0.3:
resolution: {integrity: sha512-+/HKd6EgcQCJGh2PSjZuUitQBQynKor4wrFbRg4DtAgS1aWO+gU52xpH7M9ScGgXSYmAVS9bIJ8EzuaGw0oNAw==}
engines: {node: '>=10.14', npm: '>=6', yarn: '>=1'}
hasBin: true
dependencies:
cross-spawn: 7.0.3
dev: true
/cross-spawn/5.1.0:
resolution: {integrity: sha512-pTgQJ5KC0d2hcY8eyL1IzlBPYjTkyH72XRZPnLyKus2mBfNjQs3klqbJU2VILqZryAZUt9JOb3h/mWMy23/f5A==}
dependencies:
@@ -12712,7 +12757,7 @@ packages:
hasBin: true
dependencies:
'@colors/colors': 1.5.0
body-parser: 1.20.1
body-parser: 1.20.2
braces: 3.0.2
chokidar: 3.5.3
connect: 3.7.0
@@ -15874,7 +15919,6 @@ packages:
http-errors: 2.0.0
iconv-lite: 0.4.24
unpipe: 1.0.0
dev: true
/rc/1.2.8:
resolution: {integrity: sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==}
@@ -16883,23 +16927,12 @@ packages:
sinon: 15.0.4
dev: true
/sinon-express-mock/2.2.1_sinon@14.0.2:
/sinon-express-mock/2.2.1_sinon@15.0.4:
resolution: {integrity: sha512-z1wqaPMwEnfn0SpigFhVYVS/ObX1tkqyRzRdccX99FgQaLkxGSo4684unr3NCqWeYZ1zchxPw7oFIDfzg1cAjg==}
peerDependencies:
sinon: '*'
dependencies:
sinon: 14.0.2
dev: true
/sinon/14.0.2:
resolution: {integrity: sha512-PDpV0ZI3ZCS3pEqx0vpNp6kzPhHrLx72wA0G+ZLaaJjLIYeE0n8INlgaohKuGy7hP0as5tbUd23QWu5U233t+w==}
dependencies:
'@sinonjs/commons': 2.0.0
'@sinonjs/fake-timers': 9.1.2
'@sinonjs/samsam': 7.0.1
diff: 5.1.0
nise: 5.1.4
supports-color: 7.2.0
sinon: 15.0.4
dev: true
/sinon/15.0.4: