Skip to content

Commit

Permalink
fix: barrel files
Browse files Browse the repository at this point in the history
  • Loading branch information
rubiin committed Oct 18, 2023
1 parent 5096981 commit 2e91390
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 91 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"rubiin",
"sonarjs",
"SSSZ",
"travelerdev",
"UNAUTHORISED"
]
}
50 changes: 25 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"test:e2e": "jest --config ./test/jest-e2e.json --runInBand --forceExit"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.428.0",
"@aws-sdk/client-ses": "^3.428.0",
"@aws-sdk/client-s3": "^3.430.0",
"@aws-sdk/client-ses": "^3.430.0",
"@casl/ability": "^6.5.0",
"@golevelup/nestjs-rabbitmq": "^4.0.0",
"@golevelup/nestjs-stripe": "^0.6.3",
Expand Down Expand Up @@ -83,8 +83,8 @@
"@nestjs/throttler": "^5.0.0",
"@nestjs/websockets": "^10.2.7",
"@paralleldrive/cuid2": "^2.2.2",
"@sentry/hub": "^7.74.0",
"@sentry/node": "^7.74.0",
"@sentry/hub": "^7.74.1",
"@sentry/node": "^7.74.1",
"@socket.io/redis-adapter": "^8.2.1",
"@supercharge/request-ip": "^1.2.0",
"@travelerdev/nestjs-sentry": "^4.2.1",
Expand All @@ -100,7 +100,7 @@
"firebase-admin": "^11.11.0",
"handlebars": "^4.7.8",
"helmet": "^7.0.0",
"helper-fns": "^2.6.30",
"helper-fns": "^2.6.33",
"ioredis": "^5.3.2",
"isomorphic-dompurify": "^1.9.0",
"joi": "^17.11.0",
Expand All @@ -121,7 +121,7 @@
"passport-magic-login": "^1.2.2",
"pino-http": "^8.5.0",
"pino-pretty": "^10.2.3",
"poolifier": "^3.0.1",
"poolifier": "^3.0.2",
"preview-email": "^3.0.19",
"prom-client": "^15.0.0",
"pug": "^3.0.2",
Expand All @@ -132,7 +132,7 @@
"rxjs": "^7.8.1",
"sharp": "^0.32.6",
"socket.io": "^4.7.2",
"stripe": "^13.10.0",
"stripe": "^14.1.0",
"swagger-stats": "^0.99.7",
"twilio": "4.18.1",
"unprofane": "^1.0.6",
Expand All @@ -147,29 +147,29 @@
"@nestjs/cli": "10.1.18",
"@nestjs/schematics": "10.0.2",
"@nestjs/testing": "10.2.7",
"@rubiin/eslint-config": "^1.8.26",
"@rubiin/eslint-config": "^1.8.27",
"@rubiin/tsconfig": "^1.1.2",
"@sentry/types": "^7.74.0",
"@sentry/types": "^7.74.1",
"@side/jest-runtime": "^1.1.0",
"@swc/core": "^1.3.93",
"@swc/jest": "^0.2.29",
"@total-typescript/ts-reset": "^0.5.1",
"@types/cache-manager": "^4.0.3",
"@types/cache-manager-redis-store": "^2.0.2",
"@types/compression": "^1.7.3",
"@types/jest": "^29.5.5",
"@types/mime-types": "^2.1.2",
"@types/multer": "^1.4.8",
"@types/node": "^20.8.6",
"@types/nodemailer": "^6.4.11",
"@types/passport": "^1.0.13",
"@types/passport-facebook": "^3.0.1",
"@types/passport-google-oauth20": "^2.0.12",
"@types/passport-jwt": "^3.0.10",
"@types/preview-email": "^3.0.2",
"@types/pug": "^2.0.7",
"@types/qrcode": "^1.5.2",
"@types/qs": "6.9.8",
"@types/cache-manager": "^4.0.4",
"@types/cache-manager-redis-store": "^2.0.3",
"@types/compression": "^1.7.4",
"@types/jest": "^29.5.6",
"@types/mime-types": "^2.1.3",
"@types/multer": "^1.4.9",
"@types/node": "^20.8.7",
"@types/nodemailer": "^6.4.12",
"@types/passport": "^1.0.14",
"@types/passport-facebook": "^3.0.2",
"@types/passport-google-oauth20": "^2.0.13",
"@types/passport-jwt": "^3.0.11",
"@types/preview-email": "^3.0.3",
"@types/pug": "^2.0.8",
"@types/qrcode": "^1.5.3",
"@types/qs": "6.9.9",
"@types/supertest": "2.0.14",
"@types/swagger-stats": "^0.95.9",
"@types/swagger-ui-express": "^4.1.4",
Expand Down
84 changes: 42 additions & 42 deletions pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion src/common/database/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ export * from "./base.entity";
export * from "./base.repository";
export * from "./mikro-orm.encrypted";
export * from "./user.subscriber";
export * from "./config";
export * from "./orm.config";
2 changes: 1 addition & 1 deletion src/common/database/mikro-orm-cli.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from "@mikro-orm/postgresql";
import { Logger } from "@nestjs/common";
import { config as environmentConfig } from "dotenv";
import dotEnvExpand from "dotenv-expand";
import { baseOptions } from "./config";
import { baseOptions } from "./orm.config";

/**
*
Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ export * from "./sentry.module";
export * from "./serve-static.module";
export * from "./throttle.module";
export * from "./twilio";
export * from "./config/config.module";
export * from "./pino/pino.module";
export * from "./rabbit.module";
export * from "./cache/cache.module";
2 changes: 1 addition & 1 deletion src/lib/orm.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { defineConfig } from "@mikro-orm/postgresql";
import { Global, Module } from "@nestjs/common";
import { ConfigModule, ConfigService } from "@nestjs/config";
import * as Entities from "@entities";
import { baseOptions } from "@common/database/config";
import { baseOptions } from "@common/database/orm.config";

@Global()
@Module({
Expand Down
15 changes: 0 additions & 15 deletions src/modules/category/category.module.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import { Module } from "@nestjs/common";
import { ConfigModule, ConfigService } from "@nestjs/config";
import { FastJwtModule } from "nestjs-fastjwt";
import { CategoryController } from "./category.controller";
import { CategoryService } from "./category.service";

@Module({
imports: [
FastJwtModule.registerAsync({
imports: [ConfigModule],
inject: [ConfigService],
useFactory: async (configService: ConfigService<Configs, true>) => ({
isGlobal: true,
secret: configService.get("jwt.secret", { infer: true }),
signOptions: {
expiresIn: configService.get("jwt.accessExpiry", { infer: true }),
},
}),
}),
],
controllers: [CategoryController],
providers: [CategoryService],
})
Expand Down
Loading

0 comments on commit 2e91390

Please sign in to comment.