From 8f36f2fb1261a32d3b7512ec18b19b2aa7c2ef68 Mon Sep 17 00:00:00 2001 From: Rayyan <60314224+RayyanHermanto@users.noreply.github.com> Date: Sun, 2 Aug 2026 22:46:59 +0700 Subject: [PATCH] Fix npm start --- .../modules/application/application.module.js | 5 ++--- .../application/application.module.js.map | 2 +- dist/modules/identity/identity.module.js | 1 + dist/modules/identity/identity.module.js.map | 2 +- package-lock.json | 7 +++++-- package.json | 21 +++++++++++-------- src/modules/application/application.module.ts | 5 ++--- src/modules/identity/identity.module.ts | 1 + 8 files changed, 25 insertions(+), 19 deletions(-) diff --git a/dist/modules/application/application.module.js b/dist/modules/application/application.module.js index 93b38ff..923c5b5 100644 --- a/dist/modules/application/application.module.js +++ b/dist/modules/application/application.module.js @@ -20,13 +20,13 @@ const delete_application_handler_1 = require("./application/handlers/delete-appl const get_me_applications_handler_1 = require("./application/handlers/get-me-applications.handler"); const application_validator_1 = require("./application/validators/application.validator"); const jwt_auth_guard_1 = require("../../core/auth/guards/jwt-auth.guard"); -const current_user_guard_1 = require("../identity/presentation/guards/current-user.guard"); +const identity_module_1 = require("../identity/identity.module"); let ApplicationModule = class ApplicationModule { }; exports.ApplicationModule = ApplicationModule; exports.ApplicationModule = ApplicationModule = __decorate([ (0, common_1.Module)({ - imports: [], + imports: [identity_module_1.IdentityModule], providers: [ prisma_service_1.PrismaService, prisma_application_repository_1.PrismaApplicationRepository, @@ -38,7 +38,6 @@ exports.ApplicationModule = ApplicationModule = __decorate([ get_me_applications_handler_1.GetMeApplicationsHandler, application_validator_1.ApplicationValidator, jwt_auth_guard_1.JwtAuthGuard, - current_user_guard_1.CurrentUserGuard, { provide: application_interface_1.IApplication, useClass: prisma_application_repository_1.PrismaApplicationRepository, diff --git a/dist/modules/application/application.module.js.map b/dist/modules/application/application.module.js.map index d908fa3..100e91b 100644 --- a/dist/modules/application/application.module.js.map +++ b/dist/modules/application/application.module.js.map @@ -1 +1 @@ -{"version":3,"file":"application.module.js","sourceRoot":"","sources":["../../../src/modules/application/application.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,gEAA4D;AAC5D,gGAA4F;AAC5F,+GAA0G;AAC1G,uFAA2E;AAC3E,8FAAyF;AACzF,4FAAuF;AACvF,kGAA6F;AAC7F,kGAA6F;AAC7F,kGAA6F;AAC7F,oGAA8F;AAC9F,0FAAsF;AACtF,0EAAqE;AACrE,2FAAsF;AAuB/E,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IArB7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,EAAE;QACX,SAAS,EAAE;YACT,8BAAa;YACb,2DAA2B;YAC3B,iDAAsB;YACtB,+CAAqB;YACrB,qDAAwB;YACxB,qDAAwB;YACxB,qDAAwB;YACxB,sDAAwB;YACxB,4CAAoB;YACpB,6BAAY;YACZ,qCAAgB;YAChB;gBACE,OAAO,EAAE,oCAAY;gBACrB,QAAQ,EAAE,2DAA2B;aACtC;SACF;QACD,WAAW,EAAE,CAAC,gDAAsB,CAAC;KACtC,CAAC;GACW,iBAAiB,CAAG"} \ No newline at end of file +{"version":3,"file":"application.module.js","sourceRoot":"","sources":["../../../src/modules/application/application.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,gEAA4D;AAC5D,gGAA4F;AAC5F,+GAA0G;AAC1G,uFAA2E;AAC3E,8FAAyF;AACzF,4FAAuF;AACvF,kGAA6F;AAC7F,kGAA6F;AAC7F,kGAA6F;AAC7F,oGAA8F;AAC9F,0FAAsF;AACtF,0EAAqE;AACrE,iEAA6D;AAsBtD,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IApB7B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE,CAAC,gCAAc,CAAC;QACzB,SAAS,EAAE;YACT,8BAAa;YACb,2DAA2B;YAC3B,iDAAsB;YACtB,+CAAqB;YACrB,qDAAwB;YACxB,qDAAwB;YACxB,qDAAwB;YACxB,sDAAwB;YACxB,4CAAoB;YACpB,6BAAY;YACZ;gBACE,OAAO,EAAE,oCAAY;gBACrB,QAAQ,EAAE,2DAA2B;aACtC;SACF;QACD,WAAW,EAAE,CAAC,gDAAsB,CAAC;KACtC,CAAC;GACW,iBAAiB,CAAG"} \ No newline at end of file diff --git a/dist/modules/identity/identity.module.js b/dist/modules/identity/identity.module.js index 8899f4e..29042db 100644 --- a/dist/modules/identity/identity.module.js +++ b/dist/modules/identity/identity.module.js @@ -107,6 +107,7 @@ exports.IdentityModule = IdentityModule = __decorate([ useClass: env_auth_config_1.EnvAuthConfig, }, ], + exports: [sync_identity_handler_1.SyncIdentityHandler, current_user_guard_1.CurrentUserGuard], controllers: [users_controller_1.UsersController, roles_controller_1.RolesController, permissions_controller_1.PermissionsController], }) ], IdentityModule); diff --git a/dist/modules/identity/identity.module.js.map b/dist/modules/identity/identity.module.js.map index 661d266..2d3cb78 100644 --- a/dist/modules/identity/identity.module.js.map +++ b/dist/modules/identity/identity.module.js.map @@ -1 +1 @@ -{"version":3,"file":"identity.module.js","sourceRoot":"","sources":["../../../src/modules/identity/identity.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,kFAA8E;AAC9E,kFAA8E;AAC9E,8FAA0F;AAC1F,gEAA4D;AAC5D,sEAAkE;AAClE,iGAA4F;AAC5F,yEAA6D;AAG7D,0EAAqE;AAErE,4FAAwF;AACxF,uCAAyC;AACzC,6FAAwF;AACxF,iFAA4E;AAC5E,iGAA4F;AAC5F,6GAAwG;AACxG,yEAA6D;AAC7D,qFAAyE;AACzE,sEAAiE;AACjE,0EAAqE;AACrE,qDAAiD;AACjD,gFAA4E;AAG5E,qFAAgF;AAChF,mFAA8E;AAC9E,mGAA6F;AAC7F,yFAAoF;AACpF,2FAAsF;AACtF,yFAAoF;AACpF,2FAAsF;AACtF,yFAAoF;AAIpF,qFAAgF;AAChF,mFAA8E;AAC9E,yFAAoF;AACpF,yFAAoF;AACpF,yFAAoF;AACpF,qGAAoG;AACpG,qGAAoG;AAEpG,uGAAkG;AAClG,qGAAgG;AAChG,2GAAsG;AACtG,2GAAsG;AACtG,2GAAsG;AAmE/F,IAAM,cAAc,GAApB,MAAM,cAAc;CAAG,CAAA;AAAjB,wCAAc;yBAAd,cAAc;IAjE1B,IAAA,eAAM,EAAC;QACJ,OAAO,EAAE,CAAC,wBAAU,EAAE,0CAAmB,CAAC;QAC5C,SAAS,EAAE;YAEL,eAAe;YACnB,iGAAiG;YACjG,2CAAmB;YACnB,mCAAe;YAEf,iCAAc;YACd,gDAAqB;YACrB,uCAAiB;YACjB,yCAAkB;YAClB,uCAAiB;YACb,yCAAkB;YACtB,uCAAiB;YAEjB,YAAY;YAEZ,6BAA6B;YAC7B,mCAAe;YACf,iCAAc;YACd,uCAAiB;YACjB,uCAAiB;YACjB,uCAAiB;YACjB,uDAA2B;YAC3B,uDAA2B;YAEvB,+CAAqB;YACzB,6CAAoB;YACpB,mDAAuB;YACvB,mDAAuB;YACvB,mDAAuB;YAEvB,6BAAY;YAEZ,qCAAgB;YAChB,kCAAe;YACf,gBAAS;YACT,8BAAa;YACb,6CAAoB;YACpB,6CAAoB;YACpB,yDAA0B;YACtB,0BAAW;YACf,uCAAiB;YAEjB;gBACE,OAAO,EAAE,sBAAK;gBACd,QAAQ,EAAE,6CAAoB;aAC/B;YACD;gBACE,OAAO,EAAE,sBAAK;gBACd,QAAQ,EAAE,6CAAoB;aAC/B;YACD;gBACE,OAAO,EAAE,kCAAW;gBACpB,QAAQ,EAAE,yDAA0B;aACrC;YACD;gBACE,OAAO,EAAE,2BAAW;gBACpB,QAAQ,EAAE,+BAAa;aACxB;SACI;QACP,WAAW,EAAE,CAAC,kCAAe,EAAE,kCAAe,EAAE,8CAAqB,CAAC;KACvE,CAAC;GACW,cAAc,CAAG"} \ No newline at end of file +{"version":3,"file":"identity.module.js","sourceRoot":"","sources":["../../../src/modules/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ACT,8BAAa;YACb,6CAAoB;YACpB,6CAAoB;YACpB,yDAA0B;YACtB,0BAAW;YACf,uCAAiB;YAEjB;gBACE,OAAO,EAAE,sBAAK;gBACd,QAAQ,EAAE,6CAAoB;aAC/B;YACD;gBACE,OAAO,EAAE,sBAAK;gBACd,QAAQ,EAAE,6CAAoB;aAC/B;YACD;gBACE,OAAO,EAAE,kCAAW;gBACpB,QAAQ,EAAE,yDAA0B;aACrC;YACD;gBACE,OAAO,EAAE,2BAAW;gBACpB,QAAQ,EAAE,+BAAa;aACxB;SACI;QACP,OAAO,EAAE,CAAC,2CAAmB,EAAE,qCAAgB,CAAC;QAChD,WAAW,EAAE,CAAC,kCAAe,EAAE,kCAAe,EAAE,8CAAqB,CAAC;KACvE,CAAC;GACW,cAAc,CAAG"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 42e9515..8d2fbe3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "@playwright/test": "^1.62.1", "@types/bcrypt": "^5.0.2", "@types/jest": "^29.5.14", - "@types/node": "^22.13.10", + "@types/node": "^22.20.1", "@types/passport-jwt": "^4.0.1", "@types/supertest": "^6.0.3", "@types/swagger-ui-express": "^4.1.8", @@ -59,7 +59,7 @@ "ts-jest": "^29.2.6", "ts-node": "^10.9.2", "ts-node-dev": "^2.0.0", - "typescript": "^5.8.2" + "typescript": "^5.9.3" }, "engines": { "node": ">=20.0.0" @@ -2377,6 +2377,7 @@ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.20.1.tgz", "integrity": "sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q==", "dev": true, + "license": "MIT", "dependencies": { "undici-types": "~6.21.0" } @@ -7913,6 +7914,7 @@ "resolved": "https://registry.npmjs.org/ts-node/-/ts-node-10.9.2.tgz", "integrity": "sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==", "dev": true, + "license": "MIT", "dependencies": { "@cspotcode/source-map-support": "^0.8.0", "@tsconfig/node10": "^1.0.7", @@ -8100,6 +8102,7 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" diff --git a/package.json b/package.json index 59403a7..63a581e 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "prisma:seed": "ts-node prisma/seed.ts" }, "dependencies": { + "@aws-sdk/client-s3": "^3.379.0", "@nestjs/common": "^10.4.20", "@nestjs/config": "^3.3.0", "@nestjs/core": "^10.4.20", @@ -34,25 +35,24 @@ "@nestjs/platform-express": "^10.4.20", "@nestjs/swagger": "^7.4.2", "@prisma/client": "^5.22.0", + "axios": "^1.4.0", "bcrypt": "^5.1.1", + "bullmq": "^1.73.0", "class-transformer": "^0.5.1", "class-validator": "^0.14.2", "dotenv": "^16.6.1", + "ioredis": "^5.3.2", "jose": "^6.2.6", - "openid-client": "^6.5.0", "jsonwebtoken": "^9.0.2", + "nodemailer": "^6.9.4", + "openid-client": "^6.5.0", "passport": "^0.7.0", "passport-jwt": "^4.0.1", "pino": "^9.7.0", "reflect-metadata": "^0.2.2", "rxjs": "^7.8.2", "swagger-ui-express": "^5.0.1", - "uuid": "^11.1.0", - "ioredis": "^5.3.2", - "bullmq": "^1.73.0", - "nodemailer": "^6.9.4", - "axios": "^1.4.0", - "@aws-sdk/client-s3": "^3.379.0" + "uuid": "^11.1.0" }, "devDependencies": { "@eslint/js": "^9.21.0", @@ -60,7 +60,7 @@ "@playwright/test": "^1.62.1", "@types/bcrypt": "^5.0.2", "@types/jest": "^29.5.14", - "@types/node": "^22.13.10", + "@types/node": "^22.20.1", "@types/passport-jwt": "^4.0.1", "@types/supertest": "^6.0.3", "@types/swagger-ui-express": "^4.1.8", @@ -75,6 +75,9 @@ "ts-jest": "^29.2.6", "ts-node": "^10.9.2", "ts-node-dev": "^2.0.0", - "typescript": "^5.8.2" + "typescript": "^5.9.3" + }, + "prisma": { + "seed": "node --loader ts-node/esm prisma/seed.ts" } } diff --git a/src/modules/application/application.module.ts b/src/modules/application/application.module.ts index 0b9ce52..f54a3ed 100644 --- a/src/modules/application/application.module.ts +++ b/src/modules/application/application.module.ts @@ -11,10 +11,10 @@ import { DeleteApplicationHandler } from './application/handlers/delete-applicat import { GetMeApplicationsHandler } from './application/handlers/get-me-applications.handler'; import { ApplicationValidator } from './application/validators/application.validator'; import { JwtAuthGuard } from '../../core/auth/guards/jwt-auth.guard'; -import { CurrentUserGuard } from '../identity/presentation/guards/current-user.guard'; +import { IdentityModule } from '../identity/identity.module'; @Module({ - imports: [], + imports: [IdentityModule], providers: [ PrismaService, PrismaApplicationRepository, @@ -26,7 +26,6 @@ import { CurrentUserGuard } from '../identity/presentation/guards/current-user.g GetMeApplicationsHandler, ApplicationValidator, JwtAuthGuard, - CurrentUserGuard, { provide: IApplication, useClass: PrismaApplicationRepository, diff --git a/src/modules/identity/identity.module.ts b/src/modules/identity/identity.module.ts index 5aae086..e024552 100644 --- a/src/modules/identity/identity.module.ts +++ b/src/modules/identity/identity.module.ts @@ -112,6 +112,7 @@ import { DeletePermissionHandler } from './application/handlers/permission/delet useClass: EnvAuthConfig, }, ], + exports: [SyncIdentityHandler, CurrentUserGuard], controllers: [UsersController, RolesController, PermissionsController], }) export class IdentityModule {}