@adonisjs/core 6.1.5-2 → 6.1.5-4

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 (305) hide show
  1. package/build/commands/build.d.ts +3 -0
  2. package/build/commands/build.d.ts.map +1 -0
  3. package/build/commands/build.js +22 -2
  4. package/build/commands/commands.json +1 -1
  5. package/build/commands/configure.d.ts +1 -0
  6. package/build/commands/configure.d.ts.map +1 -0
  7. package/build/commands/configure.js +2 -1
  8. package/build/commands/eject.d.ts +1 -0
  9. package/build/commands/eject.d.ts.map +1 -0
  10. package/build/commands/eject.js +2 -1
  11. package/build/commands/generate_key.d.ts +1 -0
  12. package/build/commands/generate_key.d.ts.map +1 -0
  13. package/build/commands/generate_key.js +2 -1
  14. package/build/commands/inspect_rcfile.d.ts +7 -0
  15. package/build/commands/inspect_rcfile.d.ts.map +1 -0
  16. package/build/commands/inspect_rcfile.js +10 -0
  17. package/build/commands/list/routes.d.ts +1 -0
  18. package/build/commands/list/routes.d.ts.map +1 -0
  19. package/build/commands/list/routes.js +2 -1
  20. package/build/commands/make/_base.d.ts +23 -1
  21. package/build/commands/make/_base.d.ts.map +1 -0
  22. package/build/commands/make/_base.js +11 -2
  23. package/build/commands/make/command.d.ts +1 -0
  24. package/build/commands/make/command.d.ts.map +1 -0
  25. package/build/commands/make/command.js +2 -1
  26. package/build/commands/make/controller.d.ts +1 -0
  27. package/build/commands/make/controller.d.ts.map +1 -0
  28. package/build/commands/make/controller.js +2 -1
  29. package/build/commands/make/event.d.ts +1 -0
  30. package/build/commands/make/event.d.ts.map +1 -0
  31. package/build/commands/make/event.js +2 -1
  32. package/build/commands/make/listener.d.ts +1 -0
  33. package/build/commands/make/listener.d.ts.map +1 -0
  34. package/build/commands/make/listener.js +2 -1
  35. package/build/commands/make/middleware.d.ts +1 -0
  36. package/build/commands/make/middleware.d.ts.map +1 -0
  37. package/build/commands/make/middleware.js +2 -1
  38. package/build/commands/make/prldfile.d.ts +9 -0
  39. package/build/commands/make/prldfile.d.ts.map +1 -0
  40. package/build/commands/make/prldfile.js +28 -0
  41. package/build/commands/make/provider.d.ts +1 -0
  42. package/build/commands/make/provider.d.ts.map +1 -0
  43. package/build/commands/make/provider.js +5 -2
  44. package/build/commands/make/service.d.ts +9 -0
  45. package/build/commands/make/service.d.ts.map +1 -0
  46. package/build/commands/make/service.js +26 -0
  47. package/build/commands/make/test.d.ts +1 -0
  48. package/build/commands/make/test.d.ts.map +1 -0
  49. package/build/commands/make/test.js +2 -1
  50. package/build/commands/serve.d.ts +3 -0
  51. package/build/commands/serve.d.ts.map +1 -0
  52. package/build/commands/serve.js +21 -1
  53. package/build/commands/test.d.ts +21 -0
  54. package/build/commands/test.d.ts.map +1 -0
  55. package/build/commands/test.js +155 -0
  56. package/build/factories/app.d.ts +1 -0
  57. package/build/factories/app.d.ts.map +1 -0
  58. package/build/factories/bodyparser.d.ts +1 -0
  59. package/build/factories/bodyparser.d.ts.map +1 -0
  60. package/build/factories/core/ace.d.ts +1 -0
  61. package/build/factories/core/ace.d.ts.map +1 -0
  62. package/build/factories/core/ignitor.d.ts +1 -0
  63. package/build/factories/core/ignitor.d.ts.map +1 -0
  64. package/build/factories/core/main.d.ts +1 -0
  65. package/build/factories/core/main.d.ts.map +1 -0
  66. package/build/factories/core/test_utils.d.ts +1 -0
  67. package/build/factories/core/test_utils.d.ts.map +1 -0
  68. package/build/factories/encryption.d.ts +1 -0
  69. package/build/factories/encryption.d.ts.map +1 -0
  70. package/build/factories/events.d.ts +1 -0
  71. package/build/factories/events.d.ts.map +1 -0
  72. package/build/factories/hash.d.ts +1 -0
  73. package/build/factories/hash.d.ts.map +1 -0
  74. package/build/factories/http.d.ts +1 -0
  75. package/build/factories/http.d.ts.map +1 -0
  76. package/build/factories/logger.d.ts +1 -0
  77. package/build/factories/logger.d.ts.map +1 -0
  78. package/build/factories/stubs.d.ts +1 -0
  79. package/build/factories/stubs.d.ts.map +1 -0
  80. package/build/index.d.ts +1 -0
  81. package/build/index.d.ts.map +1 -0
  82. package/build/legacy/validator.d.ts +1 -0
  83. package/build/legacy/validator.d.ts.map +1 -0
  84. package/build/modules/ace/commands.d.ts +1 -0
  85. package/build/modules/ace/commands.d.ts.map +1 -0
  86. package/build/modules/ace/commands.js +4 -2
  87. package/build/modules/ace/create_kernel.d.ts +1 -0
  88. package/build/modules/ace/create_kernel.d.ts.map +1 -0
  89. package/build/modules/ace/create_kernel.js +1 -0
  90. package/build/modules/ace/kernel.d.ts +1 -0
  91. package/build/modules/ace/kernel.d.ts.map +1 -0
  92. package/build/modules/ace/main.d.ts +1 -0
  93. package/build/modules/ace/main.d.ts.map +1 -0
  94. package/build/modules/ace/shell.d.ts +1 -0
  95. package/build/modules/ace/shell.d.ts.map +1 -0
  96. package/build/modules/app.d.ts +1 -0
  97. package/build/modules/app.d.ts.map +1 -0
  98. package/build/modules/bodyparser/bodyparser_middleware.d.ts +1 -0
  99. package/build/modules/bodyparser/bodyparser_middleware.d.ts.map +1 -0
  100. package/build/modules/bodyparser/main.d.ts +1 -0
  101. package/build/modules/bodyparser/main.d.ts.map +1 -0
  102. package/build/modules/config.d.ts +1 -0
  103. package/build/modules/config.d.ts.map +1 -0
  104. package/build/modules/container.d.ts +1 -0
  105. package/build/modules/container.d.ts.map +1 -0
  106. package/build/modules/encryption.d.ts +1 -0
  107. package/build/modules/encryption.d.ts.map +1 -0
  108. package/build/modules/env.d.ts +1 -0
  109. package/build/modules/env.d.ts.map +1 -0
  110. package/build/modules/events.d.ts +1 -0
  111. package/build/modules/events.d.ts.map +1 -0
  112. package/build/modules/hash/define_config.d.ts +1 -0
  113. package/build/modules/hash/define_config.d.ts.map +1 -0
  114. package/build/modules/hash/drivers_collection.d.ts +4 -4
  115. package/build/modules/hash/drivers_collection.d.ts.map +1 -0
  116. package/build/modules/hash/drivers_collection.js +2 -8
  117. package/build/modules/hash/main.d.ts +2 -0
  118. package/build/modules/hash/main.d.ts.map +1 -0
  119. package/build/modules/hash/main.js +1 -0
  120. package/build/modules/http.d.ts +1 -0
  121. package/build/modules/http.d.ts.map +1 -0
  122. package/build/modules/logger.d.ts +1 -0
  123. package/build/modules/logger.d.ts.map +1 -0
  124. package/build/providers/app_provider.d.ts +1 -0
  125. package/build/providers/app_provider.d.ts.map +1 -0
  126. package/build/providers/app_provider.js +5 -7
  127. package/build/providers/hash_provider.d.ts +1 -0
  128. package/build/providers/hash_provider.d.ts.map +1 -0
  129. package/build/providers/hash_provider.js +7 -6
  130. package/build/providers/http_provider.d.ts +1 -0
  131. package/build/providers/http_provider.d.ts.map +1 -0
  132. package/build/services/ace.d.ts +1 -0
  133. package/build/services/ace.d.ts.map +1 -0
  134. package/build/services/app.d.ts +1 -0
  135. package/build/services/app.d.ts.map +1 -0
  136. package/build/services/config.d.ts +1 -0
  137. package/build/services/config.d.ts.map +1 -0
  138. package/build/services/emitter.d.ts +1 -0
  139. package/build/services/emitter.d.ts.map +1 -0
  140. package/build/services/emitter.js +1 -2
  141. package/build/services/encryption.d.ts +1 -0
  142. package/build/services/encryption.d.ts.map +1 -0
  143. package/build/services/encryption.js +1 -2
  144. package/build/services/hash.d.ts +1 -0
  145. package/build/services/hash.d.ts.map +1 -0
  146. package/build/services/hash.js +1 -2
  147. package/build/services/logger.d.ts +1 -0
  148. package/build/services/logger.d.ts.map +1 -0
  149. package/build/services/logger.js +1 -2
  150. package/build/services/router.d.ts +1 -0
  151. package/build/services/router.d.ts.map +1 -0
  152. package/build/services/router.js +1 -2
  153. package/build/services/server.d.ts +1 -0
  154. package/build/services/server.d.ts.map +1 -0
  155. package/build/services/server.js +1 -2
  156. package/build/services/test_utils.d.ts +1 -0
  157. package/build/services/test_utils.d.ts.map +1 -0
  158. package/build/src/cli_formatters/routes_list.d.ts +1 -0
  159. package/build/src/cli_formatters/routes_list.d.ts.map +1 -0
  160. package/build/src/debug.d.ts +1 -0
  161. package/build/src/debug.d.ts.map +1 -0
  162. package/build/src/helpers/is.d.ts +1 -0
  163. package/build/src/helpers/is.d.ts.map +1 -0
  164. package/build/src/helpers/main.d.ts +1 -0
  165. package/build/src/helpers/main.d.ts.map +1 -0
  166. package/build/src/helpers/parse_binding_reference.d.ts +1 -0
  167. package/build/src/helpers/parse_binding_reference.d.ts.map +1 -0
  168. package/build/src/helpers/string.d.ts +3 -0
  169. package/build/src/helpers/string.d.ts.map +1 -0
  170. package/build/src/helpers/string.js +4 -0
  171. package/build/src/helpers/types.d.ts +1 -0
  172. package/build/src/helpers/types.d.ts.map +1 -0
  173. package/build/src/ignitor/ace.d.ts +1 -0
  174. package/build/src/ignitor/ace.d.ts.map +1 -0
  175. package/build/src/ignitor/http.d.ts +1 -0
  176. package/build/src/ignitor/http.d.ts.map +1 -0
  177. package/build/src/ignitor/main.d.ts +1 -0
  178. package/build/src/ignitor/main.d.ts.map +1 -0
  179. package/build/src/ignitor/test.d.ts +1 -0
  180. package/build/src/ignitor/test.d.ts.map +1 -0
  181. package/build/src/internal_helpers.d.ts +1 -0
  182. package/build/src/internal_helpers.d.ts.map +1 -0
  183. package/build/src/test_utils/http.d.ts +1 -0
  184. package/build/src/test_utils/http.d.ts.map +1 -0
  185. package/build/src/test_utils/main.d.ts +2 -1
  186. package/build/src/test_utils/main.d.ts.map +1 -0
  187. package/build/src/types.d.ts +3 -2
  188. package/build/src/types.d.ts.map +1 -0
  189. package/build/stubs/index.d.ts +1 -0
  190. package/build/stubs/index.d.ts.map +1 -0
  191. package/build/stubs/make/preload_file/main.stub +4 -0
  192. package/build/stubs/make/service/main.stub +4 -0
  193. package/build/toolkit/commands/index_commands.d.ts +1 -0
  194. package/build/toolkit/commands/index_commands.d.ts.map +1 -0
  195. package/build/toolkit/commands/index_commands.js +2 -1
  196. package/build/toolkit/main.d.ts +1 -0
  197. package/build/toolkit/main.d.ts.map +1 -0
  198. package/build/types/ace.d.ts +1 -0
  199. package/build/types/ace.d.ts.map +1 -0
  200. package/build/types/app.d.ts +1 -0
  201. package/build/types/app.d.ts.map +1 -0
  202. package/build/types/bodyparser.d.ts +1 -0
  203. package/build/types/bodyparser.d.ts.map +1 -0
  204. package/build/types/container.d.ts +1 -0
  205. package/build/types/container.d.ts.map +1 -0
  206. package/build/types/encryption.d.ts +1 -0
  207. package/build/types/encryption.d.ts.map +1 -0
  208. package/build/types/events.d.ts +1 -0
  209. package/build/types/events.d.ts.map +1 -0
  210. package/build/types/hash.d.ts +1 -0
  211. package/build/types/hash.d.ts.map +1 -0
  212. package/build/types/http.d.ts +1 -0
  213. package/build/types/http.d.ts.map +1 -0
  214. package/build/types/logger.d.ts +1 -0
  215. package/build/types/logger.d.ts.map +1 -0
  216. package/commands/build.ts +122 -0
  217. package/commands/configure.ts +179 -0
  218. package/commands/eject.ts +39 -0
  219. package/commands/generate_key.ts +53 -0
  220. package/commands/inspect_rcfile.ts +23 -0
  221. package/commands/list/routes.ts +121 -0
  222. package/commands/make/_base.ts +55 -0
  223. package/commands/make/command.ts +33 -0
  224. package/commands/make/controller.ts +77 -0
  225. package/commands/make/event.ts +33 -0
  226. package/commands/make/listener.ts +63 -0
  227. package/commands/make/middleware.ts +34 -0
  228. package/commands/make/prldfile.ts +40 -0
  229. package/commands/make/provider.ts +40 -0
  230. package/commands/make/service.ts +33 -0
  231. package/commands/make/test.ts +115 -0
  232. package/commands/serve.ts +146 -0
  233. package/commands/test.ts +188 -0
  234. package/factories/app.ts +10 -0
  235. package/factories/bodyparser.ts +10 -0
  236. package/factories/core/ace.ts +38 -0
  237. package/factories/core/ignitor.ts +132 -0
  238. package/factories/core/main.ts +13 -0
  239. package/factories/core/test_utils.ts +34 -0
  240. package/factories/encryption.ts +10 -0
  241. package/factories/events.ts +10 -0
  242. package/factories/hash.ts +10 -0
  243. package/factories/http.ts +10 -0
  244. package/factories/logger.ts +10 -0
  245. package/factories/stubs.ts +53 -0
  246. package/index.ts +39 -0
  247. package/legacy/validator.ts +10 -0
  248. package/modules/ace/commands.ts +152 -0
  249. package/modules/ace/create_kernel.ts +74 -0
  250. package/modules/ace/kernel.ts +28 -0
  251. package/modules/ace/main.ts +22 -0
  252. package/modules/ace/shell.ts +49 -0
  253. package/modules/app.ts +10 -0
  254. package/modules/bodyparser/bodyparser_middleware.ts +16 -0
  255. package/modules/bodyparser/main.ts +10 -0
  256. package/modules/config.ts +10 -0
  257. package/modules/container.ts +10 -0
  258. package/modules/encryption.ts +10 -0
  259. package/modules/env.ts +10 -0
  260. package/modules/events.ts +10 -0
  261. package/modules/hash/define_config.ts +64 -0
  262. package/modules/hash/drivers_collection.ts +61 -0
  263. package/modules/hash/main.ts +12 -0
  264. package/modules/http.ts +10 -0
  265. package/modules/logger.ts +10 -0
  266. package/package.json +39 -30
  267. package/providers/app_provider.ts +125 -0
  268. package/providers/hash_provider.ts +58 -0
  269. package/providers/http_provider.ts +66 -0
  270. package/services/ace.ts +26 -0
  271. package/services/app.ts +26 -0
  272. package/services/config.ts +22 -0
  273. package/services/emitter.ts +23 -0
  274. package/services/encryption.ts +23 -0
  275. package/services/hash.ts +23 -0
  276. package/services/logger.ts +23 -0
  277. package/services/router.ts +23 -0
  278. package/services/server.ts +23 -0
  279. package/services/test_utils.ts +26 -0
  280. package/src/cli_formatters/routes_list.ts +480 -0
  281. package/src/debug.ts +12 -0
  282. package/src/helpers/is.ts +11 -0
  283. package/src/helpers/main.ts +13 -0
  284. package/src/helpers/parse_binding_reference.ts +93 -0
  285. package/src/helpers/string.ts +89 -0
  286. package/src/helpers/types.ts +46 -0
  287. package/src/ignitor/ace.ts +90 -0
  288. package/src/ignitor/http.ts +167 -0
  289. package/src/ignitor/main.ts +118 -0
  290. package/src/ignitor/test.ts +51 -0
  291. package/src/internal_helpers.ts +59 -0
  292. package/src/test_utils/http.ts +79 -0
  293. package/src/test_utils/main.ts +69 -0
  294. package/src/types.ts +136 -0
  295. package/types/ace.ts +15 -0
  296. package/types/app.ts +10 -0
  297. package/types/bodyparser.ts +10 -0
  298. package/types/container.ts +10 -0
  299. package/types/encryption.ts +10 -0
  300. package/types/events.ts +10 -0
  301. package/types/hash.ts +10 -0
  302. package/types/http.ts +10 -0
  303. package/types/logger.ts +10 -0
  304. package/build/src/helpers/string_builder.d.ts +0 -23
  305. package/build/src/helpers/string_builder.js +0 -86
@@ -9,9 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  };
10
10
  import { BaseCommand, flags } from '../modules/ace/main.js';
11
11
  import { detectAssetsBundler, importAssembler, importTypeScript } from '../src/internal_helpers.js';
12
- export default class Serve extends BaseCommand {
12
+ class Serve extends BaseCommand {
13
13
  static commandName = 'serve';
14
14
  static description = 'Start the development HTTP server along with the file watcher to perform restarts on file change';
15
+ static help = [
16
+ 'Start the development server with file watcher using the following command.',
17
+ '```',
18
+ '{{ binaryName }} serve --watch',
19
+ '```',
20
+ '',
21
+ 'The assets bundler dev server runs automatically after detecting vite config or webpack config files',
22
+ 'You may pass vite CLI args using the --assets-args command line flag.',
23
+ '```',
24
+ '{{ binaryName }} serve --assets-args="--debug --base=/public"',
25
+ '```',
26
+ ];
15
27
  static options = {
16
28
  staysAlive: true,
17
29
  };
@@ -41,6 +53,7 @@ export default class Serve extends BaseCommand {
41
53
  serve: this.assets === false ? false : true,
42
54
  driver: assetsBundler.name,
43
55
  cmd: assetsBundler.devServerCommand,
56
+ args: this.assetsArgs || [],
44
57
  }
45
58
  : {
46
59
  serve: false,
@@ -92,3 +105,10 @@ __decorate([
92
105
  }),
93
106
  __metadata("design:type", Boolean)
94
107
  ], Serve.prototype, "assets", void 0);
108
+ __decorate([
109
+ flags.array({
110
+ description: 'Define CLI arguments to pass to the assets bundler',
111
+ }),
112
+ __metadata("design:type", Array)
113
+ ], Serve.prototype, "assetsArgs", void 0);
114
+ export default Serve;
@@ -0,0 +1,21 @@
1
+ import type { CommandOptions } from '../types/ace.js';
2
+ import { BaseCommand } from '../modules/ace/main.js';
3
+ export default class Test extends BaseCommand {
4
+ #private;
5
+ static commandName: string;
6
+ static description: string;
7
+ static options: CommandOptions;
8
+ suites?: string[];
9
+ files?: string[];
10
+ tags?: string[];
11
+ ignoreTags?: string[];
12
+ groups?: string[];
13
+ tests?: string[];
14
+ watch?: boolean;
15
+ poll?: boolean;
16
+ clear?: boolean;
17
+ assets?: boolean;
18
+ assetsArgs?: string[];
19
+ run(): Promise<void>;
20
+ }
21
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../commands/test.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAe,MAAM,wBAAwB,CAAA;AAOjE,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,WAAW;;IAC3C,MAAM,CAAC,WAAW,SAAS;IAC3B,MAAM,CAAC,WAAW,SAAyE;IAE3F,MAAM,CAAC,OAAO,EAAE,cAAc,CAG7B;IAMO,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAGjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAGhB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAGf,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAGrB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAGjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAGhB,KAAK,CAAC,EAAE,OAAO,CAAA;IAGf,IAAI,CAAC,EAAE,OAAO,CAAA;IAOd,KAAK,CAAC,EAAE,OAAO,CAAA;IAOf,MAAM,CAAC,EAAE,OAAO,CAAA;IAKhB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;IAoBvB,GAAG;CAiGV"}
@@ -0,0 +1,155 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var __metadata = (this && this.__metadata) || function (k, v) {
8
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
9
+ };
10
+ import { BaseCommand, flags, args } from '../modules/ace/main.js';
11
+ import { detectAssetsBundler, importAssembler, importTypeScript } from '../src/internal_helpers.js';
12
+ class Test extends BaseCommand {
13
+ static commandName = 'test';
14
+ static description = 'Run tests along with the file watcher to re-run tests on file change';
15
+ static options = {
16
+ allowUnknownFlags: true,
17
+ staysAlive: true,
18
+ };
19
+ #logMissingDevelopmentDependency(dependency) {
20
+ this.logger.error([
21
+ `Cannot find package "${dependency}"`,
22
+ '',
23
+ `The "${dependency}" package is a development dependency and therefore you should run tests with development dependencies installed.`,
24
+ '',
25
+ 'If you are run tests inside a CI, make sure the NODE_ENV is set to "development"',
26
+ ].join('\n'));
27
+ }
28
+ async run() {
29
+ const assembler = await importAssembler(this.app);
30
+ if (!assembler) {
31
+ this.#logMissingDevelopmentDependency('@adonisjs/assembler');
32
+ this.exitCode = 1;
33
+ return;
34
+ }
35
+ const assetsBundler = await detectAssetsBundler(this.app);
36
+ const testRunner = new assembler.TestRunner(this.app.appRoot, {
37
+ clearScreen: this.clear === false ? false : true,
38
+ nodeArgs: this.parsed.nodeArgs,
39
+ scriptArgs: this.parsed.unknownFlags
40
+ .map((flag) => {
41
+ const value = this.parsed.flags[flag];
42
+ if (value === true) {
43
+ return [`--${flag}`];
44
+ }
45
+ if (Array.isArray(value)) {
46
+ return value.map((v) => [`--${flag}`, v]);
47
+ }
48
+ return [`--${flag}`, value];
49
+ })
50
+ .flat(2),
51
+ assets: assetsBundler
52
+ ? {
53
+ serve: this.assets === false ? false : true,
54
+ driver: assetsBundler.name,
55
+ cmd: assetsBundler.devServerCommand,
56
+ args: this.assetsArgs || [],
57
+ }
58
+ : {
59
+ serve: false,
60
+ },
61
+ filters: {
62
+ suites: this.suites,
63
+ files: this.files,
64
+ groups: this.groups,
65
+ tags: this.tags,
66
+ ignoreTags: this.ignoreTags,
67
+ tests: this.tests,
68
+ },
69
+ suites: this.app.rcFile.tests.suites.map((suite) => {
70
+ return {
71
+ name: suite.name,
72
+ files: Array.isArray(suite.files) ? suite.files : [suite.files],
73
+ };
74
+ }),
75
+ metaFiles: this.app.rcFile.metaFiles,
76
+ });
77
+ testRunner.setLogger(this.logger);
78
+ testRunner.onClose((exitCode) => {
79
+ this.exitCode = exitCode;
80
+ });
81
+ testRunner.onError(() => {
82
+ this.exitCode = 1;
83
+ });
84
+ if (this.watch) {
85
+ const ts = await importTypeScript(this.app);
86
+ if (!ts) {
87
+ this.#logMissingDevelopmentDependency('typescript');
88
+ this.exitCode = 1;
89
+ return;
90
+ }
91
+ await testRunner.runAndWatch(ts, { poll: this.poll || false });
92
+ }
93
+ else {
94
+ await testRunner.run();
95
+ }
96
+ }
97
+ }
98
+ __decorate([
99
+ args.spread({
100
+ description: 'Mention suite names to run tests for selected suites',
101
+ required: false,
102
+ }),
103
+ __metadata("design:type", Array)
104
+ ], Test.prototype, "suites", void 0);
105
+ __decorate([
106
+ flags.array({ description: 'Filter tests by the filename' }),
107
+ __metadata("design:type", Array)
108
+ ], Test.prototype, "files", void 0);
109
+ __decorate([
110
+ flags.array({ description: 'Filter tests by tags' }),
111
+ __metadata("design:type", Array)
112
+ ], Test.prototype, "tags", void 0);
113
+ __decorate([
114
+ flags.array({ description: 'Run tests that does not have mentioned tags' }),
115
+ __metadata("design:type", Array)
116
+ ], Test.prototype, "ignoreTags", void 0);
117
+ __decorate([
118
+ flags.array({ description: 'Filter tests by parent group title' }),
119
+ __metadata("design:type", Array)
120
+ ], Test.prototype, "groups", void 0);
121
+ __decorate([
122
+ flags.array({ description: 'Filter tests by test title' }),
123
+ __metadata("design:type", Array)
124
+ ], Test.prototype, "tests", void 0);
125
+ __decorate([
126
+ flags.boolean({ description: 'Watch filesystem and re-run tests on file change' }),
127
+ __metadata("design:type", Boolean)
128
+ ], Test.prototype, "watch", void 0);
129
+ __decorate([
130
+ flags.boolean({ description: 'Use polling to detect filesystem changes' }),
131
+ __metadata("design:type", Boolean)
132
+ ], Test.prototype, "poll", void 0);
133
+ __decorate([
134
+ flags.boolean({
135
+ description: 'Clear the terminal for new logs after file change',
136
+ showNegatedVariantInHelp: true,
137
+ default: true,
138
+ }),
139
+ __metadata("design:type", Boolean)
140
+ ], Test.prototype, "clear", void 0);
141
+ __decorate([
142
+ flags.boolean({
143
+ description: 'Start assets bundler dev server.',
144
+ showNegatedVariantInHelp: true,
145
+ default: true,
146
+ }),
147
+ __metadata("design:type", Boolean)
148
+ ], Test.prototype, "assets", void 0);
149
+ __decorate([
150
+ flags.array({
151
+ description: 'Define CLI arguments to pass to the assets bundler',
152
+ }),
153
+ __metadata("design:type", Array)
154
+ ], Test.prototype, "assetsArgs", void 0);
155
+ export default Test;
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/application/factories';
2
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../factories/app.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/bodyparser/factories';
2
+ //# sourceMappingURL=bodyparser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bodyparser.d.ts","sourceRoot":"","sources":["../../factories/bodyparser.ts"],"names":[],"mappings":"AASA,cAAc,gCAAgC,CAAA"}
@@ -6,3 +6,4 @@ export declare class AceFactory {
6
6
  make(ignitor: Ignitor): Promise<Kernel>;
7
7
  make(appRoot: URL, options: IgnitorOptions): Promise<Kernel>;
8
8
  }
9
+ //# sourceMappingURL=ace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ace.d.ts","sourceRoot":"","sources":["../../../factories/core/ace.ts"],"names":[],"mappings":";AAUA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAA;AAMzD,qBAAa,UAAU;IACf,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAAC,MAAM,CAAC;IACvC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CAiBnE"}
@@ -14,3 +14,4 @@ export declare class IgnitorFactory {
14
14
  create(appRoot: URL, options: IgnitorOptions): Ignitor;
15
15
  }
16
16
  export {};
17
+ //# sourceMappingURL=ignitor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ignitor.d.ts","sourceRoot":"","sources":["../../../factories/core/ignitor.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAA;AAEnD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAK5E,KAAK,iBAAiB,GAAG;IACvB,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IACnC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAC5B,CAAA;AAKD,qBAAa,cAAc;;IAYzB,OAAO,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI;IAmBxE,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAkB/C,iBAAiB,IAAI,IAAI;IASzB,cAAc,IAAI,IAAI;IA+BtB,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO;CAkBvD"}
@@ -2,3 +2,4 @@ export { AceFactory } from './ace.js';
2
2
  export { StubsFactory } from '../stubs.js';
3
3
  export { IgnitorFactory } from './ignitor.js';
4
4
  export { TestUtilsFactory } from './test_utils.js';
5
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../factories/core/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA"}
@@ -6,3 +6,4 @@ export declare class TestUtilsFactory {
6
6
  create(ignitor: Ignitor): TestUtils;
7
7
  create(appRoot: URL, options: IgnitorOptions): TestUtils;
8
8
  }
9
+ //# sourceMappingURL=test_utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test_utils.d.ts","sourceRoot":"","sources":["../../../factories/core/test_utils.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA;AAKxD,qBAAa,gBAAgB;IAC3B,MAAM,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS;IACnC,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,cAAc,GAAG,SAAS;CAczD"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/encryption/factories';
2
+ //# sourceMappingURL=encryption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../factories/encryption.ts"],"names":[],"mappings":"AASA,cAAc,gCAAgC,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/events/factories';
2
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../factories/events.ts"],"names":[],"mappings":"AASA,cAAc,4BAA4B,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/hash/factories';
2
+ //# sourceMappingURL=hash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hash.d.ts","sourceRoot":"","sources":["../../factories/hash.ts"],"names":[],"mappings":"AASA,cAAc,0BAA0B,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/http-server/factories';
2
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../factories/http.ts"],"names":[],"mappings":"AASA,cAAc,iCAAiC,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/logger/factories';
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../factories/logger.ts"],"names":[],"mappings":"AASA,cAAc,4BAA4B,CAAA"}
@@ -13,3 +13,4 @@ export declare class StubsFactory {
13
13
  }>;
14
14
  }
15
15
  export {};
16
+ //# sourceMappingURL=stubs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stubs.d.ts","sourceRoot":"","sources":["../../factories/stubs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEzD,KAAK,iBAAiB,GAAG;IACvB,GAAG,EAAE,kBAAkB,CAAA;CACxB,CAAA;AAMD,qBAAa,YAAY;;IAavB,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,IAAI;IAQzC,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;CAS1D"}
package/build/index.d.ts CHANGED
@@ -141,3 +141,4 @@ export declare const errors: {
141
141
  E_MISSING_APP_KEY: new (args?: any, options?: ErrorOptions | undefined) => import("@poppinss/utils").Exception;
142
142
  };
143
143
  export declare function prettyPrintError(error: any): Promise<void>;
144
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAeA,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMlB,CAAA;AAMD,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,GAAG,iBAOhD"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/validator';
2
+ //# sourceMappingURL=validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../legacy/validator.ts"],"names":[],"mappings":"AASA,cAAc,qBAAqB,CAAA"}
@@ -24,3 +24,4 @@ export declare class ListCommand extends AceListCommand implements BaseCommand {
24
24
  constructor(app: ApplicationService, kernel: Kernel, parsed: ParsedOutput, ui: UIPrimitives, prompt: Kernel['prompt']);
25
25
  terminate(): Promise<void>;
26
26
  }
27
+ //# sourceMappingURL=commands.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../modules/ace/commands.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,IAAI,cAAc,EAAE,WAAW,IAAI,cAAc,EAAE,MAAM,eAAe,CAAA;AAE5F,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAMpF,qBAAa,WAAY,SAAQ,cAAc;IAYpC,GAAG,EAAE,kBAAkB;IACvB,MAAM,EAAE,MAAM;IAZvB,MAAM,CAAC,OAAO,EAAE,cAAc,CAAK;IAEnC,IAAI,UAAU,wBAEb;IAED,IAAI,QAAQ,wBAEX;gBAGQ,GAAG,EAAE,kBAAkB,EACvB,MAAM,EAAE,MAAM,EACrB,MAAM,EAAE,YAAY,EACpB,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;IAU1B,OAAO,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;IAO1B,QAAQ,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;IAU3B,SAAS,CAAC,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,GAAG,GAAG;IAKtB,IAAI;IA0CJ,SAAS;CAKhB;AAKD,qBAAa,WAAY,SAAQ,cAAe,YAAW,WAAW;IAY3D,GAAG,EAAE,kBAAkB;IACvB,MAAM,EAAE,MAAM;IAZvB,MAAM,CAAC,OAAO,EAAE,cAAc,CAAK;IAEnC,IAAI,UAAU,wBAEb;IAED,IAAI,QAAQ,wBAEX;gBAGQ,GAAG,EAAE,kBAAkB,EACvB,MAAM,EAAE,MAAM,EACrB,MAAM,EAAE,YAAY,EACpB,EAAE,EAAE,YAAY,EAChB,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC;IAWpB,SAAS;CAKhB"}
@@ -1,5 +1,5 @@
1
1
  import { BaseCommand as AceBaseCommand, ListCommand as AceListCommand } from '@adonisjs/ace';
2
- export class BaseCommand extends AceBaseCommand {
2
+ class BaseCommand extends AceBaseCommand {
3
3
  app;
4
4
  kernel;
5
5
  static options = {};
@@ -41,7 +41,8 @@ export class BaseCommand extends AceBaseCommand {
41
41
  }
42
42
  }
43
43
  }
44
- export class ListCommand extends AceListCommand {
44
+ export { BaseCommand };
45
+ class ListCommand extends AceListCommand {
45
46
  app;
46
47
  kernel;
47
48
  static options = {};
@@ -62,3 +63,4 @@ export class ListCommand extends AceListCommand {
62
63
  }
63
64
  }
64
65
  }
66
+ export { ListCommand };
@@ -1,3 +1,4 @@
1
1
  import { Kernel } from './main.js';
2
2
  import type { ApplicationService } from '../../src/types.js';
3
3
  export declare function createAceKernel(app: ApplicationService): Kernel;
4
+ //# sourceMappingURL=create_kernel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create_kernel.d.ts","sourceRoot":"","sources":["../../../modules/ace/create_kernel.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAY5D,wBAAgB,eAAe,CAAC,GAAG,EAAE,kBAAkB,UAmDtD"}
@@ -3,6 +3,7 @@ import { FsLoader, HelpCommand } from '../../modules/ace/main.js';
3
3
  export function createAceKernel(app) {
4
4
  const kernel = new Kernel(app);
5
5
  kernel.addLoader(new FsLoader(app.commandsPath()));
6
+ kernel.info.set('binary', 'node ace');
6
7
  app.rcFile.commands.forEach((commandModule) => {
7
8
  kernel.addLoader(() => app.import(commandModule));
8
9
  });
@@ -5,3 +5,4 @@ export declare class Kernel extends AceKernel<typeof BaseCommand> {
5
5
  app: ApplicationService;
6
6
  constructor(app: ApplicationService);
7
7
  }
8
+ //# sourceMappingURL=kernel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kernel.d.ts","sourceRoot":"","sources":["../../../modules/ace/kernel.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,EAAE,WAAW,EAAe,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAM5D,qBAAa,MAAO,SAAQ,SAAS,CAAC,OAAO,WAAW,CAAC;IACpC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;CAS3C"}
@@ -1,3 +1,4 @@
1
1
  export { Kernel } from './kernel.js';
2
2
  export { BaseCommand, ListCommand } from './commands.js';
3
3
  export { args, flags, errors, Parser, FsLoader, ListLoader, cliHelpers, HelpCommand, IndexGenerator, } from '@adonisjs/ace';
4
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/ace/main.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,EACL,IAAI,EACJ,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,UAAU,EACV,UAAU,EACV,WAAW,EACX,cAAc,GACf,MAAM,eAAe,CAAA"}
@@ -2,3 +2,4 @@
2
2
  export declare function aceShell(cwd: URL): {
3
3
  handle(argv: string[]): Promise<void>;
4
4
  };
5
+ //# sourceMappingURL=shell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shell.d.ts","sourceRoot":"","sources":["../../../modules/ace/shell.ts"],"names":[],"mappings":";AA0BA,wBAAgB,QAAQ,CAAC,GAAG,EAAE,GAAG;iBAEV,MAAM,EAAE;EAoB9B"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/application';
2
+ //# sourceMappingURL=app.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../modules/app.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAA"}
@@ -1,2 +1,3 @@
1
1
  import { BodyParserMiddleware } from '@adonisjs/bodyparser/bodyparser_middleware';
2
2
  export default BodyParserMiddleware;
3
+ //# sourceMappingURL=bodyparser_middleware.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bodyparser_middleware.d.ts","sourceRoot":"","sources":["../../../modules/bodyparser/bodyparser_middleware.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAA;AAMjF,eAAe,oBAAoB,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/bodyparser';
2
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/bodyparser/main.ts"],"names":[],"mappings":"AASA,cAAc,sBAAsB,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/config';
2
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../modules/config.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/fold';
2
+ //# sourceMappingURL=container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../modules/container.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/encryption';
2
+ //# sourceMappingURL=encryption.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"encryption.d.ts","sourceRoot":"","sources":["../../modules/encryption.ts"],"names":[],"mappings":"AASA,cAAc,sBAAsB,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/env';
2
+ //# sourceMappingURL=env.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../modules/env.ts"],"names":[],"mappings":"AASA,cAAc,eAAe,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/events';
2
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../modules/events.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA"}
@@ -13,3 +13,4 @@ export declare function defineConfig<KnownHashers extends Record<string, {
13
13
  [K in keyof KnownHashers]: ManagerDriverFactory;
14
14
  };
15
15
  };
16
+ //# sourceMappingURL=define_config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define_config.d.ts","sourceRoot":"","sources":["../../../modules/hash/define_config.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAA;AAK/D,wBAAgB,YAAY,CAC1B,YAAY,SAAS,MAAM,CACzB,MAAM,EACN;KACG,CAAC,IAAI,MAAM,eAAe,GAAG;QAAE,MAAM,EAAE,CAAC,CAAA;KAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAChF,CAAC,MAAM,eAAe,CAAC,CACzB,EACD,MAAM,EAAE;IACR,OAAO,CAAC,EAAE,MAAM,YAAY,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;CACnB,GAAG;IACF,OAAO,CAAC,EAAE,MAAM,YAAY,CAAA;IAC5B,IAAI,EAAE;SAAG,CAAC,IAAI,MAAM,YAAY,GAAG,oBAAoB;KAAE,CAAA;CAC1D,CAgCA"}
@@ -1,9 +1,9 @@
1
- import { Argon, Bcrypt, Scrypt } from './main.js';
2
1
  import type { HashDriversList } from '../../src/types.js';
3
2
  declare class HashDriversCollection {
4
3
  list: Partial<HashDriversList>;
5
4
  extend<Name extends keyof HashDriversList>(driverName: Name, factoryCallback: HashDriversList[Name]): this;
6
- create<Name extends keyof HashDriversList>(name: Name, config: Parameters<HashDriversList[Name]>[0]): Bcrypt | Argon | Scrypt;
5
+ create<Name extends keyof HashDriversList>(name: Name, config: Parameters<HashDriversList[Name]>[0]): import("@adonisjs/hash").Bcrypt | import("@adonisjs/hash").Argon | import("@adonisjs/hash").Scrypt;
7
6
  }
8
- declare const hashDriversCollection: HashDriversCollection;
9
- export default hashDriversCollection;
7
+ declare const _default: HashDriversCollection;
8
+ export default _default;
9
+ //# sourceMappingURL=drivers_collection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drivers_collection.d.ts","sourceRoot":"","sources":["../../../modules/hash/drivers_collection.ts"],"names":[],"mappings":"AAmBA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AAKzD,cAAM,qBAAqB;IAIzB,IAAI,EAAE,OAAO,CAAC,eAAe,CAAC,CAAK;IAMnC,MAAM,CAAC,IAAI,SAAS,MAAM,eAAe,EACvC,UAAU,EAAE,IAAI,EAChB,eAAe,EAAE,eAAe,CAAC,IAAI,CAAC,GACrC,IAAI;IAQP,MAAM,CAAC,IAAI,SAAS,MAAM,eAAe,EACvC,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,UAAU,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;CAW/C;;AAED,wBAA0C"}
@@ -1,11 +1,6 @@
1
- import { Argon, Bcrypt, Scrypt } from './main.js';
2
1
  import { RuntimeException } from '@poppinss/utils';
3
2
  class HashDriversCollection {
4
- list = {
5
- bcrypt: (config) => new Bcrypt(config),
6
- argon2: (config) => new Argon(config),
7
- scrypt: (config) => new Scrypt(config),
8
- };
3
+ list = {};
9
4
  extend(driverName, factoryCallback) {
10
5
  this.list[driverName] = factoryCallback;
11
6
  return this;
@@ -18,5 +13,4 @@ class HashDriversCollection {
18
13
  return driverFactory(config);
19
14
  }
20
15
  }
21
- const hashDriversCollection = new HashDriversCollection();
22
- export default hashDriversCollection;
16
+ export default new HashDriversCollection();
@@ -1,2 +1,4 @@
1
1
  export * from '@adonisjs/hash';
2
2
  export { defineConfig } from './define_config.js';
3
+ export { default as driversList } from './drivers_collection.js';
4
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../modules/hash/main.ts"],"names":[],"mappings":"AASA,cAAc,gBAAgB,CAAA;AAC9B,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACjD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA"}
@@ -1,2 +1,3 @@
1
1
  export * from '@adonisjs/hash';
2
2
  export { defineConfig } from './define_config.js';
3
+ export { default as driversList } from './drivers_collection.js';
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/http-server';
2
+ //# sourceMappingURL=http.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../modules/http.ts"],"names":[],"mappings":"AASA,cAAc,uBAAuB,CAAA"}
@@ -1 +1,2 @@
1
1
  export * from '@adonisjs/logger';
2
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../modules/logger.ts"],"names":[],"mappings":"AASA,cAAc,kBAAkB,CAAA"}
@@ -14,3 +14,4 @@ export default class AppServiceProvider {
14
14
  register(): void;
15
15
  boot(): Promise<void>;
16
16
  }
17
+ //# sourceMappingURL=app_provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app_provider.d.ts","sourceRoot":"","sources":["../../providers/app_provider.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,kBAAkB,EAAiB,MAAM,iBAAiB,CAAA;AAMxE,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACzB,SAAS,CAAC,GAAG,EAAE,kBAAkB;gBAAvB,GAAG,EAAE,kBAAkB;IAK7C,SAAS,CAAC,iBAAiB;IAU3B,SAAS,CAAC,WAAW;IAUrB,SAAS,CAAC,WAAW;IAOrB,SAAS,CAAC,cAAc;IAUxB,SAAS,CAAC,qBAAqB;IAW/B,SAAS,CAAC,cAAc;IAQxB,SAAS,CAAC,eAAe;IAUzB,SAAS,CAAC,kBAAkB;cAWZ,kBAAkB;IAQlC,QAAQ;IAWF,IAAI;CAGX"}