Geo Device Service: - Новый сервис определения геопозиции, устройства, браузера - geoip-lite, ua-parser-js, CORS - GET/POST /api/context Frontend: - /api/geo-context — прокси к geo-device, fallback при недоступности - geoDevice.ts — fetchContextWithClient, fetchContextWithGeolocation - Weather: геопозиция через geo-device + GeoJS + ipwhois fallback - Weather API: поддержка city (геокодинг Open-Meteo) - Discover: вкладка GooSeek по умолчанию Документация: - MICROSERVICES.md — секция 3.9 Geo Device Service Co-authored-by: Cursor <cursoragent@cursor.com>
24 lines
624 B
JSON
24 lines
624 B
JSON
{
|
|
"name": "geo-device-service",
|
|
"version": "1.0.0",
|
|
"type": "module",
|
|
"description": "Сервис определения геопозиции, устройства и браузера пользователя",
|
|
"main": "src/index.ts",
|
|
"scripts": {
|
|
"dev": "npx tsx watch src/index.ts",
|
|
"start": "npx tsx src/index.ts"
|
|
},
|
|
"dependencies": {
|
|
"cors": "^2.8.5",
|
|
"express": "^4.21.0",
|
|
"geoip-lite": "^1.4.9",
|
|
"ua-parser-js": "^1.0.41"
|
|
},
|
|
"devDependencies": {
|
|
"@types/express": "^4.17.21",
|
|
"@types/ua-parser-js": "^0.7.39",
|
|
"tsx": "^4.19.0",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|