cabloy 5.1.20 → 5.1.22

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 (227) hide show
  1. package/package.json +1 -1
  2. package/scripts/upgrade.ts +13 -5
  3. package/vona/pnpm-lock.yaml +72 -70
  4. package/vona/src/suite-vendor/a-auth/tsconfig.json +0 -3
  5. package/vona/src/suite-vendor/a-cabloy/tsconfig.json +0 -9
  6. package/vona/src/suite-vendor/a-captcha/tsconfig.json +0 -3
  7. package/vona/src/suite-vendor/a-vona/tsconfig.json +0 -3
  8. package/vona/src/suite/.gitkeep +0 -0
  9. package/vona/src/suite-vendor/.gitkeep +0 -0
  10. package/vona/src/suite-vendor/a-auth/modules/test-auth/package.json +0 -52
  11. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/index.ts +0 -74
  12. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/this.ts +0 -2
  13. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/controller/passport.ts +0 -19
  14. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/index.ts +0 -1
  15. package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authOauth.test.ts +0 -55
  16. package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authSimple.test.ts +0 -52
  17. package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.build.json +0 -11
  18. package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.json +0 -7
  19. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/package.json +0 -60
  20. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/index.ts +0 -103
  21. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/this.ts +0 -2
  22. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/bean/meta.status.ts +0 -15
  23. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/controller/status.ts +0 -44
  24. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/index.ts +0 -1
  25. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/datasource.test.ts +0 -51
  26. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/socket.test.ts +0 -48
  27. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/status.test.ts +0 -10
  28. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.build.json +0 -11
  29. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.json +0 -7
  30. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/package.json +0 -63
  31. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/index.ts +0 -377
  32. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/locales.ts +0 -18
  33. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/this.ts +0 -2
  34. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/meta.version.ts +0 -49
  35. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/ssrMenu.product.ts +0 -26
  36. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/en-us.ts +0 -15
  37. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/zh-cn.ts +0 -15
  38. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/controller/product.tsx +0 -64
  39. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productCreate.tsx +0 -40
  40. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectReq.tsx +0 -25
  41. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectRes.tsx +0 -11
  42. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectResItem.tsx +0 -39
  43. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productUpdate.tsx +0 -30
  44. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productView.tsx +0 -25
  45. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/entity/product.tsx +0 -65
  46. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/index.ts +0 -2
  47. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/model/product.ts +0 -10
  48. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/service/product.ts +0 -37
  49. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/permission.test.ts +0 -19
  50. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/product.test.ts +0 -65
  51. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.build.json +0 -11
  52. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.json +0 -7
  53. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/package.json +0 -60
  54. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -161
  55. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/locales.ts +0 -18
  56. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/this.ts +0 -2
  57. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/en-us.ts +0 -13
  58. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/zh-cn.ts +0 -11
  59. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +0 -43
  60. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +0 -37
  61. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testBody.ts +0 -10
  62. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testDetail.ts +0 -21
  63. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testParams.ts +0 -13
  64. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testQuery.ts +0 -12
  65. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testResult.tsx +0 -159
  66. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/index.ts +0 -2
  67. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.build.json +0 -11
  68. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.json +0 -7
  69. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/package.json +0 -52
  70. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/index.ts +0 -99
  71. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/this.ts +0 -2
  72. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/controller/captcha.ts +0 -18
  73. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/dto/signin.ts +0 -20
  74. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/index.ts +0 -1
  75. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/test/captcha.test.ts +0 -148
  76. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.build.json +0 -11
  77. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.json +0 -7
  78. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/img/vona.png +0 -0
  79. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.png +0 -0
  80. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.svg +0 -3
  81. package/vona/src/suite-vendor/a-vona/modules/test-vona/package.json +0 -61
  82. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/index.ts +0 -2181
  83. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/locales.ts +0 -18
  84. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/this.ts +0 -2
  85. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.regExp.ts +0 -34
  86. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.simple.ts +0 -80
  87. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aopMethod.test.ts +0 -63
  88. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/bean.testCtx.ts +0 -59
  89. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/broadcast.test.ts +0 -24
  90. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheMem.test.ts +0 -7
  91. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.post.ts +0 -11
  92. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.test.ts +0 -7
  93. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/event.helloEcho.ts +0 -13
  94. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/eventListener.helloEcho.ts +0 -24
  95. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.asset.ts +0 -10
  96. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.static.ts +0 -7
  97. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.version.ts +0 -108
  98. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/queue.test.ts +0 -25
  99. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test.ts +0 -13
  100. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test3.ts +0 -13
  101. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/serializerTransform.email.ts +0 -35
  102. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.caching.ts +0 -36
  103. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.test.ts +0 -36
  104. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/config.ts +0 -5
  105. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/en-us.ts +0 -21
  106. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/zh-cn.ts +0 -19
  107. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/bean.ts +0 -103
  108. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheMem.ts +0 -64
  109. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheRedis.ts +0 -56
  110. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/dtoTest.ts +0 -61
  111. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/guardPassport.ts +0 -26
  112. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/onion.ts +0 -103
  113. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/order.ts +0 -56
  114. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/passport.ts +0 -49
  115. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/performAction.ts +0 -19
  116. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/post.ts +0 -59
  117. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/queue.ts +0 -27
  118. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/serializer.ts +0 -40
  119. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/summer.ts +0 -130
  120. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/tail.ts +0 -33
  121. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/transaction.ts +0 -30
  122. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/upload.ts +0 -61
  123. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/categoryTree.ts +0 -9
  124. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderCreate.ts +0 -13
  125. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQuery.ts +0 -25
  126. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQueryPage.ts +0 -24
  127. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectRes.ts +0 -11
  128. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectResItem.ts +0 -11
  129. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderUpdate.ts +0 -13
  130. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postAggregate.ts +0 -17
  131. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postCreate.ts +0 -11
  132. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postGroup.ts +0 -14
  133. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectReq.ts +0 -36
  134. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectRes.ts +0 -11
  135. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectResItem.tsx +0 -28
  136. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/profile.ts +0 -15
  137. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/roleLazy.ts +0 -17
  138. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerArray.ts +0 -39
  139. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerLazy.ts +0 -31
  140. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerSimple.ts +0 -112
  141. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/user.ts +0 -21
  142. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userCreate.ts +0 -11
  143. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userLazy.ts +0 -20
  144. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userUpdate.ts +0 -9
  145. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/category.ts +0 -16
  146. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/order.ts +0 -21
  147. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/post.ts +0 -21
  148. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/postContent.ts +0 -16
  149. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/product.ts +0 -27
  150. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/role.ts +0 -12
  151. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/roleUser.ts +0 -16
  152. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/test.ts +0 -24
  153. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/user.ts +0 -18
  154. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/index.ts +0 -4
  155. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/index.ts +0 -1
  156. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/serializer.ts +0 -9
  157. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/category.ts +0 -22
  158. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/categoryChain.ts +0 -23
  159. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/order.ts +0 -33
  160. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/orderStats.ts +0 -29
  161. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/post.ts +0 -23
  162. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/postContent.ts +0 -23
  163. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/product.ts +0 -10
  164. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/role.ts +0 -23
  165. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/roleUser.ts +0 -10
  166. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/test.ts +0 -10
  167. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/testDynamicTable.ts +0 -23
  168. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/user.ts +0 -30
  169. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStats.ts +0 -22
  170. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStatsGroup.ts +0 -36
  171. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/aopMethod.ts +0 -38
  172. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/caching.ts +0 -89
  173. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/category.ts +0 -153
  174. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/order.ts +0 -67
  175. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/post.ts +0 -280
  176. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/product.ts +0 -5
  177. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/test.ts +0 -9
  178. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testApp.ts +0 -13
  179. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testClass.ts +0 -15
  180. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testData.ts +0 -71
  181. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/transaction.ts +0 -20
  182. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/user.ts +0 -124
  183. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/types/index.ts +0 -6
  184. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/aopMethod.test.ts +0 -21
  185. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/bean.test.ts +0 -16
  186. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/broadcast.test.ts +0 -17
  187. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheMem.test.ts +0 -10
  188. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheRedis.test.ts +0 -10
  189. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/caching.test.ts +0 -61
  190. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/summer.test.ts +0 -10
  191. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/database.test.ts +0 -132
  192. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoAggregate.test.ts +0 -44
  193. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGet.test.ts +0 -82
  194. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGroup.test.ts +0 -44
  195. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoLazy.test.ts +0 -53
  196. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoMutate.test.ts +0 -56
  197. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoQuery.test.ts +0 -70
  198. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelAggregate.test.ts +0 -222
  199. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelCache.test.ts +0 -37
  200. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGeneral.test.ts +0 -18
  201. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGroup.test.ts +0 -248
  202. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelMagic.test.ts +0 -37
  203. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelations.test.ts +0 -215
  204. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsJoins.test.ts +0 -58
  205. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsMutate.test.ts +0 -436
  206. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelWhere.test.ts +0 -173
  207. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/orm.test.ts +0 -22
  208. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/transaction.test.ts +0 -142
  209. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/event.test.ts +0 -14
  210. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/guardPassport.test.ts +0 -48
  211. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/instance.test.ts +0 -35
  212. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/jwt.test.ts +0 -28
  213. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/locale.test.ts +0 -64
  214. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/mail.test.ts +0 -14
  215. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/passport.test.ts +0 -69
  216. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/queue.test.ts +0 -11
  217. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/runtime.test.ts +0 -24
  218. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/serializer.test.ts +0 -82
  219. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/static.test.ts +0 -22
  220. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/tail.test.ts +0 -21
  221. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/upload.test.ts +0 -75
  222. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/cabloyUtils.test.ts +0 -19
  223. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/celjs.test.ts +0 -64
  224. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/mappedTypes.test.ts +0 -73
  225. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/performAction.test.ts +0 -28
  226. package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.build.json +0 -11
  227. package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.json +0 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cabloy",
3
- "version": "5.1.20",
3
+ "version": "5.1.22",
4
4
  "description": "A Node.js fullstack framework",
5
5
  "keywords": [
6
6
  "cabloy",
@@ -37,16 +37,19 @@ const WHITELIST_DIRS: string[] = [
37
37
  'zova/scripts',
38
38
  ];
39
39
 
40
+ const BLACKLIST_DIRS: string[] = [
41
+ // vona
42
+ 'vona/src/suite-vendor/a-test',
43
+ ];
44
+
40
45
  const WHITELIST_FILES: string[] = [
41
46
  // root
42
- 'package.json',
43
47
  'tsconfig.json',
44
48
  'tsconfig.base.json',
45
49
  'tsconfig.base.esm.json',
46
50
  'oxfmt.config.ts',
47
51
  'oxlint.config.ts',
48
52
  'lint-staged.config.mjs',
49
- 'LICENSE',
50
53
  // vona
51
54
  'vona/package.original.json',
52
55
  'vona/pnpm-workspace.yaml',
@@ -56,9 +59,6 @@ const WHITELIST_FILES: string[] = [
56
59
  'vona/tsconfig.base.esm.json',
57
60
  'vona/oxfmt.config.ts',
58
61
  'vona/oxlint.config.ts',
59
- 'vona/nginx.conf',
60
- 'vona/docker-compose.original.yml',
61
- 'vona/docker-compose-dockerfile-app',
62
62
  'vona/codecov.yml',
63
63
  // zova
64
64
  'zova/package.original.json',
@@ -168,6 +168,14 @@ function selectiveOverwrite(dryRun?: boolean): void {
168
168
  cpSync(src, dest, { recursive: true, filter: src => !src.includes('.DS_Store') });
169
169
  }
170
170
 
171
+ // Delete directories
172
+ for (const dir of BLACKLIST_DIRS) {
173
+ const dest = resolve(ROOT_DIR, dir);
174
+ if (existsSync(dest)) {
175
+ rmSync(dest, { recursive: true, force: true });
176
+ }
177
+ }
178
+
171
179
  // Overwrite files
172
180
  for (const file of WHITELIST_FILES) {
173
181
  const src = resolve(TEMP_DIR, file);
@@ -319,22 +319,22 @@ importers:
319
319
  version: link:src/suite/a-home/modules/home-user
320
320
  vona-module-test-auth:
321
321
  specifier: workspace:^
322
- version: link:src/suite-vendor/a-auth/modules/test-auth
322
+ version: link:src/suite-vendor/a-test/modules/test-auth
323
323
  vona-module-test-cabloy:
324
324
  specifier: workspace:^
325
- version: link:src/suite-vendor/a-cabloy/modules/test-cabloy
325
+ version: link:src/suite-vendor/a-test/modules/test-cabloy
326
326
  vona-module-test-captcha:
327
327
  specifier: workspace:^
328
- version: link:src/suite-vendor/a-captcha/modules/test-captcha
328
+ version: link:src/suite-vendor/a-test/modules/test-captcha
329
329
  vona-module-test-rest:
330
330
  specifier: workspace:^
331
- version: link:src/suite-vendor/a-cabloy/modules/test-rest
331
+ version: link:src/suite-vendor/a-test/modules/test-rest
332
332
  vona-module-test-ssr:
333
333
  specifier: workspace:^
334
- version: link:src/suite-vendor/a-cabloy/modules/test-ssr
334
+ version: link:src/suite-vendor/a-test/modules/test-ssr
335
335
  vona-module-test-vona:
336
336
  specifier: workspace:^
337
- version: link:src/suite-vendor/a-vona/modules/test-vona
337
+ version: link:src/suite-vendor/a-test/modules/test-vona
338
338
  vona-shared:
339
339
  specifier: workspace:^
340
340
  version: link:packages-vona/vona-shared
@@ -1196,15 +1196,6 @@ importers:
1196
1196
  specifier: ^6.1.3
1197
1197
  version: 6.1.3
1198
1198
 
1199
- src/suite-vendor/a-auth/modules/test-auth:
1200
- devDependencies:
1201
- clean-package:
1202
- specifier: ^2.2.0
1203
- version: 2.2.0
1204
- rimraf:
1205
- specifier: ^6.1.3
1206
- version: 6.1.3
1207
-
1208
1199
  src/suite-vendor/a-cabloy:
1209
1200
  dependencies:
1210
1201
  vona-module-a-cabloy:
@@ -1303,7 +1294,16 @@ importers:
1303
1294
  specifier: ^6.1.3
1304
1295
  version: 6.1.3
1305
1296
 
1306
- src/suite-vendor/a-cabloy/modules/test-cabloy:
1297
+ src/suite-vendor/a-captcha:
1298
+ dependencies:
1299
+ vona-module-a-captcha:
1300
+ specifier: workspace:^
1301
+ version: link:modules/a-captcha
1302
+ vona-module-captcha-simple:
1303
+ specifier: workspace:^
1304
+ version: link:modules/captcha-simple
1305
+
1306
+ src/suite-vendor/a-captcha/modules/a-captcha:
1307
1307
  devDependencies:
1308
1308
  clean-package:
1309
1309
  specifier: ^2.2.0
@@ -1312,11 +1312,17 @@ importers:
1312
1312
  specifier: ^6.1.3
1313
1313
  version: 6.1.3
1314
1314
 
1315
- src/suite-vendor/a-cabloy/modules/test-rest:
1315
+ src/suite-vendor/a-captcha/modules/captcha-simple:
1316
1316
  dependencies:
1317
- '@faker-js/faker':
1318
- specifier: ^10.4.0
1319
- version: 10.4.0
1317
+ '@zhennann/svg-captcha':
1318
+ specifier: ^1.5.2
1319
+ version: 1.5.2
1320
+ opentype.js:
1321
+ specifier: ^2.0.0
1322
+ version: 2.0.0
1323
+ svg64:
1324
+ specifier: ^2.0.0
1325
+ version: 2.0.0
1320
1326
  devDependencies:
1321
1327
  clean-package:
1322
1328
  specifier: ^2.2.0
@@ -1325,7 +1331,17 @@ importers:
1325
1331
  specifier: ^6.1.3
1326
1332
  version: 6.1.3
1327
1333
 
1328
- src/suite-vendor/a-cabloy/modules/test-ssr:
1334
+ src/suite-vendor/a-paypal:
1335
+ dependencies:
1336
+ vona-module-a-paypal:
1337
+ specifier: workspace:^
1338
+ version: link:modules/a-paypal
1339
+
1340
+ src/suite-vendor/a-paypal/modules/a-paypal:
1341
+ dependencies:
1342
+ '@cabloy/paypal-server-sdk':
1343
+ specifier: ^2.2.0
1344
+ version: 2.2.0
1329
1345
  devDependencies:
1330
1346
  clean-package:
1331
1347
  specifier: ^2.2.0
@@ -1334,16 +1350,9 @@ importers:
1334
1350
  specifier: ^6.1.3
1335
1351
  version: 6.1.3
1336
1352
 
1337
- src/suite-vendor/a-captcha:
1338
- dependencies:
1339
- vona-module-a-captcha:
1340
- specifier: workspace:^
1341
- version: link:modules/a-captcha
1342
- vona-module-captcha-simple:
1343
- specifier: workspace:^
1344
- version: link:modules/captcha-simple
1353
+ src/suite-vendor/a-test: {}
1345
1354
 
1346
- src/suite-vendor/a-captcha/modules/a-captcha:
1355
+ src/suite-vendor/a-test/modules/test-auth:
1347
1356
  devDependencies:
1348
1357
  clean-package:
1349
1358
  specifier: ^2.2.0
@@ -1352,17 +1361,7 @@ importers:
1352
1361
  specifier: ^6.1.3
1353
1362
  version: 6.1.3
1354
1363
 
1355
- src/suite-vendor/a-captcha/modules/captcha-simple:
1356
- dependencies:
1357
- '@zhennann/svg-captcha':
1358
- specifier: ^1.5.2
1359
- version: 1.5.2
1360
- opentype.js:
1361
- specifier: ^2.0.0
1362
- version: 2.0.0
1363
- svg64:
1364
- specifier: ^2.0.0
1365
- version: 2.0.0
1364
+ src/suite-vendor/a-test/modules/test-cabloy:
1366
1365
  devDependencies:
1367
1366
  clean-package:
1368
1367
  specifier: ^2.2.0
@@ -1371,7 +1370,7 @@ importers:
1371
1370
  specifier: ^6.1.3
1372
1371
  version: 6.1.3
1373
1372
 
1374
- src/suite-vendor/a-captcha/modules/test-captcha:
1373
+ src/suite-vendor/a-test/modules/test-captcha:
1375
1374
  devDependencies:
1376
1375
  clean-package:
1377
1376
  specifier: ^2.2.0
@@ -1380,17 +1379,29 @@ importers:
1380
1379
  specifier: ^6.1.3
1381
1380
  version: 6.1.3
1382
1381
 
1383
- src/suite-vendor/a-paypal:
1382
+ src/suite-vendor/a-test/modules/test-rest:
1384
1383
  dependencies:
1385
- vona-module-a-paypal:
1386
- specifier: workspace:^
1387
- version: link:modules/a-paypal
1384
+ '@faker-js/faker':
1385
+ specifier: ^10.4.0
1386
+ version: 10.4.0
1387
+ devDependencies:
1388
+ clean-package:
1389
+ specifier: ^2.2.0
1390
+ version: 2.2.0
1391
+ rimraf:
1392
+ specifier: ^6.1.3
1393
+ version: 6.1.3
1388
1394
 
1389
- src/suite-vendor/a-paypal/modules/a-paypal:
1390
- dependencies:
1391
- '@cabloy/paypal-server-sdk':
1395
+ src/suite-vendor/a-test/modules/test-ssr:
1396
+ devDependencies:
1397
+ clean-package:
1392
1398
  specifier: ^2.2.0
1393
1399
  version: 2.2.0
1400
+ rimraf:
1401
+ specifier: ^6.1.3
1402
+ version: 6.1.3
1403
+
1404
+ src/suite-vendor/a-test/modules/test-vona:
1394
1405
  devDependencies:
1395
1406
  clean-package:
1396
1407
  specifier: ^2.2.0
@@ -2323,15 +2334,6 @@ importers:
2323
2334
  specifier: ^6.1.3
2324
2335
  version: 6.1.3
2325
2336
 
2326
- src/suite-vendor/a-vona/modules/test-vona:
2327
- devDependencies:
2328
- clean-package:
2329
- specifier: ^2.2.0
2330
- version: 2.2.0
2331
- rimraf:
2332
- specifier: ^6.1.3
2333
- version: 6.1.3
2334
-
2335
2337
  src/suite/a-home:
2336
2338
  dependencies:
2337
2339
  vona-module-home-base:
@@ -9449,8 +9451,8 @@ packages:
9449
9451
  zova-module-a-zova@5.1.51:
9450
9452
  resolution: {integrity: sha512-Z+ySGwa17+isn0WVLGqPI9ZxyXueCV/quLsVnfG3c0uc1DF93ZIL/o2krCKmg2EDTMju4RnF3AIDJw1xCqzRfA==}
9451
9453
 
9452
- zova-module-a-zova@5.1.53:
9453
- resolution: {integrity: sha512-l/dfxkPwH7/HtFh6j5K+CtYZNjs1clAKmyCBYW4jfeGFlMmpeaXWj9PQhSSm/6mrG3DU1Rca09kPR08ATc2yCg==}
9454
+ zova-module-a-zova@5.1.54:
9455
+ resolution: {integrity: sha512-fQEKQtNTAN7obbq4zj57dlDlnntXr0AoMIGPJ8BfLZu3paCgEwHKoN5qH3qa+Jg/MICw5uf9dPy6XXi0BXhk/A==}
9454
9456
 
9455
9457
  zova-module-rest-resource@5.1.23:
9456
9458
  resolution: {integrity: sha512-Vh+I03PL0XEyd9wKclLjEIm4/INhlnpQ//MjdPxmowRA7iTGHi02yPak10Eu1bP+HCLcwgulpZqKA6wEGU+ISg==}
@@ -9467,14 +9469,14 @@ packages:
9467
9469
  zova-suite-a-zova@5.1.79:
9468
9470
  resolution: {integrity: sha512-ghUC6lO8/755AWUy7NTvfnc+NpjU5Vt3JAflaZclVfORvxWSdrfwEgSWiRxhdf0Mh6+Yt63U4UaSrC5KfWr3Fg==}
9469
9471
 
9470
- zova-suite-a-zova@5.1.82:
9471
- resolution: {integrity: sha512-UT5eUwN07Fzwwv8U2w8MSf7W3araGY4G8wJEoFf0SPcacHEujXC6Wi0S6RSBJh20Mp5dpx0CTmwElxuZDOhamQ==}
9472
+ zova-suite-a-zova@5.1.83:
9473
+ resolution: {integrity: sha512-/5SfvqhK77gvbURaoCzvMHk93Bentrq12fUhJk3vEvy/7GfHejkAqm0KRHhVU9uPAJxGtrme7QPCef8965ct8A==}
9472
9474
 
9473
9475
  zova@5.1.80:
9474
9476
  resolution: {integrity: sha512-pdVMxstdPxPNeOqmrLFrDy1lob+Mp1z+iwST2nr15eI3cnarpfhgR0+8CVlfk8Z3bjt5nW/6QY6RFCOH2tI7dQ==}
9475
9477
 
9476
- zova@5.1.83:
9477
- resolution: {integrity: sha512-PxGK0WXKN3cC4Xupf8GULzDLWgU6H6tgaBUS1dyt8sZ1tv07hTRy5kVS1SJrVrxGuZxutP5h4D3ikFRvqILwyA==}
9478
+ zova@5.1.84:
9479
+ resolution: {integrity: sha512-i/xUvGqkac9Gro0vdkgaXj+/Rw7N1BBRsni3pUsag6Vx8g/WZ1RejXCLyFz8O52wpfSeL7j6agRIlyi3carzTg==}
9478
9480
 
9479
9481
  zwitch@1.0.5:
9480
9482
  resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==}
@@ -17581,7 +17583,7 @@ snapshots:
17581
17583
  - typescript
17582
17584
  - vue
17583
17585
 
17584
- zova-module-a-zova@5.1.53(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3)):
17586
+ zova-module-a-zova@5.1.54(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3)):
17585
17587
  dependencies:
17586
17588
  '@cabloy/compose': link:packages-utils/compose
17587
17589
  '@cabloy/deps': link:packages-utils/deps
@@ -17610,7 +17612,7 @@ snapshots:
17610
17612
  typestyle: 2.4.0
17611
17613
  vue: 3.5.34(typescript@5.9.3)
17612
17614
  zod: '@cabloy/zod@4.3.6'
17613
- zova: 5.1.83(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3))
17615
+ zova: 5.1.84(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3))
17614
17616
  zova-jsx: 1.1.48(typescript@5.9.3)
17615
17617
  zova-module-a-api: 5.1.15
17616
17618
  zova-module-a-bean: 5.1.24
@@ -17699,7 +17701,7 @@ snapshots:
17699
17701
  - typescript
17700
17702
  - vue
17701
17703
 
17702
- zova-suite-a-zova@5.1.82(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3)):
17704
+ zova-suite-a-zova@5.1.83(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3)):
17703
17705
  dependencies:
17704
17706
  zova-module-a-api: 5.1.15
17705
17707
  zova-module-a-app: 5.1.18
@@ -17725,7 +17727,7 @@ snapshots:
17725
17727
  zova-module-a-style: 5.1.25
17726
17728
  zova-module-a-table: 5.1.27(vue@3.5.34(typescript@5.9.3))
17727
17729
  zova-module-a-zod: 5.1.23
17728
- zova-module-a-zova: 5.1.53(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3))
17730
+ zova-module-a-zova: 5.1.54(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3))
17729
17731
  transitivePeerDependencies:
17730
17732
  - '@vue/composition-api'
17731
17733
  - debug
@@ -17744,10 +17746,10 @@ snapshots:
17744
17746
  - typescript
17745
17747
  - vue
17746
17748
 
17747
- zova@5.1.83(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3)):
17749
+ zova@5.1.84(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3)):
17748
17750
  dependencies:
17749
17751
  zova-core: 5.1.42(typescript@5.9.3)
17750
- zova-suite-a-zova: 5.1.82(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3))
17752
+ zova-suite-a-zova: 5.1.83(typescript@5.9.3)(vue@3.5.34(typescript@5.9.3))
17751
17753
  transitivePeerDependencies:
17752
17754
  - '@vue/composition-api'
17753
17755
  - debug
@@ -8,9 +8,6 @@
8
8
  {
9
9
  "path": "modules/auth-simple/tsconfig.build.json"
10
10
  },
11
- {
12
- "path": "modules/test-auth/tsconfig.build.json"
13
- },
14
11
  {
15
12
  "path": "modules/auth-oauth/tsconfig.build.json"
16
13
  }
@@ -20,15 +20,6 @@
20
20
  {
21
21
  "path": "modules/a-datasharding/tsconfig.build.json"
22
22
  },
23
- {
24
- "path": "modules/test-cabloy/tsconfig.build.json"
25
- },
26
- {
27
- "path": "modules/test-ssr/tsconfig.build.json"
28
- },
29
- {
30
- "path": "modules/test-rest/tsconfig.build.json"
31
- },
32
23
  {
33
24
  "path": "modules/a-ssrhmr/tsconfig.build.json"
34
25
  }
@@ -5,9 +5,6 @@
5
5
  {
6
6
  "path": "modules/a-captcha/tsconfig.build.json"
7
7
  },
8
- {
9
- "path": "modules/test-captcha/tsconfig.build.json"
10
- },
11
8
  {
12
9
  "path": "modules/captcha-simple/tsconfig.build.json"
13
10
  }
@@ -128,9 +128,6 @@
128
128
  {
129
129
  "path": "modules/a-openapiutils/tsconfig.build.json"
130
130
  },
131
- {
132
- "path": "modules/test-vona/tsconfig.build.json"
133
- },
134
131
  {
135
132
  "path": "modules/a-mail/tsconfig.build.json"
136
133
  },
File without changes
File without changes
@@ -1,52 +0,0 @@
1
- {
2
- "name": "vona-module-test-auth",
3
- "version": "5.1.7",
4
- "gitHead": "a79189b882c17af5911573896a781bbb0046d37d",
5
- "description": "",
6
- "keywords": [
7
- "Vona Module"
8
- ],
9
- "author": "",
10
- "files": [
11
- "assets",
12
- "dist",
13
- "src"
14
- ],
15
- "type": "module",
16
- "exports": {
17
- ".": {
18
- "types": [
19
- "./src/index.ts",
20
- "./dist/index.d.ts"
21
- ],
22
- "import": "./src/index.ts",
23
- "default": "./dist/index.js"
24
- },
25
- "./package.json": "./package.json"
26
- },
27
- "scripts": {
28
- "clean": "rimraf dist tsconfig.build.tsbuildinfo",
29
- "tsc:publish": "npm run clean && vona :bin:buildModule --sourcemap && tsc -p tsconfig.build.json",
30
- "prepublishOnly": "npm run tsc:publish",
31
- "prepack": "clean-package",
32
- "postpack": "clean-package restore && npm run clean"
33
- },
34
- "devDependencies": {
35
- "clean-package": "^2.2.0",
36
- "rimraf": "^6.1.3"
37
- },
38
- "clean-package": {
39
- "indent": 2,
40
- "remove": [
41
- "clean-package",
42
- "devDependencies",
43
- "exports.\\..import"
44
- ]
45
- },
46
- "title": "test-auth",
47
- "vonaModule": {
48
- "dependencies": {
49
- "a-vona": "5.0.0"
50
- }
51
- }
52
- }
@@ -1,74 +0,0 @@
1
- // eslint-disable
2
- import type { TypeControllerOptionsActions } from 'vona-module-a-openapi';
3
- /** controller: begin */
4
- export * from '../controller/passport.ts';
5
- import type { IControllerOptionsPassport } from '../controller/passport.ts';
6
- import 'vona-module-a-web';
7
- declare module 'vona-module-a-web' {
8
-
9
- export interface IControllerRecord {
10
- 'test-auth:passport': IControllerOptionsPassport;
11
- }
12
-
13
-
14
- }
15
- declare module 'vona-module-test-auth' {
16
-
17
- export interface ControllerPassport {
18
- /** @internal */
19
- get scope(): ScopeModuleTestAuth;
20
- }
21
-
22
- export interface ControllerPassport {
23
- get $beanFullName(): 'test-auth.controller.passport';
24
- get $onionName(): 'test-auth:passport';
25
- get $onionOptions(): IControllerOptionsPassport;
26
- }
27
- }
28
- /** controller: end */
29
- /** controller: begin */
30
- // @ts-ignore ignore
31
- import type { ControllerPassport } from '../controller/passport.ts';
32
- declare module 'vona-module-test-auth' {
33
-
34
- export interface IControllerOptionsPassport {
35
- actions?: TypeControllerOptionsActions<ControllerPassport>;
36
- }
37
- }
38
- declare module 'vona-module-a-web' {
39
- export interface IApiPathGetRecord{
40
- '/test/auth/passport/isAuthenticated': undefined;
41
- '/test/auth/passport/current': undefined;
42
- }
43
-
44
- }
45
-
46
- /** controller: end */
47
- /** scope: begin */
48
- import { BeanScopeBase, type BeanScopeUtil } from 'vona';
49
- import { Scope } from 'vona-module-a-bean';
50
-
51
- @Scope()
52
- export class ScopeModuleTestAuth extends BeanScopeBase {}
53
-
54
- export interface ScopeModuleTestAuth {
55
- util: BeanScopeUtil;
56
- }
57
-
58
- import 'vona';
59
- declare module 'vona' {
60
- export interface IBeanScopeRecord {
61
- 'test-auth': ScopeModuleTestAuth;
62
- }
63
-
64
- export interface IBeanScopeContainer {
65
- testAuth: ScopeModuleTestAuth;
66
- }
67
-
68
-
69
-
70
-
71
-
72
-
73
- }
74
- /** scope: end */
@@ -1,2 +0,0 @@
1
- export const __ThisModule__ = 'test-auth';
2
- export { ScopeModuleTestAuth as ScopeModule } from './index.ts';
@@ -1,19 +0,0 @@
1
- import type { IDecoratorControllerOptions } from 'vona-module-a-web';
2
-
3
- import { BeanBase } from 'vona';
4
- import { Controller, Web } from 'vona-module-a-web';
5
-
6
- export interface IControllerOptionsPassport extends IDecoratorControllerOptions {}
7
-
8
- @Controller<IControllerOptionsPassport>('passport')
9
- export class ControllerPassport extends BeanBase {
10
- @Web.get('isAuthenticated')
11
- isAuthenticated(): boolean {
12
- return this.bean.passport.isAuthenticated;
13
- }
14
-
15
- @Web.get('current')
16
- current() {
17
- return this.bean.passport.current;
18
- }
19
- }
@@ -1 +0,0 @@
1
- export * from './.metadata/index.ts';
@@ -1,55 +0,0 @@
1
- import type { IPassport } from 'vona-module-a-user';
2
-
3
- import { catchError } from '@cabloy/utils';
4
- import assert from 'node:assert';
5
- import { describe, it } from 'node:test';
6
- import { app } from 'vona-mock';
7
-
8
- describe('authOauth.test.ts', () => {
9
- it('action:authOauth', async () => {
10
- await app.bean.executor.mockCtx(
11
- async () => {
12
- // login
13
- const jwt = await app.bean.auth.authenticate('auth-oauth:oauth', {
14
- // state: { redirect: 'xxxxx' },
15
- clientName: 'github',
16
- clientOptions: {
17
- mockUsername: 'mock-user',
18
- },
19
- });
20
- assert.equal(!!jwt?.accessToken, true);
21
- // isAuthenticated: isolate
22
- const [isAuthenticated2, _err] = await catchError(async () => {
23
- return await app.bean.executor.newCtxIsolate(async () => {
24
- return await app.bean.executor.performAction(
25
- 'get',
26
- '/test/auth/passport/isAuthenticated',
27
- );
28
- });
29
- });
30
- assert.equal(isAuthenticated2, undefined);
31
- // isAuthenticated: isolate + header
32
- const isAuthenticated = await app.bean.executor.newCtxIsolate(async () => {
33
- return await app.bean.executor.performAction(
34
- 'get',
35
- '/test/auth/passport/isAuthenticated',
36
- { authToken: jwt?.accessToken },
37
- );
38
- });
39
- assert.equal(isAuthenticated, true);
40
- // current
41
- const current: IPassport = await app.bean.executor.newCtxIsolate(async () => {
42
- return await app.bean.executor.performAction('get', '/test/auth/passport/current', {
43
- authToken: jwt?.accessToken,
44
- });
45
- });
46
- assert.equal(current.user?.locale, 'zh-cn');
47
- assert.equal(current.user?.tz, 'America/New_York');
48
- },
49
- {
50
- locale: 'zh-cn',
51
- tz: 'America/New_York',
52
- },
53
- );
54
- });
55
- });
@@ -1,52 +0,0 @@
1
- import { catchError } from '@cabloy/utils';
2
- import assert from 'node:assert';
3
- import { describe, it } from 'node:test';
4
- import { app } from 'vona-mock';
5
-
6
- describe('authSimple.test.ts', () => {
7
- it('action:passwordHash', async () => {
8
- const scope = app.scope('auth-simple');
9
- const password = '12344##1xxaasDFQ,.$';
10
- const hash = await scope.service.authSimple.calcPasswordHash(password);
11
- let verified = await scope.service.authSimple.verifyPasswordHash(password, hash);
12
- assert.equal(verified, true);
13
- verified = await scope.service.authSimple.verifyPasswordHash(`${password}failed`, hash);
14
- assert.equal(verified, false);
15
- });
16
-
17
- it('action:authSimple', async () => {
18
- await app.bean.executor.mockCtx(async () => {
19
- const password = app.scope('home-user').config.passwordDefault.admin;
20
- // login
21
- const jwt = await app.bean.auth.authenticate('auth-simple:simple', {
22
- clientName: 'default',
23
- clientOptions: { username: 'admin', password },
24
- });
25
- assert.equal(!!jwt?.accessToken, true);
26
- // isAuthenticated: isolate
27
- const [isAuthenticated2, _err] = await catchError(async () => {
28
- return await app.bean.executor.newCtxIsolate(async () => {
29
- return await app.bean.executor.performAction(
30
- 'get',
31
- '/test/auth/passport/isAuthenticated',
32
- );
33
- });
34
- });
35
- assert.equal(isAuthenticated2, undefined);
36
- // isAuthenticated: isolate + header
37
- const isAuthenticated = await app.bean.executor.newCtxIsolate(async () => {
38
- return await app.bean.executor.performAction('get', '/test/auth/passport/isAuthenticated', {
39
- authToken: jwt?.accessToken,
40
- });
41
- });
42
- assert.equal(isAuthenticated, true);
43
- // login again
44
- const jwt2 = await app.bean.auth.authenticate('auth-simple:simple', {
45
- clientOptions: { username: 'admin', password },
46
- state: { intention: 'login' },
47
- clientName: 'default',
48
- });
49
- assert.equal(!!jwt2?.accessToken, true);
50
- });
51
- });
52
- });
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base",
3
- "compilerOptions": {
4
- "rootDir": "src",
5
- "declaration": true,
6
- "declarationMap": true,
7
- "emitDeclarationOnly": true,
8
- "outDir": "dist"
9
- },
10
- "include": ["src", "src/.metadata/*.ts", "src/**/*.json"]
11
- }
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base",
3
- "compilerOptions": {
4
- "noEmit": true
5
- },
6
- "include": ["src", "src/.metadata/*.ts", "src/**/*.json", "test"]
7
- }