@adonisjs/core 6.1.5-3 → 6.1.5-31

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 (409) hide show
  1. package/build/commands/build.d.ts +8 -1
  2. package/build/commands/build.js +49 -26
  3. package/build/commands/commands.json +1 -1
  4. package/build/commands/configure.d.ts +36 -4
  5. package/build/commands/configure.js +114 -27
  6. package/build/commands/eject.d.ts +4 -1
  7. package/build/commands/eject.js +17 -10
  8. package/build/commands/generate_key.d.ts +4 -1
  9. package/build/commands/generate_key.js +16 -10
  10. package/build/commands/inspect_rcfile.d.ts +3 -1
  11. package/build/commands/inspect_rcfile.js +29 -3
  12. package/build/commands/list/routes.d.ts +23 -1
  13. package/build/commands/list/routes.js +30 -15
  14. package/build/commands/main.d.ts +4 -0
  15. package/build/commands/make/command.d.ts +7 -2
  16. package/build/commands/make/command.js +21 -9
  17. package/build/commands/make/controller.d.ts +10 -2
  18. package/build/commands/make/controller.js +36 -16
  19. package/build/commands/make/event.d.ts +7 -2
  20. package/build/commands/make/event.js +21 -10
  21. package/build/commands/make/exception.d.ts +14 -0
  22. package/build/commands/make/exception.js +37 -0
  23. package/build/commands/make/listener.d.ts +8 -2
  24. package/build/commands/make/listener.js +29 -14
  25. package/build/commands/make/middleware.d.ts +8 -2
  26. package/build/commands/make/middleware.js +22 -10
  27. package/build/commands/make/preload.d.ts +22 -0
  28. package/build/commands/make/preload.js +99 -0
  29. package/build/commands/make/provider.d.ts +7 -2
  30. package/build/commands/make/provider.js +28 -11
  31. package/build/commands/make/service.d.ts +7 -2
  32. package/build/commands/make/service.js +21 -10
  33. package/build/commands/make/test.d.ts +10 -2
  34. package/build/commands/make/test.js +48 -13
  35. package/build/commands/make/validator.d.ts +14 -0
  36. package/build/commands/make/validator.js +37 -0
  37. package/build/commands/make/view.d.ts +14 -0
  38. package/build/commands/make/view.js +37 -0
  39. package/build/commands/repl.d.ts +14 -0
  40. package/build/commands/repl.js +30 -0
  41. package/build/commands/serve.d.ts +10 -1
  42. package/build/commands/serve.js +63 -32
  43. package/build/commands/test.d.ts +13 -2
  44. package/build/commands/test.js +108 -61
  45. package/build/factories/app.d.ts +0 -1
  46. package/build/factories/app.js +8 -0
  47. package/build/factories/bodyparser.d.ts +0 -1
  48. package/build/factories/bodyparser.js +8 -0
  49. package/build/factories/core/ace.d.ts +3 -1
  50. package/build/factories/core/ace.js +11 -0
  51. package/build/factories/core/ignitor.d.ts +19 -1
  52. package/build/factories/core/ignitor.js +37 -5
  53. package/build/factories/core/main.d.ts +0 -2
  54. package/build/factories/core/main.js +8 -1
  55. package/build/factories/core/test_utils.d.ts +3 -1
  56. package/build/factories/core/test_utils.js +11 -0
  57. package/build/factories/encryption.d.ts +0 -1
  58. package/build/factories/encryption.js +8 -0
  59. package/build/factories/events.d.ts +0 -1
  60. package/build/factories/events.js +8 -0
  61. package/build/factories/hash.d.ts +0 -1
  62. package/build/factories/hash.js +8 -0
  63. package/build/factories/http.d.ts +0 -1
  64. package/build/factories/http.js +8 -0
  65. package/build/factories/logger.d.ts +0 -1
  66. package/build/factories/logger.js +8 -0
  67. package/build/factories/stubs.d.ts +12 -3
  68. package/build/factories/stubs.js +23 -1
  69. package/build/index.d.ts +15 -141
  70. package/build/index.js +18 -1
  71. package/build/modules/ace/codemods.d.ts +59 -0
  72. package/build/modules/ace/codemods.js +133 -0
  73. package/build/modules/ace/commands.d.ts +48 -1
  74. package/build/modules/ace/commands.js +56 -4
  75. package/build/modules/ace/create_kernel.d.ts +9 -1
  76. package/build/modules/ace/create_kernel.js +32 -1
  77. package/build/modules/ace/kernel.d.ts +4 -1
  78. package/build/modules/ace/kernel.js +12 -0
  79. package/build/modules/ace/main.d.ts +0 -1
  80. package/build/modules/ace/main.js +8 -0
  81. package/build/modules/ace/shell.d.ts +8 -1
  82. package/build/modules/ace/shell.js +21 -0
  83. package/build/modules/app.d.ts +0 -1
  84. package/build/modules/app.js +8 -0
  85. package/build/modules/bodyparser/bodyparser_middleware.d.ts +4 -1
  86. package/build/modules/bodyparser/bodyparser_middleware.js +12 -0
  87. package/build/modules/bodyparser/main.d.ts +0 -1
  88. package/build/modules/bodyparser/main.js +8 -0
  89. package/build/modules/config.d.ts +0 -1
  90. package/build/modules/config.js +8 -0
  91. package/build/modules/container.d.ts +0 -1
  92. package/build/modules/container.js +8 -0
  93. package/build/modules/encryption.d.ts +0 -1
  94. package/build/modules/encryption.js +8 -0
  95. package/build/modules/env/editor.d.ts +1 -0
  96. package/{modules/config.ts → build/modules/env/editor.js} +1 -2
  97. package/{modules/env.ts → build/modules/env/main.js} +1 -2
  98. package/build/modules/events.d.ts +0 -1
  99. package/build/modules/events.js +8 -0
  100. package/build/modules/hash/define_config.d.ts +31 -12
  101. package/build/modules/hash/define_config.js +68 -10
  102. package/build/modules/hash/drivers/argon.d.ts +1 -0
  103. package/{factories/hash.ts → build/modules/hash/drivers/argon.js} +1 -2
  104. package/build/modules/hash/drivers/bcrypt.d.ts +1 -0
  105. package/{factories/events.ts → build/modules/hash/drivers/bcrypt.js} +1 -2
  106. package/build/modules/hash/drivers/scrypt.d.ts +1 -0
  107. package/{legacy/validator.ts → build/modules/hash/drivers/scrypt.js} +1 -2
  108. package/build/modules/hash/main.d.ts +1 -3
  109. package/build/modules/hash/main.js +9 -2
  110. package/build/modules/hash/phc_formatter.d.ts +1 -0
  111. package/{factories/logger.ts → build/modules/hash/phc_formatter.js} +1 -2
  112. package/build/modules/http/main.d.ts +7 -0
  113. package/build/modules/http/main.js +15 -0
  114. package/build/modules/http/request_validator.d.ts +34 -0
  115. package/build/modules/http/request_validator.js +66 -0
  116. package/build/modules/logger.d.ts +0 -1
  117. package/build/modules/logger.js +8 -0
  118. package/build/modules/repl.d.ts +1 -0
  119. package/{modules/container.ts → build/modules/repl.js} +1 -2
  120. package/build/providers/app_provider.d.ts +44 -2
  121. package/build/providers/app_provider.js +78 -5
  122. package/build/providers/edge_provider.d.ts +31 -0
  123. package/build/providers/edge_provider.js +69 -0
  124. package/build/providers/hash_provider.d.ts +13 -2
  125. package/build/providers/hash_provider.js +32 -8
  126. package/build/providers/repl_provider.d.ts +13 -0
  127. package/build/providers/repl_provider.js +98 -0
  128. package/build/providers/vinejs_provider.d.ts +33 -0
  129. package/build/providers/vinejs_provider.js +84 -0
  130. package/build/services/ace.d.ts +0 -1
  131. package/build/services/ace.js +15 -0
  132. package/build/services/app.d.ts +8 -1
  133. package/build/services/app.js +16 -0
  134. package/build/services/config.d.ts +0 -1
  135. package/build/services/config.js +11 -0
  136. package/build/services/emitter.d.ts +0 -1
  137. package/build/services/emitter.js +12 -0
  138. package/build/services/encryption.d.ts +0 -1
  139. package/build/services/encryption.js +12 -0
  140. package/build/services/hash.d.ts +0 -1
  141. package/build/services/hash.js +12 -0
  142. package/build/services/logger.d.ts +0 -1
  143. package/build/services/logger.js +12 -0
  144. package/build/services/repl.d.ts +3 -0
  145. package/build/services/repl.js +18 -0
  146. package/build/services/router.d.ts +0 -1
  147. package/build/services/router.js +12 -0
  148. package/build/services/server.d.ts +0 -1
  149. package/build/services/server.js +12 -0
  150. package/build/services/test_utils.d.ts +0 -1
  151. package/build/services/test_utils.js +15 -0
  152. package/build/src/cli_formatters/routes_list.d.ts +24 -2
  153. package/build/src/cli_formatters/routes_list.js +118 -0
  154. package/build/src/config_provider.d.ts +9 -0
  155. package/build/src/config_provider.js +26 -0
  156. package/build/src/debug.d.ts +0 -1
  157. package/build/src/debug.js +8 -0
  158. package/build/src/exceptions.d.ts +1 -0
  159. package/{factories/bodyparser.ts → build/src/exceptions.js} +1 -2
  160. package/build/src/helpers/is.d.ts +0 -1
  161. package/build/src/helpers/is.js +8 -0
  162. package/build/src/helpers/main.d.ts +1 -2
  163. package/build/src/helpers/main.js +9 -1
  164. package/build/src/helpers/parse_binding_reference.d.ts +40 -1
  165. package/build/src/helpers/parse_binding_reference.js +60 -0
  166. package/build/src/helpers/string.d.ts +24 -1
  167. package/build/src/helpers/string.js +11 -0
  168. package/build/src/helpers/types.d.ts +114 -17
  169. package/build/src/helpers/types.js +13 -0
  170. package/build/src/ignitor/ace.d.ts +12 -1
  171. package/build/src/ignitor/ace.js +50 -1
  172. package/build/src/ignitor/http.d.ts +7 -1
  173. package/build/src/ignitor/http.js +67 -0
  174. package/build/src/ignitor/main.d.ts +28 -1
  175. package/build/src/ignitor/main.js +56 -0
  176. package/build/src/ignitor/test.d.ts +10 -1
  177. package/build/src/ignitor/test.js +25 -0
  178. package/build/src/internal_helpers.d.ts +12 -6
  179. package/build/src/internal_helpers.js +35 -7
  180. package/build/src/test_utils/http.d.ts +8 -1
  181. package/build/src/test_utils/http.js +19 -0
  182. package/build/src/test_utils/main.d.ts +20 -3
  183. package/build/src/test_utils/main.js +27 -1
  184. package/build/src/types.d.ts +69 -11
  185. package/build/src/types.js +8 -0
  186. package/build/stubs/{index.d.ts → main.d.ts} +0 -1
  187. package/{factories/app.ts → build/stubs/main.js} +2 -2
  188. package/build/stubs/make/command/main.stub +6 -4
  189. package/build/stubs/make/controller/api.stub +6 -4
  190. package/build/stubs/make/controller/main.stub +6 -4
  191. package/build/stubs/make/controller/resource.stub +6 -4
  192. package/build/stubs/make/event/main.stub +5 -3
  193. package/build/stubs/make/exception/main.stub +12 -0
  194. package/build/stubs/make/listener/for_event.stub +6 -4
  195. package/build/stubs/make/listener/main.stub +5 -3
  196. package/build/stubs/make/middleware/main.stub +7 -5
  197. package/build/stubs/make/preload_file/main.stub +5 -3
  198. package/build/stubs/make/provider/main.stub +6 -4
  199. package/build/stubs/make/service/main.stub +5 -3
  200. package/build/stubs/make/test/main.stub +5 -3
  201. package/build/stubs/make/validator/main.stub +7 -0
  202. package/build/stubs/make/view/main.stub +6 -0
  203. package/build/toolkit/commands/index_commands.d.ts +4 -1
  204. package/build/toolkit/commands/index_commands.js +14 -7
  205. package/build/toolkit/main.d.ts +0 -1
  206. package/build/toolkit/main.js +11 -0
  207. package/build/types/ace.d.ts +0 -1
  208. package/build/types/ace.js +8 -0
  209. package/build/types/app.d.ts +0 -1
  210. package/build/types/app.js +8 -0
  211. package/build/types/bodyparser.d.ts +0 -1
  212. package/build/types/bodyparser.js +8 -0
  213. package/build/types/container.d.ts +0 -1
  214. package/build/types/container.js +8 -0
  215. package/build/types/encryption.d.ts +0 -1
  216. package/build/types/encryption.js +8 -0
  217. package/build/types/events.d.ts +0 -1
  218. package/build/types/events.js +8 -0
  219. package/build/types/hash.d.ts +0 -1
  220. package/build/types/hash.js +8 -0
  221. package/build/types/http.d.ts +7 -1
  222. package/build/types/http.js +8 -0
  223. package/build/types/logger.d.ts +0 -1
  224. package/build/types/logger.js +8 -0
  225. package/build/types/repl.d.ts +1 -0
  226. package/{modules/bodyparser/main.ts → build/types/repl.js} +1 -2
  227. package/package.json +93 -137
  228. package/build/commands/build.d.ts.map +0 -1
  229. package/build/commands/configure.d.ts.map +0 -1
  230. package/build/commands/eject.d.ts.map +0 -1
  231. package/build/commands/generate_key.d.ts.map +0 -1
  232. package/build/commands/inspect_rcfile.d.ts.map +0 -1
  233. package/build/commands/list/routes.d.ts.map +0 -1
  234. package/build/commands/make/_base.d.ts +0 -28
  235. package/build/commands/make/_base.d.ts.map +0 -1
  236. package/build/commands/make/_base.js +0 -28
  237. package/build/commands/make/command.d.ts.map +0 -1
  238. package/build/commands/make/controller.d.ts.map +0 -1
  239. package/build/commands/make/event.d.ts.map +0 -1
  240. package/build/commands/make/listener.d.ts.map +0 -1
  241. package/build/commands/make/middleware.d.ts.map +0 -1
  242. package/build/commands/make/prldfile.d.ts +0 -9
  243. package/build/commands/make/prldfile.d.ts.map +0 -1
  244. package/build/commands/make/prldfile.js +0 -28
  245. package/build/commands/make/provider.d.ts.map +0 -1
  246. package/build/commands/make/service.d.ts.map +0 -1
  247. package/build/commands/make/test.d.ts.map +0 -1
  248. package/build/commands/serve.d.ts.map +0 -1
  249. package/build/commands/test.d.ts.map +0 -1
  250. package/build/factories/app.d.ts.map +0 -1
  251. package/build/factories/bodyparser.d.ts.map +0 -1
  252. package/build/factories/core/ace.d.ts.map +0 -1
  253. package/build/factories/core/ignitor.d.ts.map +0 -1
  254. package/build/factories/core/main.d.ts.map +0 -1
  255. package/build/factories/core/test_utils.d.ts.map +0 -1
  256. package/build/factories/encryption.d.ts.map +0 -1
  257. package/build/factories/events.d.ts.map +0 -1
  258. package/build/factories/hash.d.ts.map +0 -1
  259. package/build/factories/http.d.ts.map +0 -1
  260. package/build/factories/logger.d.ts.map +0 -1
  261. package/build/factories/stubs.d.ts.map +0 -1
  262. package/build/index.d.ts.map +0 -1
  263. package/build/legacy/validator.d.ts +0 -2
  264. package/build/legacy/validator.d.ts.map +0 -1
  265. package/build/legacy/validator.js +0 -1
  266. package/build/modules/ace/commands.d.ts.map +0 -1
  267. package/build/modules/ace/create_kernel.d.ts.map +0 -1
  268. package/build/modules/ace/kernel.d.ts.map +0 -1
  269. package/build/modules/ace/main.d.ts.map +0 -1
  270. package/build/modules/ace/shell.d.ts.map +0 -1
  271. package/build/modules/app.d.ts.map +0 -1
  272. package/build/modules/bodyparser/bodyparser_middleware.d.ts.map +0 -1
  273. package/build/modules/bodyparser/main.d.ts.map +0 -1
  274. package/build/modules/config.d.ts.map +0 -1
  275. package/build/modules/container.d.ts.map +0 -1
  276. package/build/modules/encryption.d.ts.map +0 -1
  277. package/build/modules/env.d.ts +0 -2
  278. package/build/modules/env.d.ts.map +0 -1
  279. package/build/modules/events.d.ts.map +0 -1
  280. package/build/modules/hash/define_config.d.ts.map +0 -1
  281. package/build/modules/hash/drivers_collection.d.ts +0 -9
  282. package/build/modules/hash/drivers_collection.d.ts.map +0 -1
  283. package/build/modules/hash/drivers_collection.js +0 -16
  284. package/build/modules/hash/main.d.ts.map +0 -1
  285. package/build/modules/http.d.ts +0 -2
  286. package/build/modules/http.d.ts.map +0 -1
  287. package/build/modules/http.js +0 -1
  288. package/build/modules/logger.d.ts.map +0 -1
  289. package/build/providers/app_provider.d.ts.map +0 -1
  290. package/build/providers/hash_provider.d.ts.map +0 -1
  291. package/build/providers/http_provider.d.ts +0 -10
  292. package/build/providers/http_provider.d.ts.map +0 -1
  293. package/build/providers/http_provider.js +0 -36
  294. package/build/services/ace.d.ts.map +0 -1
  295. package/build/services/app.d.ts.map +0 -1
  296. package/build/services/config.d.ts.map +0 -1
  297. package/build/services/emitter.d.ts.map +0 -1
  298. package/build/services/encryption.d.ts.map +0 -1
  299. package/build/services/hash.d.ts.map +0 -1
  300. package/build/services/logger.d.ts.map +0 -1
  301. package/build/services/router.d.ts.map +0 -1
  302. package/build/services/server.d.ts.map +0 -1
  303. package/build/services/test_utils.d.ts.map +0 -1
  304. package/build/src/cli_formatters/routes_list.d.ts.map +0 -1
  305. package/build/src/debug.d.ts.map +0 -1
  306. package/build/src/helpers/is.d.ts.map +0 -1
  307. package/build/src/helpers/main.d.ts.map +0 -1
  308. package/build/src/helpers/parse_binding_reference.d.ts.map +0 -1
  309. package/build/src/helpers/string.d.ts.map +0 -1
  310. package/build/src/helpers/types.d.ts.map +0 -1
  311. package/build/src/ignitor/ace.d.ts.map +0 -1
  312. package/build/src/ignitor/http.d.ts.map +0 -1
  313. package/build/src/ignitor/main.d.ts.map +0 -1
  314. package/build/src/ignitor/test.d.ts.map +0 -1
  315. package/build/src/internal_helpers.d.ts.map +0 -1
  316. package/build/src/test_utils/http.d.ts.map +0 -1
  317. package/build/src/test_utils/main.d.ts.map +0 -1
  318. package/build/src/types.d.ts.map +0 -1
  319. package/build/stubs/index.d.ts.map +0 -1
  320. package/build/stubs/index.js +0 -2
  321. package/build/toolkit/commands/index_commands.d.ts.map +0 -1
  322. package/build/toolkit/main.d.ts.map +0 -1
  323. package/build/types/ace.d.ts.map +0 -1
  324. package/build/types/app.d.ts.map +0 -1
  325. package/build/types/bodyparser.d.ts.map +0 -1
  326. package/build/types/container.d.ts.map +0 -1
  327. package/build/types/encryption.d.ts.map +0 -1
  328. package/build/types/events.d.ts.map +0 -1
  329. package/build/types/hash.d.ts.map +0 -1
  330. package/build/types/http.d.ts.map +0 -1
  331. package/build/types/logger.d.ts.map +0 -1
  332. package/commands/build.ts +0 -122
  333. package/commands/configure.ts +0 -179
  334. package/commands/eject.ts +0 -39
  335. package/commands/generate_key.ts +0 -53
  336. package/commands/inspect_rcfile.ts +0 -23
  337. package/commands/list/routes.ts +0 -121
  338. package/commands/make/_base.ts +0 -55
  339. package/commands/make/command.ts +0 -33
  340. package/commands/make/controller.ts +0 -77
  341. package/commands/make/event.ts +0 -33
  342. package/commands/make/listener.ts +0 -63
  343. package/commands/make/middleware.ts +0 -34
  344. package/commands/make/prldfile.ts +0 -40
  345. package/commands/make/provider.ts +0 -40
  346. package/commands/make/service.ts +0 -33
  347. package/commands/make/test.ts +0 -115
  348. package/commands/serve.ts +0 -146
  349. package/commands/test.ts +0 -189
  350. package/factories/core/ace.ts +0 -38
  351. package/factories/core/ignitor.ts +0 -132
  352. package/factories/core/main.ts +0 -13
  353. package/factories/core/test_utils.ts +0 -34
  354. package/factories/encryption.ts +0 -10
  355. package/factories/http.ts +0 -10
  356. package/factories/stubs.ts +0 -53
  357. package/index.ts +0 -39
  358. package/modules/ace/commands.ts +0 -152
  359. package/modules/ace/create_kernel.ts +0 -73
  360. package/modules/ace/kernel.ts +0 -28
  361. package/modules/ace/main.ts +0 -22
  362. package/modules/ace/shell.ts +0 -49
  363. package/modules/app.ts +0 -10
  364. package/modules/bodyparser/bodyparser_middleware.ts +0 -16
  365. package/modules/encryption.ts +0 -10
  366. package/modules/events.ts +0 -10
  367. package/modules/hash/define_config.ts +0 -64
  368. package/modules/hash/drivers_collection.ts +0 -61
  369. package/modules/hash/main.ts +0 -12
  370. package/modules/http.ts +0 -10
  371. package/modules/logger.ts +0 -10
  372. package/providers/app_provider.ts +0 -125
  373. package/providers/hash_provider.ts +0 -58
  374. package/providers/http_provider.ts +0 -66
  375. package/services/ace.ts +0 -26
  376. package/services/app.ts +0 -26
  377. package/services/config.ts +0 -22
  378. package/services/emitter.ts +0 -23
  379. package/services/encryption.ts +0 -23
  380. package/services/hash.ts +0 -23
  381. package/services/logger.ts +0 -23
  382. package/services/router.ts +0 -23
  383. package/services/server.ts +0 -23
  384. package/services/test_utils.ts +0 -26
  385. package/src/cli_formatters/routes_list.ts +0 -480
  386. package/src/debug.ts +0 -12
  387. package/src/helpers/is.ts +0 -11
  388. package/src/helpers/main.ts +0 -13
  389. package/src/helpers/parse_binding_reference.ts +0 -93
  390. package/src/helpers/string.ts +0 -89
  391. package/src/helpers/types.ts +0 -46
  392. package/src/ignitor/ace.ts +0 -90
  393. package/src/ignitor/http.ts +0 -167
  394. package/src/ignitor/main.ts +0 -118
  395. package/src/ignitor/test.ts +0 -51
  396. package/src/internal_helpers.ts +0 -59
  397. package/src/test_utils/http.ts +0 -79
  398. package/src/test_utils/main.ts +0 -69
  399. package/src/types.ts +0 -136
  400. package/types/ace.ts +0 -15
  401. package/types/app.ts +0 -10
  402. package/types/bodyparser.ts +0 -10
  403. package/types/container.ts +0 -10
  404. package/types/encryption.ts +0 -10
  405. package/types/events.ts +0 -10
  406. package/types/hash.ts +0 -10
  407. package/types/http.ts +0 -10
  408. package/types/logger.ts +0 -10
  409. /package/build/modules/{env.js → env/main.d.ts} +0 -0
@@ -1,4 +1,12 @@
1
1
  #!/usr/bin/env node
2
+ /*
3
+ * @adonisjs/core
4
+ *
5
+ * (c) AdonisJS
6
+ *
7
+ * For the full copyright and license information, please view the LICENSE
8
+ * file that was distributed with this source code.
9
+ */
2
10
  import IndexCommand from './commands/index_commands.js';
3
11
  import { Kernel, ListLoader, HelpCommand } from '@adonisjs/ace';
4
12
  const kernel = Kernel.create();
@@ -7,6 +15,9 @@ kernel.defineFlag('help', {
7
15
  type: 'boolean',
8
16
  description: HelpCommand.description,
9
17
  });
18
+ /**
19
+ * Flag listener to display the help
20
+ */
10
21
  kernel.on('help', async (command, $kernel, parsed) => {
11
22
  parsed.args.unshift(command.commandName);
12
23
  const help = new HelpCommand($kernel, parsed, kernel.ui, kernel.prompt);
@@ -3,4 +3,3 @@ export type CommandOptions = BaseCommandOptions & {
3
3
  startApp?: boolean;
4
4
  };
5
5
  export * from '@adonisjs/ace/types';
6
- //# sourceMappingURL=ace.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/ace/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/application/types';
2
- //# sourceMappingURL=app.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/application/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/bodyparser/types';
2
- //# sourceMappingURL=bodyparser.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/ace
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/bodyparser/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/fold/types';
2
- //# sourceMappingURL=container.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/fold/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/encryption/types';
2
- //# sourceMappingURL=encryption.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/encryption/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/events/types';
2
- //# sourceMappingURL=events.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/events/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/hash/types';
2
- //# sourceMappingURL=hash.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/hash/types';
@@ -1,2 +1,8 @@
1
1
  export * from '@adonisjs/http-server/types';
2
- //# sourceMappingURL=http.d.ts.map
2
+ import type { ValidationOptions } from '@vinejs/vine/types';
3
+ /**
4
+ * Validation options accepted by the "request.validateUsing" method
5
+ */
6
+ export type RequestValidationOptions<MetaData extends undefined | Record<string, any>> = ValidationOptions<MetaData> & {
7
+ data?: any;
8
+ };
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/http-server/types';
@@ -1,2 +1 @@
1
1
  export * from '@adonisjs/logger/types';
2
- //# sourceMappingURL=logger.d.ts.map
@@ -1 +1,9 @@
1
+ /*
2
+ * @adonisjs/core
3
+ *
4
+ * (c) AdonisJS
5
+ *
6
+ * For the full copyright and license information, please view the LICENSE
7
+ * file that was distributed with this source code.
8
+ */
1
9
  export * from '@adonisjs/logger/types';
@@ -0,0 +1 @@
1
+ export * from '@adonisjs/repl/types';
@@ -6,5 +6,4 @@
6
6
  * For the full copyright and license information, please view the LICENSE
7
7
  * file that was distributed with this source code.
8
8
  */
9
-
10
- export * from '@adonisjs/bodyparser'
9
+ export * from '@adonisjs/repl/types';
package/package.json CHANGED
@@ -1,22 +1,15 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
- "version": "6.1.5-3",
4
3
  "description": "Core of AdonisJS",
4
+ "version": "6.1.5-31",
5
+ "engines": {
6
+ "node": ">=18.16.0"
7
+ },
5
8
  "main": "build/index.js",
6
9
  "type": "module",
7
10
  "files": [
8
- "modules",
9
- "commands",
10
- "legacy",
11
- "providers",
12
- "services",
13
- "factories",
14
- "types",
15
- "src",
16
- "index.ts",
17
11
  "build/modules",
18
12
  "build/commands",
19
- "build/legacy",
20
13
  "build/providers",
21
14
  "build/services",
22
15
  "build/factories",
@@ -25,7 +18,6 @@
25
18
  "build/src",
26
19
  "build/stubs",
27
20
  "build/index.d.ts",
28
- "build/index.d.ts.map",
29
21
  "build/index.js"
30
22
  ],
31
23
  "bin": {
@@ -36,55 +28,34 @@
36
28
  "./commands": "./build/commands/main.js",
37
29
  "./commands/*": "./build/commands/*.js",
38
30
  "./factories": "./build/factories/core/main.js",
39
- "./factories/app": "./build/factories/app.js",
40
- "./factories/bodyparser": "./build/factories/bodyparser.js",
41
- "./factories/encryption": "./build/factories/encryption.js",
42
- "./factories/events": "./build/factories/events.js",
43
- "./factories/hash": "./build/factories/hash.js",
44
- "./factories/http": "./build/factories/http.js",
45
- "./factories/logger": "./build/factories/logger.js",
31
+ "./factories/*": "./build/factories/*.js",
46
32
  "./types": "./build/src/types.js",
47
- "./types/ace": "./build/types/ace.js",
48
- "./types/app": "./build/types/app.js",
49
- "./types/bodyparser": "./build/types/bodyparser.js",
50
- "./types/container": "./build/types/container.js",
51
- "./types/encryption": "./build/types/encryption.js",
52
- "./types/events": "./build/types/events.js",
53
- "./types/hash": "./build/types/hash.js",
54
- "./types/http": "./build/types/http.js",
55
- "./types/logger": "./build/types/logger.js",
56
- "./services/ace": "./build/services/ace.js",
57
- "./services/app": "./build/services/app.js",
58
- "./services/config": "./build/services/config.js",
59
- "./services/emitter": "./build/services/emitter.js",
60
- "./services/encryption": "./build/services/encryption.js",
61
- "./services/hash": "./build/services/hash.js",
62
- "./services/logger": "./build/services/logger.js",
63
- "./services/router": "./build/services/router.js",
64
- "./services/server": "./build/services/server.js",
65
- "./services/test_utils": "./build/services/test_utils.js",
66
- "./providers/app_provider": "./build/providers/app_provider.js",
67
- "./providers/hash_provider": "./build/providers/hash_provider.js",
68
- "./providers/http_provider": "./build/providers/http_provider.js",
69
- "./legacy/validator": "./build/legacy/validator.js",
33
+ "./types/*": "./build/types/*.js",
34
+ "./services/*": "./build/services/*.js",
35
+ "./providers/*": "./build/providers/*.js",
70
36
  "./helpers": "./build/src/helpers/main.js",
71
- "./helpers/is": "./build/src/helpers/is.js",
72
- "./helpers/types": "./build/src/helpers/types.js",
73
- "./helpers/string": "./build/src/helpers/string.js",
74
- "./ace/shell": "./build/modules/ace/shell.js",
37
+ "./helpers/*": "./build/src/helpers/*.js",
75
38
  "./ace": "./build/modules/ace/main.js",
39
+ "./ace/shell": "./build/modules/ace/shell.js",
76
40
  "./bodyparser": "./build/modules/bodyparser/main.js",
77
41
  "./bodyparser_middleware": "./build/modules/bodyparser/bodyparser_middleware.js",
78
42
  "./hash": "./build/modules/hash/main.js",
43
+ "./hash/phc_formatter": "./build/modules/hash/phc_formatter.js",
44
+ "./hash/drivers/argon": "./build/modules/hash/drivers/argon.js",
45
+ "./hash/drivers/bcrypt": "./build/modules/hash/drivers/bcrypt.js",
46
+ "./hash/drivers/scrypt": "./build/modules/hash/drivers/scrypt.js",
79
47
  "./app": "./build/modules/app.js",
80
48
  "./config": "./build/modules/config.js",
81
49
  "./container": "./build/modules/container.js",
82
50
  "./encryption": "./build/modules/encryption.js",
83
- "./env": "./build/modules/env.js",
51
+ "./env": "./build/modules/env/main.js",
52
+ "./env/editor": "./build/modules/env/editor.js",
84
53
  "./events": "./build/modules/events.js",
85
- "./http": "./build/modules/http.js",
54
+ "./http": "./build/modules/http/main.js",
86
55
  "./logger": "./build/modules/logger.js",
87
- "./package.json": "./package.json"
56
+ "./repl": "./build/modules/repl.js",
57
+ "./package.json": "./package.json",
58
+ "./exceptions": "./build/src/exceptions.js"
88
59
  },
89
60
  "scripts": {
90
61
  "pretest": "npm run lint",
@@ -99,83 +70,82 @@
99
70
  "version": "npm run build",
100
71
  "prepublishOnly": "npm run build",
101
72
  "lint": "eslint . --ext=.ts",
73
+ "typecheck": "tsc --noEmit",
102
74
  "format": "prettier --write .",
103
75
  "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/core",
104
- "quick:test": "node --loader=ts-node/esm --experimental-import-meta-resolve bin/test.ts",
76
+ "quick:test": "node --loader=ts-node/esm --enable-source-maps --experimental-import-meta-resolve bin/test.ts --force-exit",
105
77
  "index:commands": "node --loader=ts-node/esm toolkit/main.js index build/commands"
106
78
  },
107
- "keywords": [
108
- "adonisjs",
109
- "framework",
110
- "mvc"
111
- ],
112
- "author": "virk,adonisjs",
113
- "license": "MIT",
114
79
  "devDependencies": {
115
- "@adonisjs/assembler": "^6.1.3-6",
116
- "@commitlint/cli": "^17.6.1",
117
- "@commitlint/config-conventional": "^17.6.1",
118
- "@japa/assert": "^1.4.1",
119
- "@japa/expect-type": "^1.0.3",
120
- "@japa/file-system": "^1.0.1",
121
- "@japa/run-failed-tests": "^1.1.1",
122
- "@japa/runner": "^2.5.1",
123
- "@japa/spec-reporter": "^1.3.3",
124
- "@swc/core": "^1.3.51",
125
- "@types/node": "^18.15.11",
80
+ "@adonisjs/assembler": "^6.1.3-25",
81
+ "@adonisjs/eslint-config": "^1.1.8",
82
+ "@adonisjs/prettier-config": "^1.1.8",
83
+ "@adonisjs/tsconfig": "^1.1.8",
84
+ "@commitlint/cli": "^18.0.0",
85
+ "@commitlint/config-conventional": "^18.0.0",
86
+ "@japa/assert": "^2.0.0",
87
+ "@japa/expect-type": "^2.0.0",
88
+ "@japa/file-system": "^2.0.0",
89
+ "@japa/runner": "^3.0.4",
90
+ "@swc/core": "1.3.82",
91
+ "@types/node": "^20.8.8",
126
92
  "@types/pretty-hrtime": "^1.0.1",
127
- "@types/sinon": "^10.0.13",
128
- "@types/supertest": "^2.0.12",
129
- "@types/test-console": "^2.0.0",
130
- "c8": "^7.13.0",
93
+ "@types/sinon": "^10.0.20",
94
+ "@types/supertest": "^2.0.15",
95
+ "@types/test-console": "^2.0.1",
96
+ "@vinejs/vine": "^1.6.0",
97
+ "argon2": "^0.31.1",
98
+ "bcrypt": "^5.1.1",
99
+ "c8": "^8.0.1",
131
100
  "copyfiles": "^2.4.1",
132
101
  "cross-env": "^7.0.3",
133
- "del-cli": "^5.0.0",
134
- "eslint": "^8.38.0",
135
- "eslint-config-prettier": "^8.8.0",
136
- "eslint-plugin-adonis": "^3.0.3",
137
- "eslint-plugin-prettier": "^4.2.1",
138
- "get-port": "^6.1.2",
102
+ "del-cli": "^5.1.0",
103
+ "edge.js": "^6.0.0-10",
104
+ "eslint": "^8.52.0",
105
+ "get-port": "^7.0.0",
139
106
  "github-label-sync": "^2.3.1",
140
107
  "husky": "^8.0.3",
141
- "np": "^7.7.0",
142
- "prettier": "^2.8.7",
143
- "sinon": "^15.0.3",
108
+ "np": "^8.0.4",
109
+ "prettier": "^3.0.3",
110
+ "sinon": "^17.0.0",
144
111
  "supertest": "^6.3.3",
145
112
  "test-console": "^2.0.0",
146
113
  "ts-node": "^10.9.1",
147
- "typescript": "^5.0.4"
114
+ "typescript": "^5.2.2"
148
115
  },
149
116
  "dependencies": {
150
- "@adonisjs/ace": "^12.3.1-5",
151
- "@adonisjs/application": "^7.1.2-3",
152
- "@adonisjs/bodyparser": "^9.3.2-5",
153
- "@adonisjs/config": "^4.2.1-1",
154
- "@adonisjs/encryption": "^5.1.2-1",
155
- "@adonisjs/env": "^4.2.0-2",
156
- "@adonisjs/events": "^8.4.9-2",
157
- "@adonisjs/fold": "^9.9.3-4",
158
- "@adonisjs/hash": "^8.3.1-2",
159
- "@adonisjs/http-server": "^6.8.2-6",
160
- "@adonisjs/logger": "^5.4.2-1",
161
- "@adonisjs/validator": "^13.0.2-2",
162
- "@paralleldrive/cuid2": "^2.2.0",
163
- "@poppinss/macroable": "^1.0.0-6",
164
- "@poppinss/utils": "^6.5.0-2",
165
- "@sindresorhus/is": "^5.3.0",
166
- "@types/he": "^1.2.0",
167
- "execa": "^7.1.1",
117
+ "@adonisjs/ace": "^12.3.2-0",
118
+ "@adonisjs/application": "^8.0.0-0",
119
+ "@adonisjs/bodyparser": "^10.0.0-1",
120
+ "@adonisjs/config": "^4.2.1-5",
121
+ "@adonisjs/encryption": "^5.1.2-3",
122
+ "@adonisjs/env": "^4.2.0-6",
123
+ "@adonisjs/events": "^9.0.0-0",
124
+ "@adonisjs/fold": "^9.9.3-10",
125
+ "@adonisjs/hash": "^8.3.1-7",
126
+ "@adonisjs/http-server": "^7.0.0-1",
127
+ "@adonisjs/logger": "^5.4.2-6",
128
+ "@adonisjs/repl": "^4.0.0-8",
129
+ "@antfu/install-pkg": "^0.1.1",
130
+ "@paralleldrive/cuid2": "^2.2.2",
131
+ "@poppinss/macroable": "^1.0.0-7",
132
+ "@poppinss/utils": "^6.5.0-3",
133
+ "@sindresorhus/is": "^6.0.1",
134
+ "@types/he": "^1.2.1",
135
+ "execa": "^8.0.1",
168
136
  "he": "^1.2.0",
169
- "parse-imports": "^1.1.0",
137
+ "parse-imports": "^1.1.2",
170
138
  "pretty-hrtime": "^1.0.3",
171
- "string-width": "^5.1.2",
172
- "youch": "^3.2.3",
173
- "youch-terminal": "^2.2.0"
139
+ "string-width": "^6.1.0",
140
+ "youch": "^3.3.2",
141
+ "youch-terminal": "^2.2.3"
174
142
  },
175
143
  "peerDependencies": {
176
- "@adonisjs/assembler": "^6.1.3-4",
177
- "argon2": "^0.30.3",
178
- "bcrypt": "^5.0.1"
144
+ "@adonisjs/assembler": "^6.1.3-25",
145
+ "@vinejs/vine": "^1.6.0",
146
+ "argon2": "^0.31.1",
147
+ "bcrypt": "^5.1.1",
148
+ "edge.js": "^6.0.0-10"
179
149
  },
180
150
  "peerDependenciesMeta": {
181
151
  "argon2": {
@@ -186,8 +156,17 @@
186
156
  },
187
157
  "@adonisjs/assembler": {
188
158
  "optional": true
159
+ },
160
+ "@vinejs/vine": {
161
+ "optional": true
162
+ },
163
+ "edge.js": {
164
+ "optional": true
189
165
  }
190
166
  },
167
+ "author": "virk,adonisjs",
168
+ "license": "MIT",
169
+ "homepage": "https://github.com/adonisjs/core#readme",
191
170
  "repository": {
192
171
  "type": "git",
193
172
  "url": "git+https://github.com/adonisjs/core.git"
@@ -195,38 +174,15 @@
195
174
  "bugs": {
196
175
  "url": "https://github.com/adonisjs/core/issues"
197
176
  },
198
- "homepage": "https://github.com/adonisjs/core#readme",
199
- "eslintConfig": {
200
- "extends": [
201
- "plugin:adonis/typescriptPackage",
202
- "prettier"
203
- ],
204
- "plugins": [
205
- "prettier"
206
- ],
207
- "rules": {
208
- "prettier/prettier": [
209
- "error",
210
- {
211
- "endOfLine": "auto"
212
- }
213
- ]
214
- }
215
- },
216
- "eslintIgnore": [
217
- "build",
218
- "backup"
177
+ "keywords": [
178
+ "adonisjs",
179
+ "framework",
180
+ "mvc"
219
181
  ],
220
- "prettier": {
221
- "trailingComma": "es5",
222
- "semi": false,
223
- "singleQuote": true,
224
- "useTabs": false,
225
- "quoteProps": "consistent",
226
- "bracketSpacing": true,
227
- "arrowParens": "always",
228
- "printWidth": 100
182
+ "eslintConfig": {
183
+ "extends": "@adonisjs/eslint-config/package"
229
184
  },
185
+ "prettier": "@adonisjs/prettier-config",
230
186
  "commitlint": {
231
187
  "extends": [
232
188
  "@commitlint/config-conventional"
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../commands/build.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAQ3D,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SACmF;IAErG,MAAM,CAAC,IAAI,WAWV;IAGO,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,cAAc,CAAC,EAAE,OAAO,CAAA;IAKxB,cAAc,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,CAAA;IAOxC,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAoBvB,GAAG;CA6CV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"configure.d.ts","sourceRoot":"","sources":["../../commands/configure.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAQ,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAK1D,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;;IAChD,MAAM,CAAC,WAAW,SAAc;IAChC,MAAM,CAAC,WAAW,SAA0C;IAGpD,IAAI,EAAE,MAAM,CAAA;IAMZ,SAAS,EAAE,MAAM,CAAA;IAqCnB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAqB5D,kBAAkB,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAmBlF,YAAY,CAChB,QAAQ,EAAE,CAAC,YAAY,EAAE,kBAAkB,CAAC,cAAc,CAAC,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAUtF,qBAAqB,CAAC,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,OAAO,CAAA;KAAE,EAAE;IA+BtE,GAAG;CA+BV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"eject.d.ts","sourceRoot":"","sources":["../../commands/eject.ts"],"names":[],"mappings":"AAUA,OAAO,EAAQ,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAMjE,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,WAAW;IAC5C,MAAM,CAAC,WAAW,SAAU;IAC5B,MAAM,CAAC,WAAW,SAAqD;IAG/D,QAAQ,EAAE,MAAM,CAAA;IAMhB,GAAG,EAAE,MAAM,CAAA;IAEb,GAAG;CASV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"generate_key.d.ts","sourceRoot":"","sources":["../../commands/generate_key.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAS,MAAM,wBAAwB,CAAA;AAM3D,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAA6C;IAKvD,IAAI,EAAE,OAAO,CAAA;IAKb,KAAK,EAAE,OAAO,CAAA;IAEhB,GAAG;CAqBV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"inspect_rcfile.d.ts","sourceRoot":"","sources":["../../commands/inspect_rcfile.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AAKpD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,WAAW;IACpD,MAAM,CAAC,WAAW,SAAmB;IACrC,MAAM,CAAC,WAAW,SAAgD;IAE5D,GAAG;CAGV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../commands/list/routes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAQ,WAAW,EAAS,MAAM,2BAA2B,CAAA;AAMpE,MAAM,CAAC,OAAO,OAAO,UAAW,SAAQ,WAAW;IACjD,MAAM,CAAC,WAAW,SAAgB;IAClC,MAAM,CAAC,WAAW,SAC4E;IAM9F,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;IAWO,KAAK,EAAE,MAAM,CAAA;IASb,UAAU,EAAE,MAAM,EAAE,CAAA;IASpB,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAM1B,IAAI,EAAE,OAAO,CAAA;IAMb,KAAK,EAAE,OAAO,CAAA;IAEhB,GAAG;CAkDV"}
@@ -1,28 +0,0 @@
1
- import { BaseCommand } from '../../modules/ace/main.js';
2
- import type { CommandOptions } from '../../types/ace.js';
3
- export default abstract class extends BaseCommand {
4
- static options: CommandOptions;
5
- protected generate(stubPath: string, stubState: Record<string, any>): Promise<{
6
- relativeFileName: string;
7
- contents: any;
8
- destination: any;
9
- attributes: any;
10
- status: "skipped";
11
- skipReason: string;
12
- } | {
13
- relativeFileName: string;
14
- contents: any;
15
- destination: any;
16
- attributes: any;
17
- status: "created";
18
- skipReason: null;
19
- } | {
20
- relativeFileName: string;
21
- contents: any;
22
- destination: any;
23
- attributes: any;
24
- status: "force_created";
25
- skipReason: null;
26
- }>;
27
- }
28
- //# sourceMappingURL=_base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_base.d.ts","sourceRoot":"","sources":["../../../commands/make/_base.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAKxD,MAAM,CAAC,OAAO,CAAC,QAAQ,MAAO,SAAQ,WAAW;IAI/C,MAAM,CAAC,OAAO,EAAE,cAAc,CAE7B;cAKe,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;CA0B1E"}
@@ -1,28 +0,0 @@
1
- import { slash } from '@poppinss/utils';
2
- import { stubsRoot } from '../../stubs/index.js';
3
- import { BaseCommand } from '../../modules/ace/main.js';
4
- class default_1 extends BaseCommand {
5
- static options = {
6
- allowUnknownFlags: true,
7
- };
8
- async generate(stubPath, stubState) {
9
- const stub = await this.app.stubs.build(stubPath, { source: stubsRoot });
10
- const output = await stub.generate(Object.assign({
11
- flags: this.parsed.flags,
12
- }, stubState));
13
- const entityFileName = slash(this.app.relativePath(output.destination));
14
- if (output.status === 'skipped') {
15
- this.logger.action(`create ${entityFileName}`).skipped(output.skipReason);
16
- return {
17
- ...output,
18
- relativeFileName: entityFileName,
19
- };
20
- }
21
- this.logger.action(`create ${entityFileName}`).succeeded();
22
- return {
23
- ...output,
24
- relativeFileName: entityFileName,
25
- };
26
- }
27
- }
28
- export default default_1;
@@ -1 +0,0 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../commands/make/command.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,WAAW;IAClD,MAAM,CAAC,WAAW,SAAiB;IACnC,MAAM,CAAC,WAAW,SAAmC;IAG7C,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA2B;IAE/C,GAAG;CAKV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"controller.d.ts","sourceRoot":"","sources":["../../../commands/make/controller.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,WAAW,SAAuC;IAGjD,IAAI,EAAE,MAAM,CAAA;IAMZ,QAAQ,EAAE,OAAO,CAAA;IAMjB,QAAQ,EAAE,OAAO,CAAA;IAMjB,GAAG,EAAE,OAAO,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA8B;IAKlD,OAAO;IAuBP,GAAG;CAKV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"event.d.ts","sourceRoot":"","sources":["../../../commands/make/event.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,WAAW;IAChD,MAAM,CAAC,WAAW,SAAe;IACjC,MAAM,CAAC,WAAW,SAA6B;IAGvC,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAyB;IAE7C,GAAG;CAKV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"listener.d.ts","sourceRoot":"","sources":["../../../commands/make/listener.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAOpC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,WAAW;IACnD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAsC;IAGhD,IAAI,EAAE,MAAM,CAAA;IAMZ,KAAK,EAAE,MAAM,CAAA;IAKrB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA4B;IAEtD,OAAO;IAMD,GAAG;CAsBV"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"middleware.d.ts","sourceRoot":"","sources":["../../../commands/make/middleware.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAOpC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,WAAW;IACrD,MAAM,CAAC,WAAW,SAAoB;IACtC,MAAM,CAAC,WAAW,SAAkC;IAG5C,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAA8B;IAElD,GAAG;CAKV"}
@@ -1,9 +0,0 @@
1
- import BaseCommand from './_base.js';
2
- export default class MakePreloadFile extends BaseCommand {
3
- static commandName: string;
4
- static description: string;
5
- name: string;
6
- protected stubPath: string;
7
- run(): Promise<void>;
8
- }
9
- //# sourceMappingURL=prldfile.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prldfile.d.ts","sourceRoot":"","sources":["../../../commands/make/prldfile.ts"],"names":[],"mappings":"AASA,OAAO,WAAW,MAAM,YAAY,CAAA;AAMpC,MAAM,CAAC,OAAO,OAAO,eAAgB,SAAQ,WAAW;IACtD,MAAM,CAAC,WAAW,SAAkB;IACpC,MAAM,CAAC,WAAW,SAAyD;IAGnE,IAAI,EAAE,MAAM,CAAA;IAKpB,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAgC;IAEpD,GAAG;CAYV"}