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>
Removes the auto-install mod dependencies feature, the related messages,
and the configuration option.
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
This updates the `exec` calls in the build script to use `spawn` instead
for better argument handling. Resolves an issue that caused spaces in
build paths to kill the build.
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
- Removes a test for a class that was removed
- Changes the command for type checking from `lint:types` to
`type-check`
---------
Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
This should make every part that uses `loadAsync` asynchronous
The changes I made:
- I ended up creating a new method to make SHA-1 hashes asynchronously,
did up some reading up and found that `crypto.createHash` could
potentially be blocking.
- Ended up doing some slight code cleanup in `ImporterUtil` to make that
helper more readable.
- I changed `deserializeWithCacheCheckAsync` to skip writing files with
an extra parameter as it was blocking, this can now be called manually
with `writeCacheAsync` (Default behavior of this method stays the same)
Refactor of Create profile code into own service
Updated `addHideoutCustomisationLock` to use enums for parameters + refactored logic
Removed redundant `HideoutCustomizationGen` script