Commit graph

178 commits

Author SHA1 Message Date
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
6e1bcb10b6 Fixed wildcard range parsing
Fixes #91
2024-01-03 22:00:13 +03:00
Kir_Antipov
1e6391f5b5 Added ability to remove custom fields from action metadata 2023-05-20 15:05:32 +03:00
Kir_Antipov
ad5de51320 Why? 2023-05-19 21:37:31 +03:00
Kir_Antipov
3be1188291 Fixed compilation issues 2023-05-19 21:23:15 +03:00
Kir_Antipov
a4e93b6ce5 Autogen 2023-05-19 20:40:51 +03:00
Kir_Antipov
e7368e858a Deleted obsolete files 2023-05-19 20:30:15 +03:00
Kir_Antipov
dba28c84f8 ESLint update 2023-05-19 20:24:56 +03:00
Kir_Antipov
650ca179f4 Enhanced conversion logic 2023-05-19 16:49:51 +03:00
Kir_Antipov
149430bbe9 Implemented getSafe method 2023-05-19 16:48:48 +03:00
Kir_Antipov
de17c8b440 Added JSON-serialization logic to FileInfo 2023-05-19 16:47:30 +03:00
Kir_Antipov
1d8d9fdb7c Implemented ErrorBuilder class 2023-05-18 00:15:36 +03:00
Kir_Antipov
20e88826d4 Moved FailMode to errors 2023-05-18 00:14:39 +03:00
Kir_Antipov
0dd215e0d7 Moved modrinth module 2023-05-17 19:52:33 +03:00
Kir_Antipov
19fc58d31e Moved curseforge module 2023-05-17 19:29:37 +03:00
Kir_Antipov
4fe03788fb Moved minecraft module 2023-05-17 19:07:00 +03:00
Kir_Antipov
40ffa003d6 Deprecated GameVersionResolver
It was replaced with `GameVersionFilter`
2023-05-17 18:51:06 +03:00
Kir_Antipov
a7049ca420 Added actions module 2023-05-17 17:34:29 +03:00
Kir_Antipov
21333ee75b Made a bunch of utility methods to work with Action metadata 2023-05-17 17:33:46 +03:00
Kir_Antipov
938329d6a1 Made an interface for Action groups 2023-05-17 17:10:49 +03:00
Kir_Antipov
66864a7bb0 Implemented logic focused on Action outputs 2023-05-17 17:10:17 +03:00
Kir_Antipov
d3fd45c724 Made descriptors for Action outputs 2023-05-17 17:08:32 +03:00
Kir_Antipov
51993a38bf Refactored logic focused on Action inputs 2023-05-17 17:07:38 +03:00
Kir_Antipov
cd1c9650f3 Made descriptors for Action inputs 2023-05-17 17:06:54 +03:00
Kir_Antipov
7005ded4ee Made descriptors for Action parameters themselves 2023-05-17 17:03:17 +03:00
Kir_Antipov
661974ccb8 Made enum for known parameter factory options 2023-05-17 17:01:34 +03:00
Kir_Antipov
c2a959f05a Made a few path parsers for Action parameters 2023-05-17 17:00:49 +03:00
Kir_Antipov
4dd97a775d Added type descriptors for Action parameters 2023-05-17 16:59:52 +03:00
Kir_Antipov
e55d6ffbda Made an interface that represents Action parameter 2023-05-17 16:57:56 +03:00
Kir_Antipov
7780bda3f1 Added net module 2023-05-17 16:55:01 +03:00
Kir_Antipov
25f06b7d0a Made a couple useful middlewares for fetch 2023-05-17 16:54:34 +03:00
Kir_Antipov
5e2adc2d09 Implemented fetch wrapper 2023-05-17 16:53:45 +03:00
Kir_Antipov
456c90f4dc Made utility methods to work with HTTP responses 2023-05-17 16:34:16 +03:00
Kir_Antipov
af1454f551 Made utility methods to work with HTTP requests 2023-05-17 16:33:02 +03:00
Kir_Antipov
fd361a63f5 Made utility methods to work with HTTP headers 2023-05-17 16:26:58 +03:00
Kir_Antipov
0def4d2bde Made utility methods to work with HTTP body 2023-05-17 16:25:30 +03:00
Kir_Antipov
74209e3e82 Made better version of URLSearchParams 2023-05-17 16:24:07 +03:00
Kir_Antipov
a9b10f3150 Made utility methods to work with FormData 2023-05-17 16:18:52 +03:00
Kir_Antipov
08e57faf6c Made utility methods to work with HTTP methods 2023-05-17 16:16:11 +03:00
Kir_Antipov
c8e9e38b03 Made utility methods to work with Blob 2023-05-17 16:14:49 +03:00