* Initial plan * Run npm audit fix to resolve auto-fixable vulnerabilities Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com> * Remove unused ipfs-http-client and enforce audit in CI - Remove ipfs-http-client dependency (not used, has high-severity vulnerability) - Add npm audit --audit-level=high to CI workflow - Update secret-security workflow to enforce high-level audit - All high-severity vulnerabilities now resolved (0 high) Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com> * Run npm audit fix on web package - Fixed high-severity vulnerabilities in Next.js and qs - Web package now has 0 high-severity vulnerabilities Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: onnwee <211922112+onnwee@users.noreply.github.com>
170 lines
7.6 KiB
JSON
170 lines
7.6 KiB
JSON
{
|
|
"name": "internet-id",
|
|
"version": "0.1.0",
|
|
"private": true,
|
|
"engines": {
|
|
"node": ">=10.16.0"
|
|
},
|
|
"prisma": {
|
|
"seed": "ts-node prisma/seed.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "hardhat compile",
|
|
"clean": "hardhat clean",
|
|
"test": "hardhat test",
|
|
"test:unit": "hardhat test --grep \"^(?!Integration:)\"",
|
|
"test:integration": "hardhat test --grep \"Integration:\"",
|
|
"test:coverage": "nyc --reporter=text --reporter=html hardhat test",
|
|
"test:backup": "bash test-backup-system.sh",
|
|
"node": "hardhat node",
|
|
"deploy:local": "hardhat run --network localhost scripts/deploy.ts",
|
|
"deploy:ethereum": "hardhat run --network ethereum scripts/deploy.ts",
|
|
"deploy:sepolia": "hardhat run --network sepolia scripts/deploy.ts",
|
|
"deploy:polygon": "hardhat run --network polygon scripts/deploy.ts",
|
|
"deploy:polygon-amoy": "hardhat run --network polygonAmoy scripts/deploy.ts",
|
|
"deploy:base": "hardhat run --network base scripts/deploy.ts",
|
|
"deploy:base-sepolia": "hardhat run --network baseSepolia scripts/deploy.ts",
|
|
"deploy:arbitrum": "hardhat run --network arbitrum scripts/deploy.ts",
|
|
"deploy:arbitrum-sepolia": "hardhat run --network arbitrumSepolia scripts/deploy.ts",
|
|
"deploy:optimism": "hardhat run --network optimism scripts/deploy.ts",
|
|
"deploy:optimism-sepolia": "hardhat run --network optimismSepolia scripts/deploy.ts",
|
|
"deploy:upgradeable:local": "hardhat run --network localhost scripts/deploy-upgradeable.ts",
|
|
"deploy:upgradeable:sepolia": "hardhat run --network sepolia scripts/deploy-upgradeable.ts",
|
|
"deploy:upgradeable:base-sepolia": "hardhat run --network baseSepolia scripts/deploy-upgradeable.ts",
|
|
"deploy:upgradeable:ethereum": "hardhat run --network ethereum scripts/deploy-upgradeable.ts",
|
|
"upgrade:local": "hardhat run --network localhost scripts/upgrade-to-v2.ts",
|
|
"upgrade:sepolia": "hardhat run --network sepolia scripts/upgrade-to-v2.ts",
|
|
"upgrade:base-sepolia": "hardhat run --network baseSepolia scripts/upgrade-to-v2.ts",
|
|
"upgrade:ethereum": "hardhat run --network ethereum scripts/upgrade-to-v2.ts",
|
|
"upgrade:simulate": "hardhat run scripts/simulate-upgrade.ts",
|
|
"register": "ts-node scripts/register.ts",
|
|
"upload:ipfs": "ts-node scripts/upload-ipfs.ts",
|
|
"manifest": "ts-node scripts/make-manifest.ts",
|
|
"verify": "ts-node scripts/verify.ts",
|
|
"proof": "ts-node scripts/make-proof.ts",
|
|
"bind:youtube": "ts-node scripts/bind-youtube.ts",
|
|
"verify:youtube": "ts-node scripts/verify-youtube.ts",
|
|
"bind:tiktok": "ts-node scripts/bind-tiktok.ts",
|
|
"verify:tiktok": "ts-node scripts/verify-tiktok.ts",
|
|
"bind:instagram": "ts-node scripts/bind-instagram.ts",
|
|
"verify:instagram": "ts-node scripts/verify-instagram.ts",
|
|
"bind:github": "ts-node scripts/bind-github.ts",
|
|
"verify:github": "ts-node scripts/verify-github.ts",
|
|
"bind:discord": "ts-node scripts/bind-discord.ts",
|
|
"verify:discord": "ts-node scripts/verify-discord.ts",
|
|
"bind:linkedin": "ts-node scripts/bind-linkedin.ts",
|
|
"verify:linkedin": "ts-node scripts/verify-linkedin.ts",
|
|
"start:api": "ts-node scripts/start-api-server.ts",
|
|
"db:generate": "prisma generate",
|
|
"db:migrate": "prisma migrate dev --name init",
|
|
"db:studio": "prisma studio",
|
|
"db:seed": "ts-node prisma/seed.ts",
|
|
"db:reset": "prisma migrate reset --force && npm run db:seed",
|
|
"db:verify-indexes": "ts-node scripts/verify-indexes.ts",
|
|
"db:format": "prisma format",
|
|
"db:format:check": "prisma format --check",
|
|
"db:validate": "prisma validate",
|
|
"backup:full": "bash ops/backup/backup-database.sh full",
|
|
"backup:incremental": "bash ops/backup/backup-database.sh incremental",
|
|
"backup:verify": "bash ops/backup/verify-backup.sh",
|
|
"restore:full": "bash ops/restore/restore-database.sh full",
|
|
"restore:pitr": "bash ops/restore/restore-database.sh pitr",
|
|
"restore:partial": "bash ops/restore/restore-database.sh partial",
|
|
"lint": "npm run lint:root && npm run lint:web",
|
|
"lint:root": "eslint . --ext .ts,.js",
|
|
"lint:web": "cd web && npm run lint",
|
|
"lint:fix": "npm run lint:fix:root && npm run lint:fix:web",
|
|
"lint:fix:root": "eslint . --ext .ts,.js --fix",
|
|
"lint:fix:web": "cd web && npm run lint:fix",
|
|
"format": "prettier --write \"**/*.{ts,js,json,md}\"",
|
|
"format:check": "prettier --check \"**/*.{ts,js,json,md}\"",
|
|
"security:scan": "bash scripts/security/scan-secrets.sh",
|
|
"security:setup-git-secrets": "bash scripts/security/setup-git-secrets.sh",
|
|
"docker:build:api": "docker build -f Dockerfile.api -t internet-id-api:latest --target runner .",
|
|
"docker:build:web": "docker build -f web/Dockerfile -t internet-id-web:latest --target runner .",
|
|
"docker:build": "npm run docker:build:api && npm run docker:build:web",
|
|
"docker:up:dev": "docker compose up -d",
|
|
"docker:up:staging": "docker compose -f docker-compose.staging.yml up -d",
|
|
"docker:up:production": "docker compose -f docker-compose.production.yml up -d",
|
|
"docker:down": "docker compose down",
|
|
"docker:logs": "docker compose logs -f",
|
|
"smoke-test": "bash scripts/smoke-test.sh",
|
|
"extension:package": "cd extension && npm run package",
|
|
"extension:package:chrome": "cd extension && npm run package:chrome"
|
|
},
|
|
"devDependencies": {
|
|
"@nomicfoundation/hardhat-chai-matchers": "^2.1.0",
|
|
"@nomicfoundation/hardhat-ethers": "^3.1.0",
|
|
"@nomicfoundation/hardhat-ignition": "^0.15.13",
|
|
"@nomicfoundation/hardhat-ignition-ethers": "^0.15.14",
|
|
"@nomicfoundation/hardhat-network-helpers": "^1.1.0",
|
|
"@nomicfoundation/hardhat-toolbox": "^5.0.0",
|
|
"@nomicfoundation/hardhat-verify": "^2.1.1",
|
|
"@nomicfoundation/ignition-core": "^0.15.13",
|
|
"@openzeppelin/contracts": "^5.4.0",
|
|
"@openzeppelin/contracts-upgradeable": "^5.4.0",
|
|
"@openzeppelin/hardhat-upgrades": "^3.9.1",
|
|
"@typechain/ethers-v6": "^0.5.1",
|
|
"@typechain/hardhat": "^9.1.0",
|
|
"@types/chai": "^5.2.2",
|
|
"@types/cors": "^2.8.18",
|
|
"@types/express": "^4.17.21",
|
|
"@types/express-rate-limit": "^5.1.3",
|
|
"@types/mocha": "^10.0.10",
|
|
"@types/multer": "^1.4.12",
|
|
"@types/node": "^20.12.12",
|
|
"@types/sinon": "^17.0.4",
|
|
"@types/supertest": "^6.0.3",
|
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
"@typescript-eslint/parser": "^6.21.0",
|
|
"chai": "^4.5.0",
|
|
"dotenv": "^16.4.5",
|
|
"eslint": "^8.57.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-prettier": "^5.5.4",
|
|
"ethers": "^6.13.3",
|
|
"hardhat": "^2.22.7",
|
|
"hardhat-gas-reporter": "^1.0.10",
|
|
"nyc": "^17.1.0",
|
|
"prettier": "^3.6.2",
|
|
"prisma": "^6.17.0",
|
|
"sinon": "^21.0.0",
|
|
"solidity-coverage": "^0.8.16",
|
|
"supertest": "^7.1.4",
|
|
"ts-node": "^10.9.2",
|
|
"typechain": "^8.3.2",
|
|
"typescript": "^5.6.3"
|
|
},
|
|
"dependencies": {
|
|
"@prisma/client": "^6.17.0",
|
|
"@sendgrid/mail": "^8.1.6",
|
|
"@sentry/node": "^7.119.0",
|
|
"@sentry/profiling-node": "^7.119.0",
|
|
"@types/jsonwebtoken": "^9.0.10",
|
|
"@types/nodemailer": "^7.0.3",
|
|
"@types/pino": "^7.0.4",
|
|
"@types/swagger-jsdoc": "^6.0.4",
|
|
"@types/swagger-ui-express": "^4.1.8",
|
|
"axios": "^1.7.2",
|
|
"bullmq": "^5.63.0",
|
|
"cors": "^2.8.5",
|
|
"express": "^4.19.2",
|
|
"express-rate-limit": "^8.1.0",
|
|
"form-data": "^4.0.0",
|
|
"helmet": "^8.1.0",
|
|
"ioredis": "^5.8.2",
|
|
"jsonwebtoken": "^9.0.2",
|
|
"multer": "^2.0.2",
|
|
"nodemailer": "^7.0.10",
|
|
"pino": "^10.1.0",
|
|
"pino-pretty": "^13.1.2",
|
|
"prom-client": "^15.1.3",
|
|
"rate-limit-redis": "^4.2.3",
|
|
"redis": "^5.9.0",
|
|
"swagger-jsdoc": "^6.2.8",
|
|
"swagger-ui-express": "^5.0.1",
|
|
"validator": "^13.15.15",
|
|
"zod": "^4.1.12"
|
|
}
|
|
}
|