Skip to content

Commit 3540632

Browse files
authored
Merge pull request #58 from PRO-Robotech/feature/dev
ESM(!) | safe websocket
2 parents fb97105 + 7eaa314 commit 3540632

File tree

8 files changed

+2235
-271
lines changed

8 files changed

+2235
-271
lines changed

package-lock.json

Lines changed: 1988 additions & 179 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
{
22
"name": "openapi-ui-k8s-bff",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "",
55
"main": "dist/index.js",
6+
"type": "module",
67
"scripts": {
7-
"build": "npx tsc --noEmit false && tsc-alias",
8+
"build": "tsup",
89
"start": "node dist/index.js",
910
"dev:prod": "cross-env PORT=4002 ts-node -r tsconfig-paths/register dist/index.js",
10-
"dev": "cross-env DEVELOPMENT=TRUE PORT=4002 nodemon --watch \"src/**\" --ext \"ts,json\" --ignore \"src/**/*.spec.ts\" --exec \"ts-node -r tsconfig-paths/register src/index.ts\"",
11+
"dev": "cross-env DEVELOPMENT=TRUE PORT=4002 tsx watch src/index.ts",
1112
"tsc": "tsc --project tsconfig.json",
1213
"lint:js": "eslint",
1314
"lint": "npm run lint:js && npm run tsc",
@@ -23,37 +24,38 @@
2324
"dotenv": "16.4.5",
2425
"express": "4.19.2",
2526
"express-healthcheck": "0.1.0",
26-
"express-prom-bundle": "8.0.0",
27+
"express-prometheus-middleware": "1.2.0",
2728
"express-winston": "4.2.0",
2829
"express-ws": "5.0.2",
2930
"jsonpath": "1.1.1",
3031
"lodash": "4.17.21",
31-
"node-cache": "^5.1.2",
32+
"node-cache": "5.1.2",
3233
"openapi-types": "12.1.3",
33-
"prom-client": "15.1.3",
3434
"swagger-autogen": "2.23.7",
3535
"swagger-ui-express": "5.0.1",
3636
"uuid": "10.0.0",
3737
"winston": "3.17.0"
3838
},
3939
"devDependencies": {
40+
"@types/cookie": "0.6.0",
4041
"@types/cors": "2.8.17",
4142
"@types/express": "4.17.21",
4243
"@types/express-ws": "3.0.5",
4344
"@types/jsonpath": "0.2.4",
4445
"@types/lodash": "4.17.19",
4546
"@types/node": "20.14.2",
4647
"@types/uuid": "10.0.0",
47-
"@types/ws": "8.18.1",
48+
"builtin-modules": "5.0.0",
4849
"cross-env": "7.0.3",
4950
"eslint-config-prettier": "9.0.0",
5051
"eslint-plugin-import": "2.28.1",
5152
"eslint-plugin-prettier": "5.0.0",
5253
"nodemon": "3.1.3",
5354
"prettier": "3.0.2",
5455
"ts-node": "10.9.2",
55-
"tsc-alias": "1.8.16",
5656
"tsconfig-paths": "4.2.0",
57+
"tsup": "8.5.0",
58+
"tsx": "4.20.6",
5759
"typescript": "5.4.5",
5860
"typescript-eslint": "8.1.0"
5961
}

src/cache.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const DEFAULT_TTL = 60 * 15
77
const KEYS_AND_PATHS_TTL = 60 * 16
88
const CHECK_PERIOD = 60 * 14
99

10+
console.log(`[${new Date().toISOString()}]: cache module loaded`)
11+
1012
export const cache = new NodeCache({ stdTTL: DEFAULT_TTL, checkperiod: CHECK_PERIOD })
1113

1214
async function fetchAndDerefSwagger(): Promise<OpenAPIV2.Document | undefined> {

0 commit comments

Comments
 (0)