Skip to content

Commit

Permalink
chore: remove additional files and packages
Browse files Browse the repository at this point in the history
  • Loading branch information
meysamhadeli committed Dec 17, 2023
1 parent 3d4b799 commit 2df865b
Show file tree
Hide file tree
Showing 14 changed files with 68 additions and 280 deletions.
64 changes: 12 additions & 52 deletions src/booking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "jest"
},
"dependencies": {
"@nestjs/common": "^10.2.10",
"@nestjs/cli": "10.2.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "10.2.10",
"@nestjs/cqrs": "^10.2.6",
Expand All @@ -29,68 +29,28 @@
"@nestjs/schematics": "10.0.3",
"@nestjs/swagger": "^7.1.16",
"@nestjs/terminus": "^10.1.1",
"@nestjs/testing": "10.2.10",
"@nestjs/typeorm": "^10.0.1",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/auto-instrumentations-node": "^0.40.1",
"@opentelemetry/exporter-jaeger": "^1.18.1",
"@opentelemetry/exporter-prometheus": "^0.45.1",
"@opentelemetry/exporter-zipkin": "^1.18.1",
"@opentelemetry/instrumentation-amqplib": "^0.33.4",
"@opentelemetry/instrumentation-express": "^0.33.3",
"@opentelemetry/instrumentation-http": "^0.45.1",
"@opentelemetry/instrumentation-nestjs-core": "^0.33.3",
"@opentelemetry/metrics": "^0.24.0",
"@opentelemetry/node": "^0.24.0",
"@opentelemetry/resources": "^1.18.1",
"@opentelemetry/sdk-node": "^0.45.1",
"@opentelemetry/sdk-trace-base": "^1.18.1",
"@opentelemetry/sdk-trace-node": "^1.18.1",
"@opentelemetry/semantic-conventions": "^1.18.1",
"@types/uuid": "^9.0.7",
"amqp-connection-manager": "^4.1.14",
"amqplib": "^0.10.3",
"async-retry": "^1.3.3",
"axios": "^1.6.2",
"building-blocks": "file:../building-blocks",
"class-transformer": "0.5.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"express": "4.18.2",
"http-problem-details": "^0.1.5",
"lodash": "^4.17.21",
"nest-shared": "^5.0.3",
"joi": "^17.10.1",
"moment": "^2.29.4",
"nodemon": "^3.0.2",
"pg": "^8.11.3",
"prom-client": "^15.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "5.0.5",
"rxjs": "^7.8.1",
"swagger-ui-express": "^5.0.0",
"ts-mapper": "^1.2.4",
"typeorm": "^0.3.17",
"yup": "1.3.2"
"testcontainers": "^10.3.2",
"ts-mapper": "^1.2.4"
},
"devDependencies": {
"@babel/cli": "7.23.4",
"@babel/core": "7.23.3",
"@babel/node": "7.22.19",
"@babel/preset-env": "7.23.3",
"@nestjs/cli": "10.2.1",
"@nestjs/testing": "10.2.10",
"@types/amqplib": "^0.10.4",
"@types/dotenv": "8.2.0",
"@types/express": "4.17.21",
"@faker-js/faker": "^8.3.1",
"@types/express": "^4.17.21",
"@types/jest": "29.5.10",
"@types/node": "^20.10.0",
"@types/supertest": "2.0.16",
"husky": "8.0.3",
"jest": "29.7.0",
"prettier": "3.1.0",
"jest-serial-runner": "^1.2.1",
"supertest": "6.3.3",
"ts-jest": "29.1.1",
"ts-loader": "9.5.1",
"ts-node": "10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "5.3.2"
"typemoq": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion src/booking/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function bootstrap() {

app.useGlobalPipes(new ValidationPipe({ transform: true }));

app.use((req: Request, res: Response, next: any) => {req.url === '/' ? res.send(configs.serviceName) : next();});
app.use((req: Request, res: Response, next: any) => {req.url === '/' || '/favicon.ico' ? res.send(configs.serviceName) : next();});

PrometheusMetrics.registerMetricsEndpoint(app);

Expand Down
1 change: 0 additions & 1 deletion src/building-blocks/openTelemetry/open-telemetry-tracer.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/building-blocks/openTelemetry/open-telemetry-tracer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const jaegerExporter = new JaegerExporter({
export const otelSDK = initializeOpenTelemetrySDK();

function initializeOpenTelemetrySDK() {
console.log(configs.serviceName);

const provider = new NodeTracerProvider({
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: configs.serviceName
Expand Down
76 changes: 17 additions & 59 deletions src/building-blocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,17 @@
"description": "building-blocks",
"main": "index.js",
"scripts": {
"build": "nest build",
"build": "tsc",
"format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix"
},
"author": "",
"license": "ISC",
"keywords": [],
"dependencies": {
"@nestjs/common": "^10.2.10",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "10.2.10",
"@nestjs/cli": "10.2.1",
"@nestjs/cqrs": "^10.2.6",
"@nestjs/jwt": "^10.2.0",
"@nestjs/mapped-types": "2.0.4",
"@nestjs/microservices": "^10.2.10",
"@nestjs/passport": "^10.0.2",
"@nestjs/platform-express": "^10.2.10",
"@nestjs/schematics": "10.0.3",
"@nestjs/swagger": "^7.1.16",
"@nestjs/terminus": "^10.1.1",
"@nestjs/typeorm": "^10.0.1",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/auto-instrumentations-node": "^0.40.2",
"@opentelemetry/exporter-jaeger": "^1.19.0",
Expand All @@ -41,68 +31,36 @@
"@opentelemetry/sdk-trace-base": "^1.19.0",
"@opentelemetry/sdk-trace-node": "^1.19.0",
"@opentelemetry/semantic-conventions": "^1.19.0",
"@types/uuid": "^9.0.7",
"amqp-connection-manager": "^4.1.14",
"amqplib": "^0.10.3",
"async-retry": "^1.3.3",
"bcryptjs": "^2.4.3",
"class-transformer": "0.5.1",
"class-validator": "^0.14.0",
"cls-hooked": "^4.2.2",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"express": "4.18.2",
"express-http-context": "^1.2.4",
"http-problem-details": "^0.1.5",
"joi": "^17.10.1",
"lodash": "^4.17.21",
"nest-shared": "^5.0.3",
"passport": "^0.6.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"pg": "^8.11.3",
"prom-client": "^15.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "5.0.5",
"rxjs": "^7.8.1",
"swagger-ui-express": "^5.0.0",
"testcontainers": "^10.3.2",
"ts-mapper": "^1.2.4",
"typeorm": "^0.3.17",
"typeorm-extension": "^3.2.0",
"yup": "1.3.2"
},
"devDependencies": {
"@babel/cli": "7.23.4",
"@babel/core": "7.23.3",
"@babel/node": "7.22.19",
"@babel/preset-env": "7.23.3",
"@nestjs/cli": "10.2.1",
"@nestjs/testing": "10.2.10",
"@types/amqplib": "^0.10.4",
"@types/dotenv": "8.2.0",
"@types/express": "4.17.21",
"@types/jest": "29.5.10",
"@types/node": "^20.10.0",
"@types/passport-jwt": "^3.0.13",
"@types/passport-local": "^1.0.38",
"@types/supertest": "2.0.16",
"@types/uuid": "^9.0.7",
"@typescript-eslint/eslint-plugin": "6.12.0",
"@typescript-eslint/parser": "6.12.0",
"@typescript-eslint/typescript-estree": "6.12.0",
"amqplib": "^0.10.3",
"async-retry": "^1.3.3",
"bcryptjs": "^2.4.3",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"eslint": "8.54.0",
"eslint-config-airbnb-base": "15.0.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-import": "2.29.0",
"eslint-plugin-prettier": "5.0.1",
"husky": "8.0.3",
"jest": "29.7.0",
"express": "4.18.2",
"http-problem-details": "^0.1.5",
"lodash": "^4.17.21",
"passport-jwt": "^4.0.1",
"prettier": "3.1.0",
"supertest": "6.3.3",
"ts-jest": "29.1.1",
"ts-loader": "9.5.1",
"prom-client": "^15.0.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^7.8.1",
"testcontainers": "^10.3.2",
"ts-node": "10.9.1",
"tsconfig-paths": "4.2.0",
"typeorm": "^0.3.17",
"typescript": "5.3.2"
}
}
2 changes: 1 addition & 1 deletion src/building-blocks/tsconfig.tsbuildinfo

Large diffs are not rendered by default.

64 changes: 11 additions & 53 deletions src/flight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test": "jest"
},
"dependencies": {
"@nestjs/common": "^10.2.10",
"@nestjs/cli": "10.2.1",
"@nestjs/config": "^3.1.1",
"@nestjs/core": "10.2.10",
"@nestjs/cqrs": "^10.2.6",
Expand All @@ -29,69 +29,27 @@
"@nestjs/schematics": "10.0.3",
"@nestjs/swagger": "^7.1.16",
"@nestjs/terminus": "^10.1.1",
"@nestjs/testing": "10.2.10",
"@nestjs/typeorm": "^10.0.1",
"@opentelemetry/api": "^1.7.0",
"@opentelemetry/auto-instrumentations-node": "^0.40.1",
"@opentelemetry/exporter-jaeger": "^1.18.1",
"@opentelemetry/exporter-prometheus": "^0.45.1",
"@opentelemetry/exporter-zipkin": "^1.18.1",
"@opentelemetry/instrumentation-amqplib": "^0.33.4",
"@opentelemetry/instrumentation-express": "^0.33.3",
"@opentelemetry/instrumentation-http": "^0.45.1",
"@opentelemetry/instrumentation-nestjs-core": "^0.33.3",
"@opentelemetry/metrics": "^0.24.0",
"@opentelemetry/node": "^0.24.0",
"@opentelemetry/resources": "^1.18.1",
"@opentelemetry/sdk-node": "^0.45.1",
"@opentelemetry/sdk-trace-base": "^1.18.1",
"@opentelemetry/sdk-trace-node": "^1.18.1",
"@opentelemetry/semantic-conventions": "^1.18.1",
"@types/uuid": "^9.0.7",
"amqp-connection-manager": "^4.1.14",
"amqplib": "^0.10.3",
"async-retry": "^1.3.3",
"building-blocks": "file:../building-blocks",
"class-transformer": "0.5.1",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.0",
"date-fns": "^2.30.0",
"dotenv": "^16.3.1",
"express": "4.18.2",
"http-problem-details": "^0.1.5",
"lodash": "^4.17.21",
"nest-shared": "^5.0.3",
"joi": "^17.10.1",
"moment": "^2.29.4",
"nodemon": "^3.0.2",
"pg": "^8.11.3",
"prom-client": "^15.0.0",
"reflect-metadata": "^0.1.13",
"rimraf": "5.0.5",
"rxjs": "^7.8.1",
"swagger-ui-express": "^5.0.0",
"ts-mapper": "^1.2.4",
"typeorm": "^0.3.17",
"typeorm-extension": "^3.2.0",
"yup": "1.3.2"
"testcontainers": "^10.3.2",
"ts-mapper": "^1.2.4"
},
"devDependencies": {
"@babel/cli": "7.23.4",
"@babel/core": "7.23.3",
"@babel/node": "7.22.19",
"@babel/preset-env": "7.23.3",
"@nestjs/cli": "10.2.1",
"@nestjs/testing": "10.2.10",
"@types/amqplib": "^0.10.4",
"@types/dotenv": "8.2.0",
"@types/express": "4.17.21",
"@faker-js/faker": "^8.3.1",
"@types/express": "^4.17.21",
"@types/jest": "29.5.10",
"@types/node": "^20.10.0",
"@types/supertest": "2.0.16",
"husky": "8.0.3",
"jest": "29.7.0",
"prettier": "3.1.0",
"jest-serial-runner": "^1.2.1",
"supertest": "6.3.3",
"ts-jest": "29.1.1",
"ts-loader": "9.5.1",
"ts-node": "10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "5.3.2"
"typemoq": "^2.1.0"
}
}
2 changes: 1 addition & 1 deletion src/flight/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function bootstrap() {

app.useGlobalPipes(new ValidationPipe({ transform: true }));

app.use((req: Request, res: Response, next: any) => {req.url === '/' ? res.send(configs.serviceName) : next();});
app.use((req: Request, res: Response, next: any) => {req.url === '/' || '/favicon.ico' ? res.send(configs.serviceName) : next();});

PrometheusMetrics.registerMetricsEndpoint(app);

Expand Down
Loading

0 comments on commit 2df865b

Please sign in to comment.