Commit graph

335 commits

Author SHA1 Message Date
Kir_Antipov
f67c962726 Made an interface that represents a game version 2023-05-17 18:24:24 +03:00
Kir_Antipov
344239c2fc Added loaders module 2023-05-17 18:13:56 +03:00
Kir_Antipov
5a20150e0a Implemented generic metadata reader logic 2023-05-17 18:13:25 +03:00
Kir_Antipov
f029df1567 Added loaders/quilt module 2023-05-17 18:12:07 +03:00
Kir_Antipov
ad769f1e9c Made a reader for Quilt metadata 2023-05-17 18:11:22 +03:00
Kir_Antipov
547d8d486e Implemented class that represents Quilt metadata 2023-05-17 18:10:27 +03:00
Kir_Antipov
0fec2613dd Implemented logic to work with Quilt dependencies 2023-05-17 18:09:43 +03:00
Kir_Antipov
258fcd856c Made an interface for custom Quilt payload 2023-05-17 18:09:07 +03:00
Kir_Antipov
fec83e6fd7 Made an interface that represents quilt.mod.json 2023-05-17 18:07:34 +03:00
Kir_Antipov
c178ef3187 Made an interface that represents Quilt plugin 2023-05-17 18:06:49 +03:00
Kir_Antipov
c430f69877 Made an interface that represents license entry in quilt.mod.json 2023-05-17 18:06:19 +03:00
Kir_Antipov
71525b9c9f Added enum for Quilt environment types 2023-05-17 18:05:30 +03:00
Kir_Antipov
8df878c5ba Made an interface that represents contact info in quilt.mod.json 2023-05-17 18:05:00 +03:00
Kir_Antipov
cdc3fe4ccd Added loaders/forge module 2023-05-17 18:03:45 +03:00
Kir_Antipov
0da00d434a Made a reader for Forge metadata 2023-05-17 18:03:09 +03:00
Kir_Antipov
0696b03d05 Implemented class that represents Forge metadata 2023-05-17 18:02:33 +03:00
Kir_Antipov
941d8a6ec8 Implemented logic to work with Forge dependencies 2023-05-17 18:00:57 +03:00
Kir_Antipov
3b1b7d40f7 Made an interface that represents mods.toml 2023-05-17 17:59:48 +03:00
Kir_Antipov
47e35aa836 Made an interface for custom Forge payload 2023-05-17 17:58:54 +03:00
Kir_Antipov
89873779da Made an interface that represents Forge mod 2023-05-17 17:58:06 +03:00
Kir_Antipov
56083ad40b Added enum for Forge environment types 2023-05-17 17:57:32 +03:00
Kir_Antipov
a8cce57c4b Made base classes for zip-based metadata readers 2023-05-17 17:56:59 +03:00
Kir_Antipov
917a5130f1 Made enum for every known loader 2023-05-17 17:55:45 +03:00
Kir_Antipov
74cdd685f2 Made an interface that represents loader metadata 2023-05-17 17:55:03 +03:00
Kir_Antipov
70f9bb433c Added loaders/fabric module 2023-05-17 17:53:36 +03:00
Kir_Antipov
ba8817193b Made a reader for Fabric metadata 2023-05-17 17:53:14 +03:00
Kir_Antipov
8987e70c81 Implemented class that represents Fabric metadata 2023-05-17 17:52:07 +03:00
Kir_Antipov
db8de4020f Made an interface for custom Fabric payload 2023-05-17 17:50:23 +03:00
Kir_Antipov
26ea239670 Implemented logic to work with Fabric dependencies 2023-05-17 17:49:10 +03:00
Kir_Antipov
e8fdb3c1fa Made an interface that represents fabric.mod.json 2023-05-17 17:48:13 +03:00
Kir_Antipov
e6ec53ad5a Added enum for Fabric environment types 2023-05-17 17:46:04 +03:00
Kir_Antipov
beb1ecac69 Made an interface that represents a Fabric dev 2023-05-17 17:45:07 +03:00
Kir_Antipov
e01ab65997 Made an interface that represents contact info in fabric.mod.json 2023-05-17 17:44:16 +03:00
Kir_Antipov
fbb153c879 Added enum for Fabric dependency types 2023-05-17 17:43:18 +03:00
Kir_Antipov
4f60d7b56d Added dependencies module 2023-05-17 17:41:50 +03:00
Kir_Antipov
002d721497 Implemented logic to work with dependencies 2023-05-17 17:41:24 +03:00
Kir_Antipov
989ccf0c87 Made DependencyType enum 2023-05-17 17:39:10 +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
Kir_Antipov
fc540e9a73 Added typescript module 2023-05-17 16:12:55 +03:00
Kir_Antipov
9f6c205d8b Made class that represents a TypeScript document 2023-05-17 16:12:22 +03:00
Kir_Antipov
a0ed649c8a Made class that represents a TypeScript interface 2023-05-17 16:11:45 +03:00
Kir_Antipov
5b17642f5b Made class that represents a TypeScript object 2023-05-17 16:11:18 +03:00
Kir_Antipov
4ae0d79053 Made class that represents a TypeScript property 2023-05-17 16:10:44 +03:00
Kir_Antipov
9b912e2e56 Made interface that represents a TypeScript member 2023-05-17 16:09:52 +03:00
Kir_Antipov
71dd0983cb Made type that represents access modifier 2023-05-17 16:08:38 +03:00
Kir_Antipov
31402598d4 Made class that represents type union 2023-05-17 16:08:00 +03:00
Kir_Antipov
795bc06542 Made class that represents type intersection 2023-05-17 16:03:17 +03:00
Kir_Antipov
755c51fa61 Implemented class that represents type alias 2023-05-17 16:02:03 +03:00
Kir_Antipov
cec0b14ff4 Implemented class that represents type literal 2023-05-17 16:01:39 +03:00
Kir_Antipov
c0cacb57b1 Made an interface that represents type definition 2023-05-17 16:00:17 +03:00
Kir_Antipov
0c09b68595 Made a class that represents TypeScript variable 2023-05-17 15:58:48 +03:00
Kir_Antipov
2d6d4c860f Made a class that represents a group of TypeScript imports 2023-05-17 15:58:00 +03:00
Kir_Antipov
7f4c9a6d6e Made a class that represents TypeScript import 2023-05-17 15:57:15 +03:00
Kir_Antipov
24770a1296 Made a class that represents TypeScript export 2023-05-17 15:56:39 +03:00
Kir_Antipov
d00ce8f984 Implemented base class for TypeScript nodes 2023-05-17 15:55:34 +03:00
Kir_Antipov
456ccf5ef0 Made an interface for commentable TypeScript nodes 2023-05-17 15:54:31 +03:00
Kir_Antipov
2ad455bf3f Made class that represents TypeScript comments 2023-05-17 15:53:48 +03:00
Kir_Antipov
5392ce7147 Made base interface for TypeScript nodes 2023-05-17 15:52:51 +03:00
Kir_Antipov
4f0a182734 Made options for formatting TypeScript documents 2023-05-17 15:52:16 +03:00
Kir_Antipov
70b1eedf91 Added versioning module 2023-05-17 15:48:33 +03:00
Kir_Antipov
5e957f45ba Presented ability to parse and use version ranges 2023-05-17 15:47:39 +03:00
Kir_Antipov
4bbd4cc2d9 Version refactoring 2023-05-17 15:46:26 +03:00
Kir_Antipov
17bc59ff61 VersionType refactoring 2023-05-17 15:45:22 +03:00
Kir_Antipov
5381af88ee Added io module 2023-05-17 15:41:39 +03:00
Kir_Antipov
b9dc319a1e File (-> FileInfo) refactoring 2023-05-17 15:41:18 +03:00
Kir_Antipov
79519efc22 Made a few utility types for writeFile options 2023-05-17 15:39:27 +03:00
Kir_Antipov
88b6d0607a Made a few utility types for readFile options 2023-05-17 15:39:07 +03:00
Kir_Antipov
49ccf5b5a2 Made a few FilePath-like utility types 2023-05-17 15:38:21 +03:00
Kir_Antipov
3367d6a02d This *generates* warnings for auto-*generated* content
*Did you get it?*
2023-05-17 15:35:47 +03:00
Kir_Antipov
cc3f33cdb2 Made a module focused on conversion 2023-05-17 15:33:21 +03:00
Kir_Antipov
9d7bf0f627 Moved sleep and retry to async-utils
Also, made a few more helper methods
2023-05-17 15:31:47 +03:00
Kir_Antipov
9ca1e9f0d9 Moved FailMode to its own file 2023-05-17 15:29:47 +03:00
Kir_Antipov
5a2e5f176c Added enum module 2023-05-17 15:25:02 +03:00
Kir_Antipov
64f717d127 Implemented Object-like Enum interface 2023-05-17 15:24:43 +03:00
Kir_Antipov
5fe6c0ba36 Implemented DynamicEnum 2023-05-17 15:23:26 +03:00
Kir_Antipov
8e382c9ed5 Defined default enum separators 2023-05-17 15:22:24 +03:00
Kir_Antipov
a2288eeefa Made a function to retrieve enum entries 2023-05-17 15:19:44 +03:00
Kir_Antipov
003f5fbab4 Made a function to retrieve enum values 2023-05-17 15:19:17 +03:00
Kir_Antipov
1d0d5c6cff Made a function to retrieve enum keys 2023-05-17 15:12:25 +03:00
Kir_Antipov
0a98e5a66a Added enum/descriptors module 2023-05-17 15:09:55 +03:00
Kir_Antipov
1afbf2483e Implemented enum descriptor instantiation logic 2023-05-17 15:09:26 +03:00
Kir_Antipov
41d4de590e Implemented enum descriptor for string enums 2023-05-17 15:04:39 +03:00
Kir_Antipov
e16de98226 Implemented enum descriptor for boolean enums 2023-05-17 14:56:15 +03:00
Kir_Antipov
874b950fdf Implemented enum descriptor for bigint enums 2023-05-17 14:55:42 +03:00
Kir_Antipov
6256d33db6 Implemented enum descriptor for number enums 2023-05-17 14:55:09 +03:00
Kir_Antipov
33da1eacff Made base interface for enum descriptors 2023-05-17 14:53:50 +03:00
Kir_Antipov
8db475ab28 Added reflection module 2023-05-16 20:39:48 +03:00
Kir_Antipov
ccd4319b20 Made ImportDirective for dynamic import purposes 2023-05-16 20:39:20 +03:00
Kir_Antipov
491aa11ac5 Made ModuleLoader interface
And added 2 default implementations:

 - `NODE_MODULE_LOADER` - uses `import` under the hood
  - `DYNAMIC_MODULE_LOADER` - will be able to load modules needed in other parts of this project. Currently it's just a stub
2023-05-16 20:37:39 +03:00
Kir_Antipov
fd2975b30b Implemented more reflection-specific helpers 2023-05-16 20:34:43 +03:00
Kir_Antipov
919bc5d68e Added errors module 2023-05-16 20:30:15 +03:00
Kir_Antipov
c566a4cfec Implemented HttpError 2023-05-16 20:28:31 +03:00
Kir_Antipov
3f8d7d2115 Made SoftError for recoverable errors 2023-05-16 20:26:09 +03:00
Kir_Antipov
3fe2a3fdc9 Made a helper method to check if an object is an error 2023-05-16 20:25:04 +03:00
Kir_Antipov
5892ef60d8 Implemented FileNotFoundError 2023-05-16 20:23:02 +03:00
Kir_Antipov
8f97d4aee6 Implemented ArgumentNullError 2023-05-16 20:21:45 +03:00
Kir_Antipov
ab8f3468ca Implemented ArgumentError 2023-05-16 20:20:55 +03:00
Kir_Antipov
c56b60c966 Added security module 2023-05-16 20:17:55 +03:00
Kir_Antipov
2243945d3a Made a class that protects a string from being exposed 2023-05-16 20:17:23 +03:00
Kir_Antipov
a656c86e4a Added collections module 2023-05-16 20:09:53 +03:00
Kir_Antipov
fc0a818902 Made ArrayMap and MultiMap
`ArrayMap` is a map implementation which can use custom equality comparers

`MultiMap` is mostly an alias for `Map<K, V[]>`, but with some extra methods
2023-05-16 20:09:20 +03:00
Kir_Antipov
bddf78c669 Made ArraySet
A set implementation which can use custom equality comparers
2023-05-16 20:07:37 +03:00
Kir_Antipov
97a17208b2 Implemented array-like methods for iterables 2023-05-16 20:06:09 +03:00
Kir_Antipov
af85b577f1 Made an interface for all key-value iterables out there 2023-05-16 20:02:22 +03:00
Kir_Antipov
e3439aa021 Added types module 2023-05-16 19:58:58 +03:00
Kir_Antipov
67b5bcbf85 Made an alias for Partial<Record<K, V>> 2023-05-16 19:57:41 +03:00
Kir_Antipov
1967a52df9 Added a type that unwraps constructor parameters 2023-05-16 19:56:28 +03:00
Kir_Antipov
e473e4b641 Made a type to help me use generics as record keys 2023-05-16 19:54:56 +03:00
Kir_Antipov
2c2bcb4de7 Added a type that unwraps constructor return type 2023-05-16 19:53:51 +03:00
Kir_Antipov
f436b151aa Added a type that unwraps promises 2023-05-16 19:52:48 +03:00
Kir_Antipov
6e27f6c851 Made a type to indicate that await should be used 2023-05-16 19:51:43 +03:00
Kir_Antipov
09d0d25fdc Made a type that converts unions to intersections 2023-05-16 19:49:38 +03:00
Kir_Antipov
2ab31e0c32 Made a transpile-time version of typeof 2023-05-16 19:48:37 +03:00
Kir_Antipov
13a303ce8d Added logging module 2023-05-16 19:45:41 +03:00
Kir_Antipov
d60d8f63f3 LoggingStopwatch refactoring 2023-05-16 19:45:06 +03:00
Kir_Antipov
0cf4831003 Added diagnostics module 2023-05-16 19:43:36 +03:00
Kir_Antipov
d1b07fe763 Stopwatch refactoring 2023-05-16 19:42:49 +03:00
Kir_Antipov
a33f82afe1 Updated logger instantiation logic 2023-05-16 19:40:10 +03:00
Kir_Antipov
d043e7f23f Added a logger that writes logs to stdout 2023-05-16 19:38:46 +03:00
Kir_Antipov
19993c6f5b Added a logger that writes logs to the console 2023-05-16 19:37:21 +03:00
Kir_Antipov
65cb51a963 Implemented classic NullLogger 2023-05-16 19:35:58 +03:00
Kir_Antipov
9b882c411e Made helper methods to work with environment 2023-05-16 19:31:41 +03:00
Kir_Antipov
f1bd102e19 Added comparison module 2023-05-16 19:27:13 +03:00
Kir_Antipov
ef099bc69f Implemented default equality comparers for strings 2023-05-16 19:26:36 +03:00
Kir_Antipov
c6214a811a Made some helper methods to work with strings 2023-05-16 19:24:54 +03:00
Kir_Antipov
89d56de5e4 Implemented default comparers for strings 2023-05-16 19:22:08 +03:00
Kir_Antipov
d1b1ed9a16 Implemented comparers 2023-05-16 19:20:11 +03:00
Kir_Antipov
a537525099 Implemented equality comparers 2023-05-16 19:18:32 +03:00