mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-21 21:47:17 +00:00
- Updated `AbilityGuard` to utilize `TransactionLogger` for logging execution time and errors. - Enhanced `ResponseInterceptor` to include transaction metadata in logs. - Modified `QueryAuthGuard`, `ValidateQueryAppGuard`, and `ValidateQuerySourceGuard` to log completion times and transaction IDs. - Introduced `TransactionLogger` service for structured logging with transaction context. - Added transaction ID and route information to request context in `RequestContextMiddleware`. - Updated `JwtStrategy` to log validation completion times. - Refactored logging configuration in `AppModuleLoader` to support pretty printing in non-production environments. - Removed console logs in favor of structured logging for better traceability.
219 lines
No EOL
8.4 KiB
JSON
219 lines
No EOL
8.4 KiB
JSON
{
|
|
"name": "server",
|
|
"version": "0.0.1",
|
|
"description": "",
|
|
"author": "",
|
|
"private": true,
|
|
"scripts": {
|
|
"prebuild": "rimraf dist",
|
|
"build": "nest build",
|
|
"postbuild": "npm run copy-schemas",
|
|
"lint": "eslint . '**/*.ts'",
|
|
"format": "eslint . --fix '**/*.ts'",
|
|
"start": "nest start",
|
|
"start:dev": "NODE_ENV=development nest start --watch",
|
|
"start:debug": "nest start --debug --watch",
|
|
"start:prod": "NODE_ENV=production node dist/src/main",
|
|
"test:record": "NODE_ENV=test POLLY_MODE=record jest --config jest.config.ts --detectOpenHandles",
|
|
"test": "NODE_ENV=test jest --config jest.config.ts --detectOpenHandles",
|
|
"test:watch": "NODE_ENV=test jest --watch",
|
|
"test:cov": "NODE_ENV=test jest --coverage",
|
|
"test:debug": "NODE_ENV=test node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
|
|
"test:e2e": "NODE_ENV=test jest --runInBand --config ./test/jest-e2e.json --detectOpenHandles",
|
|
"test:e2e:record": "NODE_ENV=test POLLY_MODE=record jest --runInBand --config ./test/jest-e2e.json --detectOpenHandles",
|
|
"db:create": "ts-node ./scripts/create-database.ts",
|
|
"db:create:prod": "node dist/scripts/create-database.js ",
|
|
"db:drop": "ts-node ./scripts/drop-database.ts",
|
|
"db:migrate": "ts-node -r tsconfig-paths/register --transpile-only ./node_modules/typeorm/cli.js migration:run --dataSource ./src/migration-helpers/db-migrations-datasource.ts && npm run db:migrate:data",
|
|
"db:migrate:data": "ts-node -r tsconfig-paths/register --transpile-only ./node_modules/typeorm/cli.js migration:run --dataSource ./src/migration-helpers/data-migrations-datasource.ts",
|
|
"db:migrate:prod": "node ./node_modules/typeorm/cli.js migration:run --dataSource dist/src/migration-helpers/db-migrations-datasource.js && npm run db:migrate:data:prod",
|
|
"db:migrate:data:prod": "node ./node_modules/typeorm/cli.js migration:run --dataSource dist/src/migration-helpers/data-migrations-datasource.js",
|
|
"db:seed": "ts-node -r tsconfig-paths/register --transpile-only ./scripts/seeds.ts",
|
|
"db:sample:reset": "ts-node -r tsconfig-paths/register --transpile-only ./scripts/sample-db-config-reset.ts",
|
|
"db:seed:prod": "node dist/scripts/seeds.js",
|
|
"db:setup": "npm run db:create && npm run db:migrate",
|
|
"db:setup:prod": "npm run db:create:prod && npm run db:migrate:prod",
|
|
"db:reset": "npm run db:drop && npm run db:setup",
|
|
"plugins:install": "ts-node -r tsconfig-paths/register --transpile-only ./scripts/plugins-install.ts",
|
|
"plugins:install:prod": "node dist/scripts/plugins-install.js",
|
|
"plugins:uninstall": "ts-node -r tsconfig-paths/register --transpile-only ./scripts/plugins-uninstall.ts",
|
|
"plugins:uninstall:prod": "node dist/scripts/plugins-uninstall.js",
|
|
"plugins:reload": "ts-node -r tsconfig-paths/register --transpile-only ./scripts/plugins-reload.ts",
|
|
"plugins:reload:prod": "node dist/scripts/plugins-reload.js",
|
|
"typeorm": "typeorm-ts-node-commonjs",
|
|
"copy-schemas": "copyfiles -u 4 src/dto/validators/schemas/**/*.json dist/src/dto/validators/schemas",
|
|
"worker:dev": "WORKER=true NODE_ENV=development nest start --watch",
|
|
"worker:prod": "WORKER=true NODE_ENV=production node dist/src/main"
|
|
},
|
|
"dependencies": {
|
|
"@casl/ability": "^6.7.3",
|
|
"@css-inline/css-inline": "^0.14.3",
|
|
"@dagrejs/graphlib": "^2.2.4",
|
|
"@google-cloud/spanner": "^7.21.0",
|
|
"@hubspot/api-client": "^13.0.0",
|
|
"@nestjs/bull": "^11.0.2",
|
|
"@nestjs/common": "^11.1.3",
|
|
"@nestjs/config": "^4.0.2",
|
|
"@nestjs/core": "^11.1.3",
|
|
"@nestjs/event-emitter": "^3.0.1",
|
|
"@nestjs/jwt": "^11.0.0",
|
|
"@nestjs/mapped-types": "^2.1.0",
|
|
"@nestjs/microservices": "^11.1.3",
|
|
"@nestjs/passport": "^11.0.5",
|
|
"@nestjs/platform-express": "^11.1.3",
|
|
"@nestjs/platform-ws": "^11.1.3",
|
|
"@nestjs/schedule": "^6.0.0",
|
|
"@nestjs/serve-static": "^5.0.3",
|
|
"@nestjs/throttler": "^6.2.1",
|
|
"@nestjs/typeorm": "^11.0.0",
|
|
"@nestjs/websockets": "^11.1.3",
|
|
"@node-saml/node-saml": "^4.0.5",
|
|
"@octokit/rest": "^22.0.0",
|
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.203.0",
|
|
"@opentelemetry/exporter-trace-otlp-http": "^0.203.0",
|
|
"@opentelemetry/instrumentation-express": "^0.52.0",
|
|
"@opentelemetry/instrumentation-http": "^0.203.0",
|
|
"@opentelemetry/instrumentation-nestjs-core": "^0.49.0",
|
|
"@opentelemetry/instrumentation-pg": "^0.56.0",
|
|
"@opentelemetry/instrumentation-pino": "^0.50.0",
|
|
"@opentelemetry/instrumentation-runtime-node": "^0.17.1",
|
|
"@opentelemetry/resources": "^2.0.1",
|
|
"@opentelemetry/sdk-metrics": "^2.0.1",
|
|
"@opentelemetry/sdk-node": "^0.203.0",
|
|
"@opentelemetry/sdk-trace-node": "^2.0.1",
|
|
"@sentry/node": "6.17.6",
|
|
"@sentry/tracing": "6.17.6",
|
|
"@temporalio/activity": "^1.11.6",
|
|
"@temporalio/client": "^1.11.6",
|
|
"@temporalio/worker": "^1.11.6",
|
|
"@temporalio/workflow": "^1.11.6",
|
|
"@tooljet/plugins": "../plugins",
|
|
"acorn": "^8.13.0",
|
|
"acorn-walk": "^8.3.4",
|
|
"ajv": "^8.14.0",
|
|
"bcrypt": "^5.0.1",
|
|
"class-transformer": "^0.5.1",
|
|
"class-validator": "^0.14.2",
|
|
"compression": "^1.8.0",
|
|
"cookie-parser": "^1.4.7",
|
|
"cron-validator": "^1.3.1",
|
|
"dotenv": "^16.5.0",
|
|
"express-http-proxy": "^2.1.1",
|
|
"fast-csv": "^5.0.2",
|
|
"fast-xml-parser": "^5.2.5",
|
|
"flatted": "^3.3.1",
|
|
"futoin-hkdf": "^1.4.2",
|
|
"global-agent": "^3.0.0",
|
|
"google-auth-library": "^7.9.2",
|
|
"got": "^11.8.2",
|
|
"handlebars": "^4.7.7",
|
|
"helmet": "^8.1.0",
|
|
"humps": "^2.0.1",
|
|
"ioredis": "^5.0.4",
|
|
"isolated-vm": "^5.0.4",
|
|
"joi": "^17.4.1",
|
|
"js-base64": "^3.7.2",
|
|
"jsonrepair": "^3.12.0",
|
|
"jszip": "^3.10.1",
|
|
"ldapjs": "^3.0.7",
|
|
"lodash": "^4.17.21",
|
|
"module-from-string": "^3.3.1",
|
|
"moment": "^2.29.4",
|
|
"neo4j-driver": "^5.28.1",
|
|
"nest-winston": "^1.9.4",
|
|
"nestjs-pino": "^4.4.0",
|
|
"node-sql-parser": "^5.3.1",
|
|
"nodemailer": "^6.9.14",
|
|
"openid-client": "^5.4.0",
|
|
"passport": "^0.7.0",
|
|
"passport-jwt": "^4.0.0",
|
|
"pg": "^8.7.1",
|
|
"pino-pretty": "^13.1.1",
|
|
"postcss": "^8.4.24",
|
|
"postcss-parent-selector": "^1.0.0",
|
|
"prom-client": "^15.1.3",
|
|
"protobufjs": "^7.2.3",
|
|
"reflect-metadata": "^0.1.13",
|
|
"request-ip": "^3.3.0",
|
|
"rimraf": "^6.0.1",
|
|
"rxjs": "^7.2.0",
|
|
"sanitize-html": "^2.7.0",
|
|
"semver": "^7.5.4",
|
|
"simple-git": "^3.27.0",
|
|
"sshpk": "^1.17.0",
|
|
"stripe": "^14.3.0",
|
|
"ts-node": "^10.0.0",
|
|
"tsconfig-paths": "^3.10.1",
|
|
"typeorm": "^0.3.24",
|
|
"undici": "^7.11.0",
|
|
"uuid": "^8.3.2",
|
|
"winston": "^3.13.1",
|
|
"winston-daily-rotate-file": "^4.7.1",
|
|
"ws": "^8.17.1",
|
|
"y-websocket": "^1.4.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@nestjs/cli": "^11.0.7"
|
|
},
|
|
"overrides": {
|
|
"@nestjs/platform-ws": {
|
|
"ws": "$ws"
|
|
}
|
|
},
|
|
"optionalDependencies": {
|
|
"html-minifier": "^5.0.0",
|
|
"mjml": "^4.15.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/eslintrc": "^3.3.1",
|
|
"@eslint/js": "^9.30.0",
|
|
"@golevelup/ts-jest": "^0.3.2",
|
|
"@jest/types": "^29.6.3",
|
|
"@nestjs/schematics": "^11.0.5",
|
|
"@nestjs/testing": "^11.1.3",
|
|
"@pollyjs/adapter-node-http": "^6.0.6",
|
|
"@pollyjs/core": "^6.0.6",
|
|
"@pollyjs/persister-fs": "^6.0.6",
|
|
"@types/compression": "^1.8.1",
|
|
"@types/cookie-parser": "^1.4.9",
|
|
"@types/express": "^5.0.3",
|
|
"@types/express-http-proxy": "^1.6.3",
|
|
"@types/got": "^9.6.12",
|
|
"@types/humps": "^2.0.1",
|
|
"@types/jest": "^27.5.2",
|
|
"@types/ldapjs": "^3.0.0",
|
|
"@types/multer": "^1.4.7",
|
|
"@types/node": "^24.0.1",
|
|
"@types/nodemailer": "^6.4.15",
|
|
"@types/passport-jwt": "^3.0.6",
|
|
"@types/pg": "^8.11.10",
|
|
"@types/request-ip": "^0.0.37",
|
|
"@types/sanitize-html": "^2.6.2",
|
|
"@types/sshpk": "^1.17.1",
|
|
"@types/supertest": "^6.0.3",
|
|
"@types/ws": "^8.2.2",
|
|
"@typescript-eslint/eslint-plugin": "^8.34.0",
|
|
"@typescript-eslint/parser": "^8.34.0",
|
|
"copyfiles": "^2.4.1",
|
|
"eslint": "^9.28.0",
|
|
"eslint-config-prettier": "^10.1.5",
|
|
"eslint-plugin-cypress": "^5.1.0",
|
|
"eslint-plugin-jest": "^28.13.3",
|
|
"eslint-plugin-prettier": "^5.4.1",
|
|
"globals": "^16.2.0",
|
|
"jest": "^29.7.0",
|
|
"jest-runner-groups": "^2.2.0",
|
|
"prettier": "^3.5.3",
|
|
"preview-email": "^3.0.20",
|
|
"rimraf": "^3.0.2",
|
|
"setup-polly-jest": "^0.11.0",
|
|
"supertest": "^7.1.1",
|
|
"ts-jest": "^29.1.5",
|
|
"ts-loader": "^9.5.2",
|
|
"typescript": "^5.8.3"
|
|
},
|
|
"engines": {
|
|
"node": "22.15.1",
|
|
"npm": "10.9.2"
|
|
}
|
|
} |