mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-04 15:08:01 +00:00
ce449408f0
* 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>
68 lines
2.2 KiB
JSON
68 lines
2.2 KiB
JSON
{
|
|
"name": "ontime-server",
|
|
"type": "module",
|
|
"main": "src/index.ts",
|
|
"version": "3.15.2",
|
|
"exports": "./src/index.js",
|
|
"dependencies": {
|
|
"@googleapis/sheets": "^5.0.5",
|
|
"cookie": "1.0.2",
|
|
"cookie-parser": "1.4.7",
|
|
"cors": "2.8.5",
|
|
"dotenv": "^16.0.1",
|
|
"express": "5.1.0",
|
|
"express-static-gzip": "3.0.0",
|
|
"express-validator": "7.2.1",
|
|
"multer": "2.0.1",
|
|
"fast-equals": "^5.0.1",
|
|
"google-auth-library": "^9.4.2",
|
|
"lowdb": "^7.0.1",
|
|
"ontime-utils": "workspace:*",
|
|
"osc-min": "2.1.2",
|
|
"sanitize-filename": "^1.6.3",
|
|
"steno": "^4.0.2",
|
|
"ws": "^8.18.0",
|
|
"xlsx": "^0.18.5"
|
|
},
|
|
"devDependencies": {
|
|
"@types/cookie-parser": "1.4.9",
|
|
"@types/cors": "2.8.19",
|
|
"@types/express": "5.0.3",
|
|
"@types/multer": "1.4.13",
|
|
"@types/node": "catalog:",
|
|
"@types/websocket": "^1.0.5",
|
|
"@types/ws": "^8.5.10",
|
|
"@typescript-eslint/eslint-plugin": "catalog:",
|
|
"@typescript-eslint/parser": "catalog:",
|
|
"esbuild": "^0.24.0",
|
|
"eslint": "catalog:",
|
|
"eslint-plugin-prettier": "catalog:",
|
|
"ontime-types": "workspace:*",
|
|
"prettier": "catalog:",
|
|
"server-timing": "^3.3.3",
|
|
"shx": "^0.3.4",
|
|
"ts-essentials": "^10.0.3",
|
|
"tsx": "^4.19.2",
|
|
"typescript": "catalog:",
|
|
"vitest": "catalog:"
|
|
},
|
|
"scripts": {
|
|
"addversion": "node -p \"'export const ONTIME_VERSION = ' + JSON.stringify(require('../../package.json').version) + ';'\" > src/ONTIME_VERSION.js",
|
|
"postinstall": "pnpm addversion",
|
|
"dev": "cross-env NODE_ENV=development tsx watch ./src/index.ts",
|
|
"dev:inspect": "cross-env NODE_ENV=development tsx watch --inspect ./src/index.ts",
|
|
"dev:test": "cross-env IS_TEST=true tsx ./src/index.ts",
|
|
"prebuild": "tsx ./scripts/bundleCss.ts",
|
|
"build": "node esbuild.electron.js",
|
|
"build:electron": "node esbuild.electron.js",
|
|
"build:local": "node esbuild.dev.js",
|
|
"build:docker": "node esbuild.docker.js",
|
|
"build:localdocker": "cross-env NODE_ENV=local node esbuild.docker.js",
|
|
"lint": "eslint . --quiet",
|
|
"test": "cross-env IS_TEST=true vitest",
|
|
"test:pipeline": "cross-env IS_TEST=true vitest run",
|
|
"typecheck": "tsc --noEmit",
|
|
"cleanup": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
}
|
|
}
|