forked from datawhale/whale-town-end
WARNING: This commit contains code with significant issues that need immediate attention: 1. Type Safety Issues: - Unused import ZulipAccountsService causing compilation warnings - Implicit 'any' type in formatZulipAccount method parameter - Type inconsistencies in service injections 2. Service Integration Problems: - Inconsistent service interface usage - Missing proper type definitions for injected services - Potential runtime errors due to type mismatches 3. Code Quality Issues: - Violation of TypeScript strict mode requirements - Inconsistent error handling patterns - Missing proper interface implementations Files affected: - src/business/admin/database_management.service.ts (main issue) - Multiple test files and service implementations - Configuration and documentation updates Next steps required: 1. Fix TypeScript compilation errors 2. Implement proper type safety 3. Resolve service injection inconsistencies 4. Add comprehensive error handling 5. Update tests to match new implementations Impact: High - affects admin functionality and system stability Priority: Urgent - requires immediate review and fixes Author: moyin Date: 2026-01-10
100 lines
3.7 KiB
JSON
100 lines
3.7 KiB
JSON
{
|
|
"name": "pixel-game-server",
|
|
"version": "1.2.0",
|
|
"description": "A 2D pixel art game server built with NestJS - 完整的游戏服务器,包含用户认证、位置广播、聊天系统、管理员后台等功能模块",
|
|
"main": "dist/main.js",
|
|
"scripts": {
|
|
"dev": "nest start --watch",
|
|
"build": "nest build",
|
|
"start": "node dist/main.js",
|
|
"start:prod": "node dist/main.js",
|
|
"test": "jest",
|
|
"test:watch": "jest --watch",
|
|
"test:cov": "jest --coverage",
|
|
"test:e2e": "cross-env RUN_E2E_TESTS=true jest --testPathPattern=e2e.spec.ts --runInBand",
|
|
"test:unit": "jest --testPathPattern=spec.ts --testPathIgnorePatterns=e2e.spec.ts",
|
|
"test:integration": "jest --testPathPattern=integration.spec.ts --runInBand",
|
|
"test:property": "jest --testPathPattern=property.spec.ts",
|
|
"test:all": "cross-env RUN_E2E_TESTS=true jest --runInBand",
|
|
"test:isolated": "jest --runInBand --forceExit --detectOpenHandles",
|
|
"test:debug": "jest --runInBand --detectOpenHandles --verbose",
|
|
"test:zulip": "jest --testPathPattern=zulip.*spec.ts --runInBand",
|
|
"test:zulip:unit": "jest --testPathPattern=zulip.*spec.ts --testPathIgnorePatterns=integration --testPathIgnorePatterns=e2e --testPathIgnorePatterns=performance --runInBand",
|
|
"test:zulip:integration": "jest test/zulip_integration/integration/ --runInBand",
|
|
"test:zulip:e2e": "jest test/zulip_integration/e2e/ --runInBand",
|
|
"test:zulip:performance": "jest test/zulip_integration/performance/ --runInBand",
|
|
"test:zulip-integration": "node scripts/test-zulip-integration.js",
|
|
"test:zulip-real": "jest test/zulip_integration/real_zulip_api.spec.ts --runInBand",
|
|
"test:zulip-message": "jest src/core/zulip_core/services/zulip_message_integration.spec.ts",
|
|
"zulip:connection-test": "npx ts-node test/zulip_integration/tools/simple_connection_test.ts",
|
|
"zulip:list-streams": "npx ts-node test/zulip_integration/tools/list_streams.ts",
|
|
"zulip:chat-simulation": "npx ts-node test/zulip_integration/tools/chat_simulation.ts"
|
|
},
|
|
"keywords": [
|
|
"game",
|
|
"pixel",
|
|
"2d",
|
|
"server",
|
|
"nestjs"
|
|
],
|
|
"author": "",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@nestjs/common": "^11.1.9",
|
|
"@nestjs/config": "^4.0.2",
|
|
"@nestjs/core": "^11.1.9",
|
|
"@nestjs/jwt": "^11.0.2",
|
|
"@nestjs/platform-express": "^11.1.11",
|
|
"@nestjs/platform-ws": "^11.1.11",
|
|
"@nestjs/schedule": "^4.1.2",
|
|
"@nestjs/swagger": "^11.2.3",
|
|
"@nestjs/throttler": "^6.5.0",
|
|
"@nestjs/typeorm": "^11.0.0",
|
|
"@nestjs/websockets": "^11.1.11",
|
|
"@types/archiver": "^7.0.0",
|
|
"@types/bcrypt": "^6.0.0",
|
|
"archiver": "^7.0.1",
|
|
"axios": "^1.13.2",
|
|
"bcrypt": "^6.0.0",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.3",
|
|
"ioredis": "^5.8.2",
|
|
"jsonwebtoken": "^9.0.3",
|
|
"mysql2": "^3.16.0",
|
|
"nestjs-pino": "^4.5.0",
|
|
"nock": "^14.0.10",
|
|
"node-fetch": "^3.3.2",
|
|
"nodemailer": "^6.10.1",
|
|
"pino": "^10.1.0",
|
|
"reflect-metadata": "^0.1.14",
|
|
"rxjs": "^7.8.2",
|
|
"swagger-ui-express": "^5.0.1",
|
|
"typeorm": "^0.3.28",
|
|
"uuid": "^13.0.0",
|
|
"ws": "^8.18.3",
|
|
"zulip-js": "^2.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@faker-js/faker": "^10.2.0",
|
|
"@nestjs/cli": "^10.4.9",
|
|
"@nestjs/schematics": "^10.2.3",
|
|
"@nestjs/testing": "^10.4.20",
|
|
"@types/express": "^5.0.6",
|
|
"@types/jest": "^29.5.14",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/node": "^20.19.27",
|
|
"@types/nodemailer": "^6.4.14",
|
|
"@types/supertest": "^6.0.3",
|
|
"@types/ws": "^8.18.1",
|
|
"cross-env": "^10.1.0",
|
|
"fast-check": "^4.5.2",
|
|
"jest": "^29.7.0",
|
|
"pino-pretty": "^13.1.3",
|
|
"sqlite3": "^5.1.7",
|
|
"supertest": "^7.1.4",
|
|
"ts-jest": "^29.2.5",
|
|
"ts-node": "^10.9.2",
|
|
"typescript": "^5.9.3"
|
|
}
|
|
}
|