2023-04-18 06:24:44 +03:00
|
|
|
{
|
|
|
|
"name": "@affine/server",
|
|
|
|
"private": true,
|
2023-11-23 11:47:40 +03:00
|
|
|
"version": "0.10.3-canary.2",
|
2023-04-18 06:24:44 +03:00
|
|
|
"description": "Affine Node.js server",
|
|
|
|
"type": "module",
|
2023-04-19 02:14:25 +03:00
|
|
|
"bin": {
|
|
|
|
"run-test": "./scripts/run-test.ts"
|
|
|
|
},
|
2023-04-18 06:24:44 +03:00
|
|
|
"scripts": {
|
2023-08-03 10:10:02 +03:00
|
|
|
"build": "tsc",
|
2023-08-29 13:07:05 +03:00
|
|
|
"start": "node --loader ts-node/esm.mjs --es-module-specifier-resolution node ./src/index.ts",
|
2023-04-18 06:24:44 +03:00
|
|
|
"dev": "nodemon ./src/index.ts",
|
2023-09-01 22:41:29 +03:00
|
|
|
"test": "ava --concurrency 1 --serial",
|
|
|
|
"test:coverage": "c8 ava --concurrency 1 --serial",
|
2023-10-27 12:31:52 +03:00
|
|
|
"postinstall": "prisma generate",
|
|
|
|
"data-migration": "node --loader ts-node/esm.mjs --es-module-specifier-resolution node ./src/data/app.ts",
|
|
|
|
"predeploy": "yarn prisma migrate deploy && node --es-module-specifier-resolution node ./dist/data/app.js run"
|
2023-04-18 06:24:44 +03:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-11-23 08:18:05 +03:00
|
|
|
"@apollo/server": "^4.9.5",
|
|
|
|
"@auth/prisma-adapter": "^1.0.7",
|
|
|
|
"@aws-sdk/client-s3": "^3.454.0",
|
2023-08-29 13:07:05 +03:00
|
|
|
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.17.0",
|
|
|
|
"@google-cloud/opentelemetry-cloud-trace-exporter": "^2.1.0",
|
2023-10-12 05:46:52 +03:00
|
|
|
"@keyv/redis": "^2.8.0",
|
2023-11-23 08:18:05 +03:00
|
|
|
"@nestjs/apollo": "^12.0.11",
|
|
|
|
"@nestjs/common": "^10.2.10",
|
|
|
|
"@nestjs/core": "^10.2.10",
|
|
|
|
"@nestjs/event-emitter": "^2.0.3",
|
|
|
|
"@nestjs/graphql": "^12.0.11",
|
|
|
|
"@nestjs/platform-express": "^10.2.10",
|
|
|
|
"@nestjs/platform-socket.io": "^10.2.10",
|
2023-11-22 10:56:59 +03:00
|
|
|
"@nestjs/schedule": "^4.0.0",
|
2023-11-23 08:18:05 +03:00
|
|
|
"@nestjs/throttler": "^5.0.1",
|
|
|
|
"@nestjs/websockets": "^10.2.10",
|
2023-07-27 07:02:18 +03:00
|
|
|
"@node-rs/argon2": "^1.5.2",
|
|
|
|
"@node-rs/crc32": "^1.7.2",
|
|
|
|
"@node-rs/jsonwebtoken": "^0.2.3",
|
2023-11-23 08:18:05 +03:00
|
|
|
"@opentelemetry/api": "^1.7.0",
|
|
|
|
"@opentelemetry/core": "^1.18.1",
|
|
|
|
"@opentelemetry/instrumentation": "^0.45.1",
|
|
|
|
"@opentelemetry/instrumentation-graphql": "^0.36.0",
|
|
|
|
"@opentelemetry/instrumentation-http": "^0.45.1",
|
|
|
|
"@opentelemetry/instrumentation-ioredis": "^0.35.3",
|
|
|
|
"@opentelemetry/instrumentation-nestjs-core": "^0.33.3",
|
|
|
|
"@opentelemetry/instrumentation-socket.io": "^0.34.3",
|
|
|
|
"@opentelemetry/sdk-metrics": "^1.18.1",
|
|
|
|
"@opentelemetry/sdk-node": "^0.45.1",
|
|
|
|
"@opentelemetry/sdk-trace-node": "^1.18.1",
|
|
|
|
"@prisma/client": "^5.6.0",
|
|
|
|
"@prisma/instrumentation": "^5.6.0",
|
2023-08-29 13:07:05 +03:00
|
|
|
"@socket.io/redis-adapter": "^8.2.1",
|
2023-07-05 06:13:20 +03:00
|
|
|
"cookie-parser": "^1.4.6",
|
2023-06-27 06:32:24 +03:00
|
|
|
"dotenv": "^16.3.1",
|
2023-04-28 02:02:05 +03:00
|
|
|
"express": "^4.18.2",
|
2023-11-23 08:18:05 +03:00
|
|
|
"file-type": "^18.7.0",
|
2023-09-01 02:50:03 +03:00
|
|
|
"get-stream": "^8.0.1",
|
2023-09-29 06:02:26 +03:00
|
|
|
"graphql": "^16.8.1",
|
2023-04-18 06:24:44 +03:00
|
|
|
"graphql-type-json": "^0.3.2",
|
2023-06-21 09:08:32 +03:00
|
|
|
"graphql-upload": "^16.0.2",
|
2023-08-29 13:07:05 +03:00
|
|
|
"ioredis": "^5.3.2",
|
2023-10-16 15:47:06 +03:00
|
|
|
"keyv": "^4.5.4",
|
2023-04-18 06:24:44 +03:00
|
|
|
"lodash-es": "^4.17.21",
|
2023-11-23 08:18:05 +03:00
|
|
|
"nanoid": "^5.0.3",
|
|
|
|
"nest-commander": "^3.12.2",
|
2023-09-29 06:02:26 +03:00
|
|
|
"nestjs-throttler-storage-redis": "^0.4.1",
|
2023-11-23 08:18:05 +03:00
|
|
|
"next-auth": "^4.24.5",
|
|
|
|
"nodemailer": "^6.9.7",
|
2023-08-29 13:07:05 +03:00
|
|
|
"on-headers": "^1.0.2",
|
2023-06-21 09:08:32 +03:00
|
|
|
"parse-duration": "^1.1.0",
|
2023-08-29 13:07:05 +03:00
|
|
|
"pretty-time": "^1.1.0",
|
2023-11-23 08:18:05 +03:00
|
|
|
"prisma": "^5.6.0",
|
2023-10-16 15:47:06 +03:00
|
|
|
"prom-client": "^15.0.0",
|
2023-04-18 06:24:44 +03:00
|
|
|
"reflect-metadata": "^0.1.13",
|
2023-07-10 11:36:39 +03:00
|
|
|
"rxjs": "^7.8.1",
|
2023-08-29 13:07:05 +03:00
|
|
|
"semver": "^7.5.4",
|
2023-08-30 02:21:18 +03:00
|
|
|
"socket.io": "^4.7.2",
|
2023-11-23 08:18:05 +03:00
|
|
|
"stripe": "^14.5.0",
|
2023-09-29 06:02:26 +03:00
|
|
|
"ws": "^8.14.2",
|
2023-11-23 08:18:05 +03:00
|
|
|
"yjs": "^13.6.10"
|
2023-04-18 06:24:44 +03:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2023-09-13 08:11:19 +03:00
|
|
|
"@affine-test/kit": "workspace:*",
|
2023-06-29 17:02:46 +03:00
|
|
|
"@affine/storage": "workspace:*",
|
2023-10-11 10:36:45 +03:00
|
|
|
"@napi-rs/image": "^1.7.0",
|
2023-11-23 08:18:05 +03:00
|
|
|
"@nestjs/testing": "^10.2.10",
|
|
|
|
"@types/cookie-parser": "^1.4.6",
|
|
|
|
"@types/engine.io": "^3.1.10",
|
|
|
|
"@types/express": "^4.17.21",
|
|
|
|
"@types/graphql-upload": "^16.0.5",
|
2023-09-04 08:24:51 +03:00
|
|
|
"@types/keyv": "^4.2.0",
|
2023-11-23 08:18:05 +03:00
|
|
|
"@types/lodash-es": "^4.17.11",
|
|
|
|
"@types/node": "^20.9.3",
|
|
|
|
"@types/nodemailer": "^6.4.14",
|
|
|
|
"@types/on-headers": "^1.0.3",
|
|
|
|
"@types/pretty-time": "^1.1.5",
|
|
|
|
"@types/sinon": "^17.0.2",
|
|
|
|
"@types/supertest": "^2.0.16",
|
|
|
|
"@types/ws": "^8.5.10",
|
2023-09-01 22:41:29 +03:00
|
|
|
"ava": "^5.3.1",
|
2023-07-27 07:02:18 +03:00
|
|
|
"c8": "^8.0.1",
|
2023-08-10 17:51:20 +03:00
|
|
|
"nodemon": "^3.0.1",
|
2023-11-23 08:18:05 +03:00
|
|
|
"sinon": "^17.0.1",
|
2023-04-19 02:14:25 +03:00
|
|
|
"supertest": "^6.3.3",
|
2023-04-18 06:24:44 +03:00
|
|
|
"ts-node": "^10.9.1",
|
2023-11-23 08:18:05 +03:00
|
|
|
"typescript": "^5.3.2"
|
2023-04-18 06:24:44 +03:00
|
|
|
},
|
2023-09-01 22:41:29 +03:00
|
|
|
"ava": {
|
|
|
|
"extensions": {
|
|
|
|
"ts": "module"
|
|
|
|
},
|
2023-09-29 06:02:26 +03:00
|
|
|
"workerThreads": false,
|
2023-09-01 22:41:29 +03:00
|
|
|
"nodeArguments": [
|
2023-09-29 06:02:26 +03:00
|
|
|
"--trace-sigint",
|
2023-09-01 22:41:29 +03:00
|
|
|
"--loader",
|
2023-09-15 10:34:14 +03:00
|
|
|
"ts-node/esm/transpile-only.mjs",
|
2023-09-01 22:41:29 +03:00
|
|
|
"--es-module-specifier-resolution",
|
|
|
|
"node"
|
|
|
|
],
|
|
|
|
"files": [
|
2023-09-15 10:34:14 +03:00
|
|
|
"tests/**/*.spec.ts",
|
|
|
|
"tests/**/*.e2e.ts"
|
2023-09-01 22:41:29 +03:00
|
|
|
],
|
|
|
|
"require": [
|
|
|
|
"./src/prelude.ts"
|
|
|
|
],
|
|
|
|
"environmentVariables": {
|
2023-09-15 10:34:14 +03:00
|
|
|
"TS_NODE_PROJECT": "./tests/tsconfig.json",
|
|
|
|
"NODE_ENV": "test",
|
|
|
|
"ENABLE_LOCAL_EMAIL": "true",
|
|
|
|
"OAUTH_EMAIL_LOGIN": "noreply@toeverything.info",
|
|
|
|
"OAUTH_EMAIL_PASSWORD": "affine",
|
|
|
|
"OAUTH_EMAIL_SENDER": "noreply@toeverything.info"
|
2023-09-01 22:41:29 +03:00
|
|
|
}
|
|
|
|
},
|
2023-04-18 06:24:44 +03:00
|
|
|
"nodemonConfig": {
|
|
|
|
"exec": "node",
|
|
|
|
"script": "./src/index.ts",
|
|
|
|
"nodeArgs": [
|
|
|
|
"--loader",
|
|
|
|
"ts-node/esm.mjs",
|
|
|
|
"--es-module-specifier-resolution",
|
|
|
|
"node"
|
|
|
|
],
|
|
|
|
"ignore": [
|
|
|
|
"**/__tests__/**",
|
|
|
|
"**/dist/**"
|
|
|
|
],
|
|
|
|
"env": {
|
2023-04-25 05:13:52 +03:00
|
|
|
"TS_NODE_TRANSPILE_ONLY": true,
|
2023-04-18 06:24:44 +03:00
|
|
|
"TS_NODE_PROJECT": "./tsconfig.json",
|
|
|
|
"NODE_ENV": "development",
|
|
|
|
"DEBUG": "affine:*",
|
|
|
|
"FORCE_COLOR": true,
|
|
|
|
"DEBUG_COLORS": true
|
|
|
|
},
|
|
|
|
"delay": 1000
|
2023-04-18 09:01:14 +03:00
|
|
|
},
|
|
|
|
"c8": {
|
|
|
|
"reporter": [
|
|
|
|
"text",
|
|
|
|
"lcov"
|
|
|
|
],
|
|
|
|
"report-dir": ".coverage",
|
|
|
|
"exclude": [
|
2023-04-19 02:14:25 +03:00
|
|
|
"scripts",
|
2023-04-18 09:01:14 +03:00
|
|
|
"node_modules",
|
|
|
|
"**/*.spec.ts"
|
|
|
|
]
|
2023-04-20 11:34:00 +03:00
|
|
|
},
|
2023-06-27 12:23:19 +03:00
|
|
|
"stableVersion": "0.5.3",
|
|
|
|
"installConfig": {
|
|
|
|
"hoistingLimits": "workspaces"
|
|
|
|
}
|
2023-04-18 06:24:44 +03:00
|
|
|
}
|