feat: Full rework of account management

Complete rewrite of the account management and related systems.
Makes the architecture more modular,
allowing for easier extensions and configurations.
This commit is contained in:
Joachim Van Herwegen
2022-03-16 10:12:13 +01:00
parent ade977bb4f
commit a47f5236ef
366 changed files with 12345 additions and 5111 deletions

View File

@@ -5,6 +5,7 @@ import Describe = jest.Describe;
const portNames = [
// Integration
'Accounts',
'AcpServer',
'Conditions',
'ContentNegotiation',
@@ -48,7 +49,9 @@ export function getPort(name: typeof portNames[number]): number {
if (idx < 0) {
throw new Error(`Unknown port name ${name}`);
}
return 6000 + idx;
// 6000 is a bad port, causing node v18+ to block fetch requests targeting such a URL
// https://fetch.spec.whatwg.org/#port-blocking
return 6000 + idx + 1;
}
export function getSocket(name: typeof socketNames[number]): string {