Changes the following:
- New targets, module and moduleResolution for mods
- Enables `isolatedModules` as this matches the SPT server.
- Includes user/mods in tsconfig.json to allow for mods to be loaded
when a debugger is attached.
- Fixes up the CI cache issue by caching node_modules rather than ~/.npm
- Also explicitly forces it to restore against the same cache key, so
that if package.json is changed a new cache will be created.
Adds missing data to the "view profile" endpoint.
NOTE: Causes severe freezes when viewing the hideout, but this happens
when loading your own too. I think this is a live issue.
- Adds a set of asynchronous cloners able to be used in async methods
- Updates setInterval to await the update before processing a new one.
- Updates various BotGen methods to remove nested promises and removing
a few unnecessary for loops.
Just a precursor refactor to rename "QuestReward" to just "Reward" in a
couple cases, as rewards are common between Quests and Achievements
Future task will expand on this to centralize reward handling
Changes:
- Adds a map for `profiles`
- Changes `onBeforeSaveCallbacks` to be Promises
- Changes `SaveMD5` into `saveSHA1` as the async method for `saveSHA1`
isn't blocking
- Changes all routes and callbacks directly interacting with SaveServer
to be async
---------
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
Instead of always naming new profiles "SPTarkov", use the launcher
username as the default.
This improves the UX as you can quickly click through account creation
on multiple accounts without needing to remember to re-enter a new
profile name for each account
### This depends on #1062
Actual changes in f940ac72b24951fae5abcf548e0a3d4c77640730
---------
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>