@nestia/core 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/lib/decorators/DynamicModule.js.map +1 -1
  2. package/lib/decorators/EncryptedBody.js.map +1 -1
  3. package/lib/decorators/EncryptedController.js.map +1 -1
  4. package/lib/decorators/EncryptedModule.js.map +1 -1
  5. package/lib/decorators/EncryptedRoute.js +0 -2
  6. package/lib/decorators/EncryptedRoute.js.map +1 -1
  7. package/lib/decorators/PlainBody.js.map +1 -1
  8. package/lib/decorators/TypedBody.js.map +1 -1
  9. package/lib/decorators/TypedException.js.map +1 -1
  10. package/lib/decorators/TypedHeaders.js.map +1 -1
  11. package/lib/decorators/TypedParam.js.map +1 -1
  12. package/lib/decorators/TypedQuery.js +1 -5
  13. package/lib/decorators/TypedQuery.js.map +1 -1
  14. package/lib/decorators/TypedRoute.js.map +1 -1
  15. package/lib/decorators/internal/NoTransformConfigureError.js.map +1 -1
  16. package/lib/decorators/internal/get_path_and_querify.js.map +1 -1
  17. package/lib/decorators/internal/get_path_and_stringify.js.map +1 -1
  18. package/lib/decorators/internal/get_text_body.js.map +1 -1
  19. package/lib/decorators/internal/headers_to_object.js.map +1 -1
  20. package/lib/decorators/internal/load_controller.js.map +1 -1
  21. package/lib/decorators/internal/route_error.js.map +1 -1
  22. package/lib/decorators/internal/validate_request_body.js.map +1 -1
  23. package/lib/decorators/internal/validate_request_headers.js.map +1 -1
  24. package/lib/decorators/internal/validate_request_query.js.map +1 -1
  25. package/lib/programmers/PlainBodyProgrammer.js.map +1 -1
  26. package/lib/programmers/TypedBodyProgrammer.js.map +1 -1
  27. package/lib/programmers/TypedExceptionProgrammer.js.map +1 -1
  28. package/lib/programmers/TypedHeadersProgrammer.js.map +1 -1
  29. package/lib/programmers/TypedParamProgrammer.js.map +1 -1
  30. package/lib/programmers/TypedQueryBodyProgrammer.js.map +1 -1
  31. package/lib/programmers/TypedQueryProgrammer.js.map +1 -1
  32. package/lib/programmers/TypedQueryRouteProgrammer.js.map +1 -1
  33. package/lib/programmers/TypedRouteProgrammer.js.map +1 -1
  34. package/lib/programmers/http/HttpAssertQuerifyProgrammer.js.map +1 -1
  35. package/lib/programmers/http/HttpIsQuerifyProgrammer.js.map +1 -1
  36. package/lib/programmers/http/HttpQuerifyProgrammer.js.map +1 -1
  37. package/lib/programmers/http/HttpValidateQuerifyProgrammer.js.map +1 -1
  38. package/lib/programmers/internal/CoreMetadataUtil.js.map +1 -1
  39. package/lib/transform.js.map +1 -1
  40. package/lib/transformers/FileTransformer.js.map +1 -1
  41. package/lib/transformers/MethodTransformer.js +1 -2
  42. package/lib/transformers/MethodTransformer.js.map +1 -1
  43. package/lib/transformers/NodeTransformer.js.map +1 -1
  44. package/lib/transformers/ParameterDecoratorTransformer.js +1 -3
  45. package/lib/transformers/ParameterDecoratorTransformer.js.map +1 -1
  46. package/lib/transformers/ParameterTransformer.js.map +1 -1
  47. package/lib/transformers/TypedExceptionTransformer.js.map +1 -1
  48. package/lib/transformers/TypedRouteTransformer.js +1 -2
  49. package/lib/transformers/TypedRouteTransformer.js.map +1 -1
  50. package/lib/utils/ExceptionManager.js.map +1 -1
  51. package/lib/utils/Singleton.js.map +1 -1
  52. package/lib/utils/SourceFinder.js +1 -3
  53. package/lib/utils/SourceFinder.js.map +1 -1
  54. package/package.json +3 -6
  55. package/src/decorators/DynamicModule.ts +39 -39
  56. package/src/decorators/EncryptedBody.ts +49 -57
  57. package/src/decorators/EncryptedController.ts +38 -38
  58. package/src/decorators/EncryptedModule.ts +79 -79
  59. package/src/decorators/EncryptedRoute.ts +126 -135
  60. package/src/decorators/PlainBody.ts +72 -75
  61. package/src/decorators/TypedBody.ts +59 -60
  62. package/src/decorators/TypedException.ts +89 -89
  63. package/src/decorators/TypedHeaders.ts +69 -70
  64. package/src/decorators/TypedParam.ts +65 -66
  65. package/src/decorators/TypedQuery.ts +246 -253
  66. package/src/decorators/TypedRoute.ts +144 -147
  67. package/src/decorators/internal/EncryptedConstant.ts +4 -4
  68. package/src/decorators/internal/NoTransformConfigureError.ts +8 -8
  69. package/src/decorators/internal/get_path_and_querify.ts +103 -104
  70. package/src/decorators/internal/get_path_and_stringify.ts +91 -94
  71. package/src/decorators/internal/get_text_body.ts +20 -20
  72. package/src/decorators/internal/headers_to_object.ts +13 -13
  73. package/src/decorators/internal/load_controller.ts +51 -51
  74. package/src/decorators/internal/route_error.ts +45 -45
  75. package/src/decorators/internal/validate_request_body.ts +57 -61
  76. package/src/decorators/internal/validate_request_headers.ts +68 -73
  77. package/src/decorators/internal/validate_request_query.ts +56 -59
  78. package/src/index.ts +5 -5
  79. package/src/module.ts +14 -14
  80. package/src/options/INestiaTransformOptions.ts +17 -17
  81. package/src/options/INestiaTransformProject.ts +7 -7
  82. package/src/options/IRequestBodyValidator.ts +20 -20
  83. package/src/options/IRequestHeadersValidator.ts +22 -22
  84. package/src/options/IRequestQueryValidator.ts +20 -20
  85. package/src/options/IResponseBodyQuerifier.ts +25 -25
  86. package/src/options/IResponseBodyStringifier.ts +25 -25
  87. package/src/programmers/PlainBodyProgrammer.ts +52 -56
  88. package/src/programmers/TypedBodyProgrammer.ts +108 -112
  89. package/src/programmers/TypedExceptionProgrammer.ts +72 -76
  90. package/src/programmers/TypedHeadersProgrammer.ts +56 -59
  91. package/src/programmers/TypedParamProgrammer.ts +24 -25
  92. package/src/programmers/TypedQueryBodyProgrammer.ts +56 -57
  93. package/src/programmers/TypedQueryProgrammer.ts +56 -57
  94. package/src/programmers/TypedQueryRouteProgrammer.ts +51 -55
  95. package/src/programmers/TypedRouteProgrammer.ts +51 -55
  96. package/src/programmers/http/HttpAssertQuerifyProgrammer.ts +58 -59
  97. package/src/programmers/http/HttpIsQuerifyProgrammer.ts +62 -63
  98. package/src/programmers/http/HttpQuerifyProgrammer.ts +96 -105
  99. package/src/programmers/http/HttpValidateQuerifyProgrammer.ts +63 -64
  100. package/src/programmers/internal/CoreMetadataUtil.ts +21 -21
  101. package/src/transform.ts +35 -36
  102. package/src/transformers/FileTransformer.ts +66 -67
  103. package/src/transformers/MethodTransformer.ts +94 -97
  104. package/src/transformers/NodeTransformer.ts +16 -16
  105. package/src/transformers/ParameterDecoratorTransformer.ts +121 -126
  106. package/src/transformers/ParameterTransformer.ts +48 -53
  107. package/src/transformers/TypedExceptionTransformer.ts +49 -51
  108. package/src/transformers/TypedRouteTransformer.ts +95 -96
  109. package/src/typings/Creator.ts +3 -3
  110. package/src/utils/ExceptionManager.ts +112 -112
  111. package/src/utils/Singleton.ts +20 -20
  112. package/src/utils/SourceFinder.ts +57 -60
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterDecoratorTransformer.js","sourceRoot":"","sources":["../../src/transformers/ParameterDecoratorTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAwB;AACxB,0DAA4B;AAG5B,0EAAyE;AACzE,0EAAyE;AACzE,gFAA+E;AAC/E,4EAA2E;AAC3E,oFAAmF;AACnF,4EAA2E;AAE3E,IAAiB,6BAA6B,CAsD7C;AAtDD,WAAiB,6BAA6B;IAC7B,uCAAS,GAClB,UAAC,OAAgC;QACjC,OAAA,UAAC,IAAa;YACd,OAAA,UAAC,SAAuB;;gBACpB,MAAM;gBACN,cAAc;gBACd,MAAM;gBACN,kBAAkB;gBAClB,IAAI,CAAC,oBAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;oBAAE,OAAO,SAAS,CAAC;gBAEjE,wBAAwB;gBACxB,IAAM,WAAW,GACb,MAAA,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAChC,SAAS,CAAC,UAAU,CACvB,0CAAE,WAAW,CAAC;gBACnB,IAAI,WAAW,KAAK,SAAS;oBAAE,OAAO,SAAS,CAAC;gBAEhD,YAAY;gBACZ,IAAM,IAAI,GAAW,cAAI,CAAC,OAAO,CAC7B,WAAW,CAAC,aAAa,EAAE,CAAC,QAAQ,CACvC,CAAC;gBACF,IAAI,IAAI,CA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CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAC3B,UAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,cAAI,IAAI,CAAE,CACrD;YACH,CAAC,CAAC,IAAI;IAJV,CAIU;AALd,CAKc,CAAC"}
1
+ {"version":3,"file":"ParameterDecoratorTransformer.js","sourceRoot":"","sources":["../../src/transformers/ParameterDecoratorTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAwB;AACxB,0DAA4B;AAG5B,0EAAyE;AACzE,0EAAyE;AACzE,gFAA+E;AAC/E,4EAA2E;AAC3E,oFAAmF;AACnF,4EAA2E;AAE3E,IAAiB,6BAA6B,CAmD7C;AAnDD,WAAiB,6BAA6B;IAC/B,uCAAS,GACpB,UAAC,OAAgC;QACjC,OAAA,UAAC,IAAa;YACd,OAAA,UAAC,SAAuB;;gBACtB,MAAM;gBACN,cAAc;gBACd,MAAM;gBACN,kBAAkB;gBAClB,IAAI,CAAC,oBAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;oBAAE,OAAO,SAAS,CAAC;gBAEjE,wBAAwB;gBACxB,IAAM,WAAW,GACf,MAAA,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,CAAC,0CAAE,WAAW,CAAC;gBAC1E,IAAI,WAAW,KAAK,SAAS;oBAAE,OAAO,SAAS,CAAC;gBAEhD,YAAY;gBACZ,IAAM,IAAI,GAAW,cAAI,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC,QAAQ,CAAC,CAAC;gBACxE,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;oBAChE,OAAO,SAAS,CAAC;gBAEnB,MAAM;gBACN,iBAAiB;gBACjB,MAAM;gBACN,kBAAkB;gBAClB,IAAM,U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"}
@@ -1 +1 @@
1
- {"version":3,"file":"ParameterTransformer.js","sourceRoot":"","sources":["../../src/transformers/ParameterTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAG5B,iFAAgF;AAEhF,IAAiB,oBAAoB,CA+CpC;AA/CD,WAAiB,oBAAoB;IACpB,8BAAS,GAClB,UAAC,OAAgC;QACjC,OAAA,UAAC,KAA8B;YAC3B,kBAAkB;YAClB,IAAM,UAAU,GACZ,oBAAE,CAAC,aAAa;gBACZ,CAAC,CAAC,oBAAE,CAAC,aAAa,CAAC,KAAK,CAAC;gBACzB,CAAC,CAAE,KAAa,CAAC,UAAU,CAAC;YACpC,IAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,CAAA;gBAAE,OAAO,KAAK,CAAC;YAEtC,gBAAgB;YAChB,IAAM,IAAI,GAAY,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAE/D,yBAAyB;YACzB,IAAI,oBAAE,CAAC,aAAa,KAAK,SAAS;gBAC9B,OAAO,oBAAE,CAAC,OAAO,CAAC,0BAA0B,CACxC,KAAK,EACL,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,UAAC,GAAG;oBAC5B,OAAA,oBAAE,CAAC,WAAW,CAAC,GAAG,CAAC;wBACf,CAAC,CAAC,6DAA6B,CAAC,SAAS,CAAC,OAAO,CAAC,CAC5C,IAAI,CACP,CAAC,GAAG,CAAC;wBACR,CAAC,CAAC,GAAG;gBAJT,CAIS,CACZ,EACD,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,aAAa,EACnB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,WAAW,CACpB,CAAC;YACN,2BAA2B;YAC3B,OAAQ,oBAAE,CAAC,OAAO,CAAC,0BAAkC,CACjD,KAAK,EACL,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI;gBAChB,OAAA,6DAA6B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAClD,IAAI,CACP;YAFD,CAEC,CACJ,EACA,KAAa,CAAC,SAAS,EACxB,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,aAAa,EACnB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,WAAW,CACpB,CAAC;QACN,CAAC;IA3CD,CA2CC,CAAC;AACV,CAAC,EA/CgB,oBAAoB,oCAApB,oBAAoB,QA+CpC"}
1
+ {"version":3,"file":"ParameterTransformer.js","sourceRoot":"","sources":["../../src/transformers/ParameterTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,0DAA4B;AAG5B,iFAAgF;AAEhF,IAAiB,oBAAoB,CA0CpC;AA1CD,WAAiB,oBAAoB;IACtB,8BAAS,GACpB,UAAC,OAAgC;QACjC,OAAA,UAAC,KAA8B;YAC7B,kBAAkB;YAClB,IAAM,UAAU,GAAwC,oBAAE,CAAC,aAAa;gBACtE,CAAC,CAAC,oBAAE,CAAC,aAAa,CAAC,KAAK,CAAC;gBACzB,CAAC,CAAE,KAAa,CAAC,UAAU,CAAC;YAC9B,IAAI,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,CAAA;gBAAE,OAAO,KAAK,CAAC;YAEtC,gBAAgB;YAChB,IAAM,IAAI,GAAY,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;YAE/D,yBAAyB;YACzB,IAAI,oBAAE,CAAC,aAAa,KAAK,SAAS;gBAChC,OAAO,oBAAE,CAAC,OAAO,CAAC,0BAA0B,CAC1C,KAAK,EACL,CAAC,KAAK,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,UAAC,GAAG;oBAC9B,OAAA,oBAAE,CAAC,WAAW,CAAC,GAAG,CAAC;wBACjB,CAAC,CAAC,6DAA6B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;wBAC7D,CAAC,CAAC,GAAG;gBAFP,CAEO,CACR,EACD,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,aAAa,EACnB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,WAAW,CAClB,CAAC;YACJ,2BAA2B;YAC3B,OAAQ,oBAAE,CAAC,OAAO,CAAC,0BAAkC,CACnD,KAAK,EACL,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI;gBAClB,OAAA,6DAA6B,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC;YAA5D,CAA4D,CAC7D,EACA,KAAa,CAAC,SAAS,EACxB,KAAK,CAAC,cAAc,EACpB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,aAAa,EACnB,KAAK,CAAC,IAAI,EACV,KAAK,CAAC,WAAW,CAClB,CAAC;QACJ,CAAC;IAtCD,CAsCC,CAAC;AACN,CAAC,EA1CgB,oBAAoB,oCAApB,oBAAoB,QA0CpC"}
@@ -1 +1 @@
1
- {"version":3,"file":"TypedExceptionTransformer.js","sourceRoot":"","sources":["../../src/transformers/TypedExceptionTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAwB;AACxB,0DAA4B;AAG5B,oFAAmF;AAEnF,IAAiB,yBAAyB,CA4CzC;AA5CD,WAAiB,yBAAyB;IACzB,mCAAS,GAClB,UAAC,OAAgC;QACjC,OAAA,UAAC,SAAuB;YACpB,IAAI,CAAC,oBAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;gBAAE,OAAO,SAAS,CAAC;YAEjE,kBAAkB;YAClB,IAAM,SAAS,GACX,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YAC/D,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,WAAW;gBAAE,OAAO,SAAS,CAAC;YAE3D,0BAA0B;YAC1B,IAAM,IAAI,GAAY,CAAC;gBACnB,iBAAiB;gBACjB,IAAM,QAAQ,GAAW,cAAI,CAAC,OAAO,CACjC,SAAS,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC,QAAQ,CACjD,CAAC;gBACF,IAAI,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,IAAI,QAAQ,KAAK,QAAQ;oBAC1D,OAAO,KAAK,CAAC;gBAEjB,mBAAmB;gBACnB,OAAO,SAAS,CAAC,UAAU,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,CAAC;YACvD,CAAC,CAAC,EAAE,CAAC;YACL,IAAI,IAAI,KAAK,KAAK;gBAAE,OAAO,SAAS,CAAC;YAErC,eAAe;YACf,OAAO,oBAAE,CAAC,OAAO,CAAC,eAAe,CAC7B,mDAAwB,CAAC,QAAQ,CAAC,OAAO,CAAC,CACtC,SAAS,CAAC,UAAU,CACvB,CACJ,CAAC;QACN,CAAC;IA5BD,CA4BC,CAAC;IAEN,IAAM,QAAQ,GAAG,cAAI,CAAC,IAAI,CACtB,cAAc,EACd,SAAS,EACT,MAAM,EACN,KAAK,EACL,YAAY,EACZ,qBAAqB,CACxB,CAAC;IACF,IAAM,QAAQ,GAAG,cAAI,CAAC,OAAO,CACzB,cAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,YAAY,EAAE,mBAAmB,CAAC,CAChE,CAAC;AACN,CAAC,EA5CgB,yBAAyB,yCAAzB,yBAAyB,QA4CzC"}
1
+ {"version":3,"file":"TypedExceptionTransformer.js","sourceRoot":"","sources":["../../src/transformers/TypedExceptionTransformer.ts"],"names":[],"mappings":";;;;;;AAAA,8CAAwB;AACxB,0DAA4B;AAG5B,oFAAmF;AAEnF,IAAiB,yBAAyB,CA0CzC;AA1CD,WAAiB,yBAAyB;IAC3B,mCAAS,GACpB,UAAC,OAAgC;QACjC,OAAA,UAAC,SAAuB;YACtB,IAAI,CAAC,oBAA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,8 +61,7 @@ var TypedRouteTransformer;
61
61
  if (isObject(project.checker)(type_1))
62
62
  return false;
63
63
  }
64
- return ((_a = location.split(path_1.default.sep).at(-1)) === null || _a === void 0 ? void 0 : _a.split(".")[0]) ===
65
- "TypedQuery"
64
+ return ((_a = location.split(path_1.default.sep).at(-1)) === null || _a === void 0 ? void 0 : _a.split(".")[0]) === "TypedQuery"
66
65
  ? "TypedQuery"
67
66
  : "TypedRoute";
68
67
  })();
@@ -1 +1 @@
1
- {"version":3,"file":"TypedRouteTransformer.js","sourceRoot":"","sources":["../../src/transformers/TypedRouteTransformer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,8CAAwB;AACxB,0DAA4B;AAG5B,sFAAqF;AACrF,4EAA2E;AAE3E,IAAiB,qBAAqB,CAwFrC;AAxFD,WAAiB,qBAAqB;IACrB,+BAAS,GAClB,UAAC,OAAgC;QACjC,OAAA,UAAC,IAAa;YACd,OAAA,UAAC,SAAuB;gBACpB,IAAI,CAAC,oBAAE,CAAC,gBAAgB,CAAC,SAAS,CAAC,UAAU,CAAC;oBAAE,OAAO,SAAS,CAAC;gBAEjE,kBAAkB;gBAClB,IAAM,SAAS,GACX,OAAO,CAAC,OAAO,CAAC,oBAAoB,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;gBAC/D,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,WAAW;oBAAE,OAAO,SAAS,CAAC;gBAE3D,0BAA0B;gBAC1B,IAAM,MAAM,GAAG,CAAC;;oBACZ,iBAAiB;oBACjB,IAAM,QAAQ,GAAW,cAAI,CAAC,OAAO,CACjC,SAAS,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC,QAAQ,CACjD,CAAC;oBACF,IACI,SAAS,CAAC,KAAK,CAAC,UAAC,GAAG,IAAK,OAAA,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,EAA5B,CAA4B,CAAC;wBACtD,SAAS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I,mBAAoC,QAAiB;QAAjB,aAAQ,GAAR,QAAQ,CAAS;QACjD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC;IAClC,CAAC;IAEM,uBAAG,GAAV;QACI,IAAI,IAAI,CAAC,MAAM,KAAK,eAAe;YAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,MAAW,CAAC;IAC5B,CAAC;IACL,gBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,8BAAS;AAatB;;GAEG;AACH,IAAM,eAAe,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"Singleton.js","sourceRoot":"","sources":["../../src/utils/Singleton.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH;IAGE,mBAAoC,QAAiB;QAAjB,aAAQ,GAAR,QAAQ,CAAS;QACnD,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC;IAChC,CAAC;IAEM,uBAAG,GAAV;QACE,IAAI,IAAI,CAAC,MAAM,KAAK,eAAe;YAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,MAAW,CAAC;IAC1B,CAAC;IACH,gBAAC;AAAD,CAAC,AAXD,IAWC;AAXY,8BAAS;AAatB;;GAEG;AACH,IAAM,eAAe,GAAG,EAAE,CAAC"}
@@ -93,9 +93,7 @@ var SourceFinder;
93
93
  case 1:
94
94
  _b.sent();
95
95
  if (!((_a = props.exclude) === null || _a === void 0 ? void 0 : _a.length)) return [3 /*break*/, 3];
96
- return [4 /*yield*/, emplace(props.filter)(props.exclude)(function (str) {
97
- return dict.delete(str);
98
- })];
96
+ return [4 /*yield*/, emplace(props.filter)(props.exclude)(function (str) { return dict.delete(str); })];
99
97
  case 2:
100
98
  _b.sent();
101
99
  _b.label = 3;
@@ -1 +1 @@
1
- {"version":3,"file":"SourceFinder.js","sourceRoot":"","sources":["../../src/utils/SourceFinder.ts"],"names":[],"mappings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AClE,IAAI,KAAK,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,IAAI,CAAC;gCAAE,OAAO,CAAC,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;iBAE1D;QATD,CASC;IAVD,CAUC,CAAC;IAEJ,IAAM,KAAK,GAAG,UAAC,OAAe;QAC5B,OAAA,IAAI,OAAO,CAAC,UAAC,OAAO,EAAE,MAAM;YAC1B,IAAA,cAAI,EAAC,OAAO,EAAE,UAAC,GAAG,EAAE,OAAO;gBACzB,IAAI,GAAG;oBAAE,MAAM,CAAC,GAAG,CAAC,CAAC;;oBAChB,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,UAAC,GAAG,IAAK,OAAA,cAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAjB,CAAiB,CAAC,CAAC,CAAC;YACxD,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;IALF,CAKE,CAAC;AACP,CAAC,EA9CgB,YAAY,4BAAZ,YAAY,QA8C5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/core",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Super-fast validation decorators of NestJS",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -16,7 +16,6 @@
16
16
  "eslint:fix": "eslint ./**/*.ts --fix",
17
17
  "package:latest": "npm run build && npm publish --access public",
18
18
  "package:next": "npm run package:latest -- --tag next",
19
- "prettier": "prettier ./**/*.ts --write",
20
19
  "prepare": "ts-patch install && typia patch"
21
20
  },
22
21
  "repository": {
@@ -39,7 +38,7 @@
39
38
  },
40
39
  "homepage": "https://nestia.io",
41
40
  "dependencies": {
42
- "@nestia/fetcher": "^2.4.2",
41
+ "@nestia/fetcher": "^2.4.3",
43
42
  "@nestjs/common": ">=7.0.1",
44
43
  "@nestjs/core": ">=7.0.1",
45
44
  "@nestjs/platform-express": ">=7.0.1",
@@ -52,7 +51,7 @@
52
51
  "typia": "^5.3.4"
53
52
  },
54
53
  "peerDependencies": {
55
- "@nestia/fetcher": ">=2.4.2",
54
+ "@nestia/fetcher": ">=2.4.3",
56
55
  "@nestjs/common": ">=7.0.1",
57
56
  "@nestjs/core": ">=7.0.1",
58
57
  "@nestjs/platform-express": ">=7.0.1",
@@ -64,7 +63,6 @@
64
63
  "typia": ">=5.3.4 <6.0.0"
65
64
  },
66
65
  "devDependencies": {
67
- "@trivago/prettier-plugin-sort-imports": "^4.0.0",
68
66
  "@types/express": "^4.17.15",
69
67
  "@types/glob": "^7.2.0",
70
68
  "@types/inquirer": "^9.0.3",
@@ -76,7 +74,6 @@
76
74
  "eslint-plugin-deprecation": "^1.4.1",
77
75
  "git-last-commit": "^1.0.1",
78
76
  "inquirer": "^8.2.5",
79
- "prettier": "^2.8.7",
80
77
  "rimraf": "^3.0.2",
81
78
  "ts-node": "^10.9.1",
82
79
  "ts-patch": "^3.1.0",
@@ -1,39 +1,39 @@
1
- import { Module } from "@nestjs/common";
2
- import { ModuleMetadata } from "@nestjs/common/interfaces";
3
-
4
- import { Creator } from "../typings/Creator";
5
- import { load_controllers } from "./internal/load_controller";
6
-
7
- /**
8
- * Dynamic module.
9
- *
10
- * `DynamicModule` is a namespace wrapping a convenient function, which can load
11
- * controller classes dynamically just by specifying their directory path.
12
- *
13
- * @author Jeongho Nam - https://github.com/samchon
14
- */
15
- export namespace DynamicModule {
16
- /**
17
- * Mount dynamic module.
18
- *
19
- * Constructs a module instance with directory path of controller classes.
20
- *
21
- * Every controller classes in the target directory would be dynamically mounted.
22
- *
23
- * @param path Path of controllers
24
- * @param metadata Addtional metadata except controllers
25
- * @returns module instance
26
- */
27
- export async function mount(
28
- path: string | string[] | { include: string[]; exclude?: string[] },
29
- metadata: Omit<ModuleMetadata, "controllers"> = {},
30
- ): Promise<object> {
31
- // LOAD CONTROLLERS
32
- const controllers: Creator<object>[] = await load_controllers(path);
33
-
34
- // RETURN WITH DECORATING
35
- @Module({ ...metadata, controllers })
36
- class NestiaModule {}
37
- return NestiaModule;
38
- }
39
- }
1
+ import { Module } from "@nestjs/common";
2
+ import { ModuleMetadata } from "@nestjs/common/interfaces";
3
+
4
+ import { Creator } from "../typings/Creator";
5
+ import { load_controllers } from "./internal/load_controller";
6
+
7
+ /**
8
+ * Dynamic module.
9
+ *
10
+ * `DynamicModule` is a namespace wrapping a convenient function, which can load
11
+ * controller classes dynamically just by specifying their directory path.
12
+ *
13
+ * @author Jeongho Nam - https://github.com/samchon
14
+ */
15
+ export namespace DynamicModule {
16
+ /**
17
+ * Mount dynamic module.
18
+ *
19
+ * Constructs a module instance with directory path of controller classes.
20
+ *
21
+ * Every controller classes in the target directory would be dynamically mounted.
22
+ *
23
+ * @param path Path of controllers
24
+ * @param metadata Addtional metadata except controllers
25
+ * @returns module instance
26
+ */
27
+ export async function mount(
28
+ path: string | string[] | { include: string[]; exclude?: string[] },
29
+ metadata: Omit<ModuleMetadata, "controllers"> = {},
30
+ ): Promise<object> {
31
+ // LOAD CONTROLLERS
32
+ const controllers: Creator<object>[] = await load_controllers(path);
33
+
34
+ // RETURN WITH DECORATING
35
+ @Module({ ...metadata, controllers })
36
+ class NestiaModule {}
37
+ return NestiaModule;
38
+ }
39
+ }
@@ -1,13 +1,12 @@
1
1
  import { AesPkcs5 } from "@nestia/fetcher/lib/AesPkcs5";
2
2
  import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
3
3
  import {
4
- BadRequestException,
5
- ExecutionContext,
6
- createParamDecorator,
4
+ BadRequestException,
5
+ ExecutionContext,
6
+ createParamDecorator,
7
7
  } from "@nestjs/common";
8
8
  import type express from "express";
9
9
  import type { FastifyRequest } from "fastify";
10
-
11
10
  import { assert, is, validate } from "typia";
12
11
 
13
12
  import { IRequestBodyValidator } from "../options/IRequestBodyValidator";
@@ -39,49 +38,42 @@ import { validate_request_body } from "./internal/validate_request_body";
39
38
  * @author Jeongho Nam - https://github.com/samchon
40
39
  */
41
40
  export function EncryptedBody<T>(
42
- validator?: IRequestBodyValidator<T>,
41
+ validator?: IRequestBodyValidator<T>,
43
42
  ): ParameterDecorator {
44
- const checker = validate_request_body("EncryptedBody")(validator);
45
- return createParamDecorator(async function EncryptedBody(
46
- _unknown: any,
47
- context: ExecutionContext,
48
- ) {
49
- const request: express.Request | FastifyRequest = context
50
- .switchToHttp()
51
- .getRequest();
52
- if (isTextPlain(request.headers["content-type"]) === false)
53
- throw new BadRequestException(
54
- `Request body type is not "text/plain".`,
55
- );
43
+ const checker = validate_request_body("EncryptedBody")(validator);
44
+ return createParamDecorator(async function EncryptedBody(
45
+ _unknown: any,
46
+ context: ExecutionContext,
47
+ ) {
48
+ const request: express.Request | FastifyRequest = context
49
+ .switchToHttp()
50
+ .getRequest();
51
+ if (isTextPlain(request.headers["content-type"]) === false)
52
+ throw new BadRequestException(`Request body type is not "text/plain".`);
56
53
 
57
- const param:
58
- | IEncryptionPassword
59
- | IEncryptionPassword.Closure
60
- | undefined = Reflect.getMetadata(
61
- ENCRYPTION_METADATA_KEY,
62
- context.getClass(),
63
- );
64
- if (!param)
65
- throw new Error(
66
- "Error on nestia.core.EncryptedBody(): no encryption password is given.",
67
- );
54
+ const param: IEncryptionPassword | IEncryptionPassword.Closure | undefined =
55
+ Reflect.getMetadata(ENCRYPTION_METADATA_KEY, context.getClass());
56
+ if (!param)
57
+ throw new Error(
58
+ "Error on nestia.core.EncryptedBody(): no encryption password is given.",
59
+ );
68
60
 
69
- // GET BODY DATA
70
- const headers: Singleton<Record<string, string>> = new Singleton(() =>
71
- headers_to_object(request.headers),
72
- );
73
- const body: string = await get_text_body(request);
74
- const password: IEncryptionPassword =
75
- typeof param === "function"
76
- ? param({ headers: headers.get(), body, direction: "decode" })
77
- : param;
61
+ // GET BODY DATA
62
+ const headers: Singleton<Record<string, string>> = new Singleton(() =>
63
+ headers_to_object(request.headers),
64
+ );
65
+ const body: string = await get_text_body(request);
66
+ const password: IEncryptionPassword =
67
+ typeof param === "function"
68
+ ? param({ headers: headers.get(), body, direction: "decode" })
69
+ : param;
78
70
 
79
- // PARSE AND VALIDATE DATA
80
- const data: any = JSON.parse(decrypt(body, password.key, password.iv));
81
- const error: Error | null = checker(data);
82
- if (error !== null) throw error;
83
- return data;
84
- })();
71
+ // PARSE AND VALIDATE DATA
72
+ const data: any = JSON.parse(decrypt(body, password.key, password.iv));
73
+ const error: Error | null = checker(data);
74
+ if (error !== null) throw error;
75
+ return data;
76
+ })();
85
77
  }
86
78
  Object.assign(EncryptedBody, is);
87
79
  Object.assign(EncryptedBody, assert);
@@ -91,20 +83,20 @@ Object.assign(EncryptedBody, validate);
91
83
  * @internal
92
84
  */
93
85
  const decrypt = (body: string, key: string, iv: string): string => {
94
- try {
95
- return AesPkcs5.decrypt(body, key, iv);
96
- } catch (exp) {
97
- if (exp instanceof Error)
98
- throw new BadRequestException(
99
- "Failed to decrypt the request body. Check your body content or encryption password.",
100
- );
101
- else throw exp;
102
- }
86
+ try {
87
+ return AesPkcs5.decrypt(body, key, iv);
88
+ } catch (exp) {
89
+ if (exp instanceof Error)
90
+ throw new BadRequestException(
91
+ "Failed to decrypt the request body. Check your body content or encryption password.",
92
+ );
93
+ else throw exp;
94
+ }
103
95
  };
104
96
 
105
97
  const isTextPlain = (text?: string): boolean =>
106
- text !== undefined &&
107
- text
108
- .split(";")
109
- .map((str) => str.trim())
110
- .some((str) => str === "text/plain");
98
+ text !== undefined &&
99
+ text
100
+ .split(";")
101
+ .map((str) => str.trim())
102
+ .some((str) => str === "text/plain");
@@ -1,38 +1,38 @@
1
- import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
2
- import { Controller } from "@nestjs/common";
3
-
4
- import { ENCRYPTION_METADATA_KEY } from "./internal/EncryptedConstant";
5
-
6
- /**
7
- * Encrypted controller.
8
- *
9
- * `EncryptedController` is an extension of the {@link nest.Controller} class decorator
10
- * function who configures encryption password of the AES-128/256 algorithm. The
11
- * encryption algorithm and password would be used by {@link EncryptedRoute} and
12
- * {@link EncryptedBody} to encrypt the request and response body of the HTTP protocol.
13
- *
14
- * By the way, you can configure the encryption password in the global level by using
15
- * {@link EncryptedModule} instead of the {@link nest.Module} in the module level. In
16
- * that case, you don't need to use this `EncryptedController` more. Just use the
17
- * {@link nest.Controller} without duplicated encryption password definitions.
18
- *
19
- * Of course, if you want to use different encryption password from the
20
- * {@link EncryptedModule}, this `EncryptedController` would be useful again. Therefore,
21
- * I recommend to use this `EncryptedController` decorator function only when you must
22
- * configure different encryption password from the {@link EncryptedModule}.
23
- *
24
- * @param path Path of the HTTP request
25
- * @param password Encryption password or its getter function
26
- * @returns Class decorator
27
- *
28
- * @author Jeongho Nam - https://github.com/samchon
29
- */
30
- export function EncryptedController(
31
- path: string,
32
- password: IEncryptionPassword | IEncryptionPassword.Closure,
33
- ): ClassDecorator {
34
- return function (target: any) {
35
- Reflect.defineMetadata(ENCRYPTION_METADATA_KEY, password, target);
36
- Controller(path)(target);
37
- };
38
- }
1
+ import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
2
+ import { Controller } from "@nestjs/common";
3
+
4
+ import { ENCRYPTION_METADATA_KEY } from "./internal/EncryptedConstant";
5
+
6
+ /**
7
+ * Encrypted controller.
8
+ *
9
+ * `EncryptedController` is an extension of the {@link nest.Controller} class decorator
10
+ * function who configures encryption password of the AES-128/256 algorithm. The
11
+ * encryption algorithm and password would be used by {@link EncryptedRoute} and
12
+ * {@link EncryptedBody} to encrypt the request and response body of the HTTP protocol.
13
+ *
14
+ * By the way, you can configure the encryption password in the global level by using
15
+ * {@link EncryptedModule} instead of the {@link nest.Module} in the module level. In
16
+ * that case, you don't need to use this `EncryptedController` more. Just use the
17
+ * {@link nest.Controller} without duplicated encryption password definitions.
18
+ *
19
+ * Of course, if you want to use different encryption password from the
20
+ * {@link EncryptedModule}, this `EncryptedController` would be useful again. Therefore,
21
+ * I recommend to use this `EncryptedController` decorator function only when you must
22
+ * configure different encryption password from the {@link EncryptedModule}.
23
+ *
24
+ * @param path Path of the HTTP request
25
+ * @param password Encryption password or its getter function
26
+ * @returns Class decorator
27
+ *
28
+ * @author Jeongho Nam - https://github.com/samchon
29
+ */
30
+ export function EncryptedController(
31
+ path: string,
32
+ password: IEncryptionPassword | IEncryptionPassword.Closure,
33
+ ): ClassDecorator {
34
+ return function (target: any) {
35
+ Reflect.defineMetadata(ENCRYPTION_METADATA_KEY, password, target);
36
+ Controller(path)(target);
37
+ };
38
+ }
@@ -1,79 +1,79 @@
1
- import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
2
- import { Module } from "@nestjs/common";
3
-
4
- import { Creator } from "../typings/Creator";
5
- import { ENCRYPTION_METADATA_KEY } from "./internal/EncryptedConstant";
6
- import { load_controllers } from "./internal/load_controller";
7
-
8
- /**
9
- * Encrypted module.
10
- *
11
- * `EncryptedModule` is an extension of the {@link Module} class decorator function
12
- * who configures encryption password of the AES-128/256 algorithm. The encryption
13
- * algorithm and password would be used by {@link EncryptedRoute} and {@link EncryptedBody}
14
- * to encrypt the request and response bod of the HTTP protocol.
15
- *
16
- * By using this `EncryptedModule` decorator function, all of the
17
- * {@link Controller controllers} configured in the *metadata* would be automatically
18
- * changed to the {@link EncryptedController} with the *password*. If there're some
19
- * original {@link EncryptedController} decorated classes in the *metadata*, their
20
- * encryption password would be kept.
21
- *
22
- * Therefore, if you're planning to place original {@link EncryptedController} decorated
23
- * classes in the *metadata*, I hope them to have different encryption password from the
24
- * module level. If not, I recommend you use the {@link Controller} decorator
25
- * function instead.
26
- *
27
- * In addition, the `EncryptedModule` supports a convenient dynamic controller importing
28
- * function, {@link EncryptedModule.dynamic}. If you utilize the function with directory
29
- * path of the controller classes, it imports and configures the controller classes into
30
- * the `Module`, automatically.
31
- *
32
- * @param metadata Module configuration metadata
33
- * @param password Encryption password or its getter function
34
- * @returns Class decorator
35
- *
36
- * @author Jeongho Nam - https://github.com/samchon
37
- */
38
- export function EncryptedModule(
39
- metadata: Parameters<typeof Module>[0],
40
- password: IEncryptionPassword | IEncryptionPassword.Closure,
41
- ): ClassDecorator {
42
- return function (target: any) {
43
- Module(metadata)(target);
44
- if (metadata.controllers === undefined) return;
45
-
46
- for (const c of metadata.controllers)
47
- if (Reflect.hasMetadata(ENCRYPTION_METADATA_KEY, c) === false)
48
- Reflect.defineMetadata(ENCRYPTION_METADATA_KEY, password, c);
49
- };
50
- }
51
-
52
- export namespace EncryptedModule {
53
- /**
54
- * Dynamic encrypted module.
55
- *
56
- * `EncryptedModule.dynamic` is an extension of the {@link EncryptedModule} function
57
- * who configures controller classes by the dynamic importing. By specifying directory
58
- * path of the controller classes, those controllers would be automatically imported
59
- * and configured.
60
- *
61
- * @param path Directory path of the controller classes
62
- * @param password Encryption password or its getter function
63
- * @param options Additional options except controller
64
- * @returns Class decorated module instance
65
- */
66
- export async function dynamic(
67
- path: string | string[] | { include: string[]; exclude?: string[] },
68
- password: IEncryptionPassword | IEncryptionPassword.Closure,
69
- options: Omit<Parameters<typeof Module>[0], "controllers"> = {},
70
- ): Promise<object> {
71
- // LOAD CONTROLLERS
72
- const controllers: Creator<object>[] = await load_controllers(path);
73
-
74
- // RETURNS WITH DECORATING
75
- @EncryptedModule({ ...options, controllers }, password)
76
- class NestiaModule {}
77
- return NestiaModule;
78
- }
79
- }
1
+ import { IEncryptionPassword } from "@nestia/fetcher/lib/IEncryptionPassword";
2
+ import { Module } from "@nestjs/common";
3
+
4
+ import { Creator } from "../typings/Creator";
5
+ import { ENCRYPTION_METADATA_KEY } from "./internal/EncryptedConstant";
6
+ import { load_controllers } from "./internal/load_controller";
7
+
8
+ /**
9
+ * Encrypted module.
10
+ *
11
+ * `EncryptedModule` is an extension of the {@link Module} class decorator function
12
+ * who configures encryption password of the AES-128/256 algorithm. The encryption
13
+ * algorithm and password would be used by {@link EncryptedRoute} and {@link EncryptedBody}
14
+ * to encrypt the request and response bod of the HTTP protocol.
15
+ *
16
+ * By using this `EncryptedModule` decorator function, all of the
17
+ * {@link Controller controllers} configured in the *metadata* would be automatically
18
+ * changed to the {@link EncryptedController} with the *password*. If there're some
19
+ * original {@link EncryptedController} decorated classes in the *metadata*, their
20
+ * encryption password would be kept.
21
+ *
22
+ * Therefore, if you're planning to place original {@link EncryptedController} decorated
23
+ * classes in the *metadata*, I hope them to have different encryption password from the
24
+ * module level. If not, I recommend you use the {@link Controller} decorator
25
+ * function instead.
26
+ *
27
+ * In addition, the `EncryptedModule` supports a convenient dynamic controller importing
28
+ * function, {@link EncryptedModule.dynamic}. If you utilize the function with directory
29
+ * path of the controller classes, it imports and configures the controller classes into
30
+ * the `Module`, automatically.
31
+ *
32
+ * @param metadata Module configuration metadata
33
+ * @param password Encryption password or its getter function
34
+ * @returns Class decorator
35
+ *
36
+ * @author Jeongho Nam - https://github.com/samchon
37
+ */
38
+ export function EncryptedModule(
39
+ metadata: Parameters<typeof Module>[0],
40
+ password: IEncryptionPassword | IEncryptionPassword.Closure,
41
+ ): ClassDecorator {
42
+ return function (target: any) {
43
+ Module(metadata)(target);
44
+ if (metadata.controllers === undefined) return;
45
+
46
+ for (const c of metadata.controllers)
47
+ if (Reflect.hasMetadata(ENCRYPTION_METADATA_KEY, c) === false)
48
+ Reflect.defineMetadata(ENCRYPTION_METADATA_KEY, password, c);
49
+ };
50
+ }
51
+
52
+ export namespace EncryptedModule {
53
+ /**
54
+ * Dynamic encrypted module.
55
+ *
56
+ * `EncryptedModule.dynamic` is an extension of the {@link EncryptedModule} function
57
+ * who configures controller classes by the dynamic importing. By specifying directory
58
+ * path of the controller classes, those controllers would be automatically imported
59
+ * and configured.
60
+ *
61
+ * @param path Directory path of the controller classes
62
+ * @param password Encryption password or its getter function
63
+ * @param options Additional options except controller
64
+ * @returns Class decorated module instance
65
+ */
66
+ export async function dynamic(
67
+ path: string | string[] | { include: string[]; exclude?: string[] },
68
+ password: IEncryptionPassword | IEncryptionPassword.Closure,
69
+ options: Omit<Parameters<typeof Module>[0], "controllers"> = {},
70
+ ): Promise<object> {
71
+ // LOAD CONTROLLERS
72
+ const controllers: Creator<object>[] = await load_controllers(path);
73
+
74
+ // RETURNS WITH DECORATING
75
+ @EncryptedModule({ ...options, controllers }, password)
76
+ class NestiaModule {}
77
+ return NestiaModule;
78
+ }
79
+ }