mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-13 19:33:46 +00:00
Chore/remove got dependency (#1667)
* Refactor: Remove GOT dependency, use simplified fetch wrapper Replaced GOT with a lightweight, functional, fetch-based utility (`appClient.ts`) for handling JSON POST requests in `SheetService.ts`. - Created `appClient.ts` to encapsulate fetch logic. It mimics GOT's behavior for sending JSON payloads and parsing JSON responses. - Error handling in `appClient.ts` uses standard `Error` objects with descriptive messages, including status and error body details, instead of custom error types. - Updated `SheetService.ts` to use the new `appClient.ts`. - Removed `got` from server dependencies. * cleanup * dont throw when we know the error * rearange logging --------- Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com> Co-authored-by: arc-alex <ac@omnivox.dk>
This commit is contained in:
@@ -16,7 +16,6 @@
|
||||
"multer": "2.0.1",
|
||||
"fast-equals": "^5.0.1",
|
||||
"google-auth-library": "^9.4.2",
|
||||
"got": "^14.4.5",
|
||||
"lowdb": "^7.0.1",
|
||||
"ontime-utils": "workspace:*",
|
||||
"osc-min": "2.1.2",
|
||||
|
||||
Reference in New Issue
Block a user