]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(sandcastle): resolve TDZ in strategies/index.ts module init
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 18 May 2026 00:54:16 +0000 (02:54 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 18 May 2026 00:54:16 +0000 (02:54 +0200)
commit829c6599237170f09d37d2124202bf1aa61d0420
treea79159df49c87b6743a5f9a0cd7d8c100561de77
parent5d430ad4b09351c66730e58283efb0a1e9d7cd83
fix(sandcastle): resolve TDZ in strategies/index.ts module init

Move the file-private validation regexes `STRATEGY_KEY_PATTERN` and
`CONTROL_TAG_PATTERN` (with their JSDoc verbatim) above the eager call
`STRATEGY_BY_KEY = indexByKey(STRATEGY_REGISTRY)`, so they are
initialized before `indexByKey` reads them at module evaluation.
.sandcastle/strategies/index.ts