Commit graph

419 commits

Author SHA1 Message Date
Kir_Antipov
254c18a087 Made use of custom fetch in CurseForgeUploader 2024-01-12 17:29:35 +03:00
Kir_Antipov
1d6cb47d45 Added fetch to the generic uploader options
This allows us to have better control over the behavior of a generic uploader.
2024-01-12 17:28:01 +03:00
Kir_Antipov
dfd4e9ac5b Fixed getOwnEntries for arrays 2024-01-12 17:25:09 +03:00
Kir_Antipov
0ebd21131f In some rare cases even cached body can be used 2024-01-12 17:23:34 +03:00
Kir_Antipov
4b559b054a Fixed HttpResponseOptions being ignored
The problem here is that the spread operator doesn't work with getters.
Thus, if an instance implementing the `HttpResponseOptions` interface with getters instead of regular readonly fields is supplied to the method, it won't function as expected, even though TypeScript's static typing indicates that everything should be fine.
2024-01-12 17:21:36 +03:00
Kir_Antipov
577191382f Made .redirect() respect the provided options 2024-01-12 17:16:00 +03:00
Kir_Antipov
78c153f935 Never set multipart/form-data manually, kids
Why did I do this?
2024-01-12 17:13:45 +03:00
Kir_Antipov
814b583fb0 Fixed the return type of isReadableStream
Previously, it would return `undefined` instead of `false` when `stream` was undefined.
2024-01-12 17:10:36 +03:00
Kir_Antipov
c35cdf9d6f Fixed Content-Length not being a string 2024-01-12 17:09:24 +03:00
Kir_Antipov
8c5467ce2d Added proper support for MultiMap to getHeader 2024-01-12 17:06:15 +03:00
Kir_Antipov
cf2e81d32f MultiMap handles string values a bit better now 2024-01-12 17:04:17 +03:00
Kir_Antipov
d62de05339 Fixed null-handling in the IDENTITY path parser 2024-01-12 17:02:28 +03:00
Kir_Antipov
c6583524f5 Converted ActionParameterFactoryOptions to Enum 2024-01-12 17:01:08 +03:00
Kir_Antipov
6972e71bc3 Tweaked error message to better align with others 2024-01-12 16:59:46 +03:00
Kir_Antipov
baebb4e594 Added missing branch for CONFLICTING dependencies 2024-01-12 16:56:57 +03:00
Kir_Antipov
ee9458a1c4 Forgot to normalize the response as undefined 2024-01-12 16:53:50 +03:00
Kir_Antipov
ef46ac5abb /projects now supports IDs **and** slugs
Yay!
2024-01-12 16:52:16 +03:00
Kir_Antipov
940eefb550 Fixed null-handling in game version comparers 2024-01-12 16:50:31 +03:00
Kir_Antipov
43b1ff503e getProject no longer returns inaccurate results 2024-01-12 16:49:03 +03:00
Kir_Antipov
4ea0380bed Fixed the return type of isCurseForgeError
Previously, it would return `undefined` instead of `false` when `error` was undefined.
2024-01-12 16:47:25 +03:00
Kir_Antipov
f9620d09b5 Fixed version normalization for legacy versions 2024-01-12 16:42:11 +03:00
Kir_Antipov
926b1a264b Fixed regex generator returning non-global RegExp 2024-01-12 16:41:12 +03:00
Kir_Antipov
915ab6b52b Fixed range normalizer returning undefined 2024-01-12 16:39:30 +03:00
Kir_Antipov
49c8e7d535 Added missing April Fools' versions to the lookup 2024-01-12 16:37:25 +03:00
Kir_Antipov
d6b6d194df Changed game-version-filter value to releases
The legacy behavior I tried to imitate only caused confusion.
So, let's finally leave it in the past.
2024-01-04 20:21:37 +03:00
Kir_Antipov
6e1bcb10b6 Fixed wildcard range parsing
Fixes #91
2024-01-03 22:00:13 +03:00
Kir_Antipov
0a3874adee Better NeoForge support
Closes #85
2024-01-03 21:30:24 +03:00
Kir_Antipov
b34393cfcd Fixed version resolution in releaseless context
Fixes #78
2024-01-03 20:32:59 +03:00
Kir_Antipov
86e7074aca Fixed GitHub Release changelog overrides
Fixes #77
Fixes #90
2024-01-03 20:08:21 +03:00
Kir_Antipov
689f343a8c Added filter for duplicate dependencies
Fixes #72
2024-01-03 19:20:40 +03:00
Kir_Antipov
69d94c54c3 CurseForge accepts loaders only for mods
Fixes #69
2023-05-30 15:43:48 +03:00
Kir_Antipov
9cf54a3e8c Logger should use friendly names of the platforms 2023-05-20 15:50:41 +03:00
Kir_Antipov
cf1e5a95bb Added id validation to CurseForge and Modrinth uploaders 2023-05-20 15:27:49 +03:00
Kir_Antipov
48e56214c9 id can be read from metadata again 2023-05-20 15:21:21 +03:00
Kir_Antipov
4cf81648dc Fixed default value resolution in ModrinthUploader 2023-05-20 15:11:48 +03:00
Kir_Antipov
98e9aced20 Removed unnecessary async 2023-05-20 15:10:21 +03:00
Kir_Antipov
4823b4cc14 Added strip script 2023-05-20 15:06:14 +03:00
Kir_Antipov
1e6391f5b5 Added ability to remove custom fields from action metadata 2023-05-20 15:05:32 +03:00
Kir_Antipov
5cb5700273 Fixed default GameVersionProvider resolution 2023-05-20 09:35:51 +03:00
Kir_Antipov
963eeb46a6 Fixed jest throwing segfault 2023-05-19 22:46:04 +03:00
Kir_Antipov
6660bf50b0 Forgot to switch testing environment to Node16 2023-05-19 22:13:46 +03:00
Kir_Antipov
a025f91151 Build should occur before the tests 2023-05-19 22:11:43 +03:00
Kir_Antipov
522691bdbe Fixed tests 2023-05-19 22:10:58 +03:00
osfanbuff63
15063f1680
Fix CI shield erroring (#43)
Fix CI shield erroring (#43)

Co-authored-by: Kir_Antipov <40232067+Kir-Antipov@users.noreply.github.com>
2023-05-19 21:59:36 +03:00
Kir_Antipov
a28c807d04 Bump version 2023-05-19 21:55:41 +03:00
Kir_Antipov
0a96deb961 Updated build process 2023-05-19 21:37:49 +03:00
Kir_Antipov
ad5de51320 Why? 2023-05-19 21:37:31 +03:00
Kir_Antipov
fa0f3a8575 Fixed relative path to action metadata 2023-05-19 21:37:22 +03:00
Kir_Antipov
3be1188291 Fixed compilation issues 2023-05-19 21:23:15 +03:00
Kir_Antipov
f661d75590 Bump deps 2023-05-19 20:43:10 +03:00