cabloy 5.1.20 → 5.1.21

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 (225) hide show
  1. package/package.json +1 -1
  2. package/scripts/upgrade.ts +13 -4
  3. package/vona/pnpm-lock.yaml +60 -58
  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-vendor/a-auth/modules/test-auth/package.json +0 -52
  9. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/index.ts +0 -74
  10. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/.metadata/this.ts +0 -2
  11. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/controller/passport.ts +0 -19
  12. package/vona/src/suite-vendor/a-auth/modules/test-auth/src/index.ts +0 -1
  13. package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authOauth.test.ts +0 -55
  14. package/vona/src/suite-vendor/a-auth/modules/test-auth/test/authSimple.test.ts +0 -52
  15. package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.build.json +0 -11
  16. package/vona/src/suite-vendor/a-auth/modules/test-auth/tsconfig.json +0 -7
  17. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/package.json +0 -60
  18. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/index.ts +0 -103
  19. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/.metadata/this.ts +0 -2
  20. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/bean/meta.status.ts +0 -15
  21. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/controller/status.ts +0 -44
  22. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/src/index.ts +0 -1
  23. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/datasource.test.ts +0 -51
  24. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/socket.test.ts +0 -48
  25. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/test/status.test.ts +0 -10
  26. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.build.json +0 -11
  27. package/vona/src/suite-vendor/a-cabloy/modules/test-cabloy/tsconfig.json +0 -7
  28. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/package.json +0 -63
  29. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/index.ts +0 -377
  30. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/locales.ts +0 -18
  31. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/.metadata/this.ts +0 -2
  32. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/meta.version.ts +0 -49
  33. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/bean/ssrMenu.product.ts +0 -26
  34. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/en-us.ts +0 -15
  35. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/config/locale/zh-cn.ts +0 -15
  36. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/controller/product.tsx +0 -64
  37. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productCreate.tsx +0 -40
  38. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectReq.tsx +0 -25
  39. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectRes.tsx +0 -11
  40. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productSelectResItem.tsx +0 -39
  41. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productUpdate.tsx +0 -30
  42. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/dto/productView.tsx +0 -25
  43. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/entity/product.tsx +0 -65
  44. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/index.ts +0 -2
  45. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/model/product.ts +0 -10
  46. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/src/service/product.ts +0 -37
  47. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/permission.test.ts +0 -19
  48. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/test/product.test.ts +0 -65
  49. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.build.json +0 -11
  50. package/vona/src/suite-vendor/a-cabloy/modules/test-rest/tsconfig.json +0 -7
  51. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/package.json +0 -60
  52. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/index.ts +0 -161
  53. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/locales.ts +0 -18
  54. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/.metadata/this.ts +0 -2
  55. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/en-us.ts +0 -13
  56. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/config/locale/zh-cn.ts +0 -11
  57. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolOne.ts +0 -43
  58. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/controller/toolTwo.ts +0 -37
  59. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testBody.ts +0 -10
  60. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testDetail.ts +0 -21
  61. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testParams.ts +0 -13
  62. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testQuery.ts +0 -12
  63. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/dto/testResult.tsx +0 -159
  64. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/src/index.ts +0 -2
  65. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.build.json +0 -11
  66. package/vona/src/suite-vendor/a-cabloy/modules/test-ssr/tsconfig.json +0 -7
  67. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/package.json +0 -52
  68. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/index.ts +0 -99
  69. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/.metadata/this.ts +0 -2
  70. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/controller/captcha.ts +0 -18
  71. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/dto/signin.ts +0 -20
  72. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/src/index.ts +0 -1
  73. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/test/captcha.test.ts +0 -148
  74. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.build.json +0 -11
  75. package/vona/src/suite-vendor/a-captcha/modules/test-captcha/tsconfig.json +0 -7
  76. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/img/vona.png +0 -0
  77. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.png +0 -0
  78. package/vona/src/suite-vendor/a-vona/modules/test-vona/assets/static/img/vona.svg +0 -3
  79. package/vona/src/suite-vendor/a-vona/modules/test-vona/package.json +0 -61
  80. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/index.ts +0 -2181
  81. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/locales.ts +0 -18
  82. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/.metadata/this.ts +0 -2
  83. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.regExp.ts +0 -34
  84. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aop.simple.ts +0 -80
  85. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/aopMethod.test.ts +0 -63
  86. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/bean.testCtx.ts +0 -59
  87. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/broadcast.test.ts +0 -24
  88. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheMem.test.ts +0 -7
  89. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.post.ts +0 -11
  90. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/cacheRedis.test.ts +0 -7
  91. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/event.helloEcho.ts +0 -13
  92. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/eventListener.helloEcho.ts +0 -24
  93. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.asset.ts +0 -10
  94. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.static.ts +0 -7
  95. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/meta.version.ts +0 -108
  96. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/queue.test.ts +0 -25
  97. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test.ts +0 -13
  98. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/schedule.test3.ts +0 -13
  99. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/serializerTransform.email.ts +0 -35
  100. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.caching.ts +0 -36
  101. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/bean/summerCache.test.ts +0 -36
  102. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/config.ts +0 -5
  103. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/en-us.ts +0 -21
  104. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/config/locale/zh-cn.ts +0 -19
  105. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/bean.ts +0 -103
  106. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheMem.ts +0 -64
  107. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/cacheRedis.ts +0 -56
  108. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/dtoTest.ts +0 -61
  109. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/guardPassport.ts +0 -26
  110. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/onion.ts +0 -103
  111. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/order.ts +0 -56
  112. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/passport.ts +0 -49
  113. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/performAction.ts +0 -19
  114. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/post.ts +0 -59
  115. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/queue.ts +0 -27
  116. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/serializer.ts +0 -40
  117. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/summer.ts +0 -130
  118. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/tail.ts +0 -33
  119. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/transaction.ts +0 -30
  120. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/controller/upload.ts +0 -61
  121. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/categoryTree.ts +0 -9
  122. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderCreate.ts +0 -13
  123. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQuery.ts +0 -25
  124. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderQueryPage.ts +0 -24
  125. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectRes.ts +0 -11
  126. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderSelectResItem.ts +0 -11
  127. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/orderUpdate.ts +0 -13
  128. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postAggregate.ts +0 -17
  129. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postCreate.ts +0 -11
  130. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postGroup.ts +0 -14
  131. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectReq.ts +0 -36
  132. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectRes.ts +0 -11
  133. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/postSelectResItem.tsx +0 -28
  134. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/profile.ts +0 -15
  135. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/roleLazy.ts +0 -17
  136. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerArray.ts +0 -39
  137. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerLazy.ts +0 -31
  138. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/serializerSimple.ts +0 -112
  139. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/user.ts +0 -21
  140. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userCreate.ts +0 -11
  141. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userLazy.ts +0 -20
  142. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/dto/userUpdate.ts +0 -9
  143. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/category.ts +0 -16
  144. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/order.ts +0 -21
  145. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/post.ts +0 -21
  146. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/postContent.ts +0 -16
  147. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/product.ts +0 -27
  148. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/role.ts +0 -12
  149. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/roleUser.ts +0 -16
  150. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/test.ts +0 -24
  151. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/entity/user.ts +0 -18
  152. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/index.ts +0 -4
  153. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/index.ts +0 -1
  154. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/lib/serializer.ts +0 -9
  155. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/category.ts +0 -22
  156. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/categoryChain.ts +0 -23
  157. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/order.ts +0 -33
  158. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/orderStats.ts +0 -29
  159. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/post.ts +0 -23
  160. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/postContent.ts +0 -23
  161. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/product.ts +0 -10
  162. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/role.ts +0 -23
  163. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/roleUser.ts +0 -10
  164. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/test.ts +0 -10
  165. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/testDynamicTable.ts +0 -23
  166. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/user.ts +0 -30
  167. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStats.ts +0 -22
  168. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/model/userStatsGroup.ts +0 -36
  169. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/aopMethod.ts +0 -38
  170. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/caching.ts +0 -89
  171. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/category.ts +0 -153
  172. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/order.ts +0 -67
  173. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/post.ts +0 -280
  174. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/product.ts +0 -5
  175. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/test.ts +0 -9
  176. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testApp.ts +0 -13
  177. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testClass.ts +0 -15
  178. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/testData.ts +0 -71
  179. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/transaction.ts +0 -20
  180. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/service/user.ts +0 -124
  181. package/vona/src/suite-vendor/a-vona/modules/test-vona/src/types/index.ts +0 -6
  182. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/aopMethod.test.ts +0 -21
  183. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/bean.test.ts +0 -16
  184. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/broadcast.test.ts +0 -17
  185. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheMem.test.ts +0 -10
  186. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/cacheRedis.test.ts +0 -10
  187. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/caching.test.ts +0 -61
  188. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/cache/summer.test.ts +0 -10
  189. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/database.test.ts +0 -132
  190. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoAggregate.test.ts +0 -44
  191. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGet.test.ts +0 -82
  192. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoGroup.test.ts +0 -44
  193. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoLazy.test.ts +0 -53
  194. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoMutate.test.ts +0 -56
  195. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/dtoQuery.test.ts +0 -70
  196. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelAggregate.test.ts +0 -222
  197. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelCache.test.ts +0 -37
  198. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGeneral.test.ts +0 -18
  199. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelGroup.test.ts +0 -248
  200. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelMagic.test.ts +0 -37
  201. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelations.test.ts +0 -215
  202. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsJoins.test.ts +0 -58
  203. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelRelationsMutate.test.ts +0 -436
  204. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/modelWhere.test.ts +0 -173
  205. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/orm.test.ts +0 -22
  206. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/database/transaction.test.ts +0 -142
  207. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/event.test.ts +0 -14
  208. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/guardPassport.test.ts +0 -48
  209. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/instance.test.ts +0 -35
  210. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/jwt.test.ts +0 -28
  211. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/locale.test.ts +0 -64
  212. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/mail.test.ts +0 -14
  213. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/passport.test.ts +0 -69
  214. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/queue.test.ts +0 -11
  215. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/runtime.test.ts +0 -24
  216. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/serializer.test.ts +0 -82
  217. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/static.test.ts +0 -22
  218. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/tail.test.ts +0 -21
  219. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/upload.test.ts +0 -75
  220. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/cabloyUtils.test.ts +0 -19
  221. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/celjs.test.ts +0 -64
  222. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/mappedTypes.test.ts +0 -73
  223. package/vona/src/suite-vendor/a-vona/modules/test-vona/test/utils/performAction.test.ts +0 -28
  224. package/vona/src/suite-vendor/a-vona/modules/test-vona/tsconfig.build.json +0 -11
  225. 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.21",
4
4
  "description": "A Node.js fullstack framework",
5
5
  "keywords": [
6
6
  "cabloy",
@@ -37,9 +37,13 @@ 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',
@@ -56,9 +60,6 @@ const WHITELIST_FILES: string[] = [
56
60
  'vona/tsconfig.base.esm.json',
57
61
  'vona/oxfmt.config.ts',
58
62
  'vona/oxlint.config.ts',
59
- 'vona/nginx.conf',
60
- 'vona/docker-compose.original.yml',
61
- 'vona/docker-compose-dockerfile-app',
62
63
  'vona/codecov.yml',
63
64
  // zova
64
65
  'zova/package.original.json',
@@ -168,6 +169,14 @@ function selectiveOverwrite(dryRun?: boolean): void {
168
169
  cpSync(src, dest, { recursive: true, filter: src => !src.includes('.DS_Store') });
169
170
  }
170
171
 
172
+ // Delete directories
173
+ for (const dir of BLACKLIST_DIRS) {
174
+ const dest = resolve(ROOT_DIR, dir);
175
+ if (existsSync(dest)) {
176
+ rmSync(dest, { recursive: true, force: true });
177
+ }
178
+ }
179
+
171
180
  // Overwrite files
172
181
  for (const file of WHITELIST_FILES) {
173
182
  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:
@@ -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
  },
@@ -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
- }
@@ -1,60 +0,0 @@
1
- {
2
- "name": "vona-module-test-cabloy",
3
- "version": "5.1.5",
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
- "exports.\\..import"
43
- ]
44
- },
45
- "title": "test-cabloy",
46
- "vonaModule": {
47
- "dependencies": {
48
- "a-vona": "5.0.0",
49
- "a-cabloy": "5.0.0"
50
- },
51
- "capabilities": {
52
- "meta": {
53
- "mode": [
54
- "dev",
55
- "test"
56
- ]
57
- }
58
- }
59
- }
60
- }