bitip/package.json
Tudor Stanciu 9ad0d9be93 feat: update version to 1.2.0 and refactor backend structure
- Changed main entry point from `index.js` to `server.js` in package.json.
- Created a new `app.ts` file to encapsulate Express app configuration.
- Removed old `index.ts` file and moved server logic to `server.ts`.
- Updated nodemon configurations to point to the new `server.ts`.
- Added new middleware for API key authentication with public endpoint support.
- Modified validators to accept any string for IPs, allowing handlers to determine validity.
- Added integration tests for batch lookup and health endpoints.
- Implemented unit tests for error handling and validation middleware.
- Updated `tsup` and `vitest` configurations to reflect new entry points and testing setup.
2025-10-13 01:14:37 +03:00

52 lines
1.8 KiB
JSON

{
"name": "bitip",
"version": "1.2.0",
"description": "Bitip - GeoIP Lookup Service with REST API and Web Interface",
"type": "module",
"main": "dist/backend/server.js",
"scripts": {
"dev": "concurrently \"npm run dev:backend\" \"npm run dev:frontend\"",
"dev:debug": "concurrently \"npm run dev:backend:debug\" \"npm run dev:frontend\"",
"dev:backend": "cd src/backend && npm run dev",
"dev:backend:debug": "cd src/backend && npm run dev:debug",
"dev:frontend": "cd src/frontend && npm run dev",
"build": "npm run build:backend && npm run build:frontend",
"build:backend": "cd src/backend && npm run build",
"build:frontend": "cd src/frontend && npm run build",
"start": "cd src/backend && npm start",
"lint": "npm run lint:backend && npm run lint:frontend",
"lint:backend": "cd src/backend && npm run lint",
"lint:frontend": "cd src/frontend && npm run lint",
"lint:fix": "npm run lint:fix:backend && npm run lint:fix:frontend",
"lint:fix:backend": "cd src/backend && npm run lint:fix",
"lint:fix:frontend": "cd src/frontend && npm run lint:fix",
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx,json,css,md}\"",
"install:all": "npm install && cd src/backend && npm install && cd ../frontend && npm install",
"clean": "rimraf dist && cd src/backend && npm run clean && cd ../frontend && npm run clean"
},
"keywords": [
"geoip",
"ip-lookup",
"geolocation",
"maxmind",
"express",
"react",
"typescript"
],
"author": "Bitip Team",
"license": "MIT",
"devDependencies": {
"concurrently": "^9.2.1",
"prettier": "^3.4.2",
"rimraf": "^6.0.1"
},
"engines": {
"node": ">=18.0.0",
"npm": ">=9.0.0"
},
"workspaces": [
"src/backend",
"src/frontend"
]
}