@adonisjs/core 5.9.0 → 6.0.1-0

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 (280) hide show
  1. package/README.md +6 -15
  2. package/build/commands/commands.json +1 -0
  3. package/build/commands/eject.d.ts +8 -0
  4. package/build/commands/eject.js +34 -0
  5. package/build/commands/{GenerateKey.d.ts → generate_key.d.ts} +3 -4
  6. package/build/commands/generate_key.js +47 -0
  7. package/build/commands/main.js +36 -0
  8. package/build/commands/make/_base.d.ts +6 -0
  9. package/build/commands/make/_base.js +19 -0
  10. package/build/commands/make/command.d.ts +8 -0
  11. package/build/commands/make/command.js +25 -0
  12. package/build/commands/make/controller.d.ts +12 -0
  13. package/build/commands/make/controller.js +57 -0
  14. package/build/commands/make/event.d.ts +8 -0
  15. package/build/commands/make/event.js +25 -0
  16. package/build/commands/make/listener.d.ts +10 -0
  17. package/build/commands/make/listener.js +48 -0
  18. package/build/commands/make/middleware.d.ts +8 -0
  19. package/build/commands/make/middleware.js +25 -0
  20. package/build/commands/make/provider.d.ts +8 -0
  21. package/build/commands/make/provider.js +25 -0
  22. package/build/factories/app.d.ts +1 -0
  23. package/build/factories/app.js +1 -0
  24. package/build/factories/bodyparser.d.ts +1 -0
  25. package/build/factories/bodyparser.js +1 -0
  26. package/build/factories/core/ace.d.ts +8 -0
  27. package/build/factories/core/ace.js +19 -0
  28. package/build/factories/core/ignitor.d.ts +16 -0
  29. package/build/factories/core/ignitor.js +76 -0
  30. package/build/factories/core/main.d.ts +4 -0
  31. package/build/factories/core/main.js +4 -0
  32. package/build/factories/core/test_utils.d.ts +8 -0
  33. package/build/factories/core/test_utils.js +15 -0
  34. package/build/factories/encryption.d.ts +1 -0
  35. package/build/factories/encryption.js +1 -0
  36. package/build/factories/events.d.ts +1 -0
  37. package/build/factories/events.js +1 -0
  38. package/build/factories/hash.d.ts +1 -0
  39. package/build/factories/hash.js +1 -0
  40. package/build/factories/http.d.ts +1 -0
  41. package/build/factories/http.js +1 -0
  42. package/build/factories/logger.d.ts +1 -0
  43. package/build/factories/logger.js +1 -0
  44. package/build/factories/stubs.d.ts +15 -0
  45. package/build/factories/stubs.js +20 -0
  46. package/build/index.d.ts +140 -0
  47. package/build/index.js +21 -0
  48. package/build/legacy/validator.d.ts +1 -0
  49. package/build/legacy/validator.js +1 -0
  50. package/build/modules/ace/commands.d.ts +26 -0
  51. package/build/modules/ace/commands.js +63 -0
  52. package/build/modules/ace/create_kernel.d.ts +3 -0
  53. package/build/modules/ace/create_kernel.js +33 -0
  54. package/build/modules/ace/kernel.d.ts +7 -0
  55. package/build/modules/ace/kernel.js +14 -0
  56. package/build/modules/ace/main.d.ts +3 -0
  57. package/build/modules/ace/main.js +3 -0
  58. package/build/modules/app.d.ts +1 -0
  59. package/build/modules/app.js +1 -0
  60. package/build/modules/bodyparser/bodyparser_middleware.d.ts +2 -0
  61. package/build/modules/bodyparser/bodyparser_middleware.js +2 -0
  62. package/build/modules/bodyparser/main.d.ts +1 -0
  63. package/build/modules/bodyparser/main.js +1 -0
  64. package/build/modules/config.d.ts +1 -0
  65. package/build/modules/config.js +1 -0
  66. package/build/modules/container.d.ts +1 -0
  67. package/build/modules/container.js +1 -0
  68. package/build/modules/encryption.d.ts +1 -0
  69. package/build/modules/encryption.js +1 -0
  70. package/build/modules/env.d.ts +1 -0
  71. package/build/modules/env.js +1 -0
  72. package/build/modules/events.d.ts +1 -0
  73. package/build/modules/events.js +1 -0
  74. package/build/modules/hash/define_config.d.ts +15 -0
  75. package/build/modules/hash/define_config.js +19 -0
  76. package/build/modules/hash/drivers_collection.d.ts +9 -0
  77. package/build/modules/hash/drivers_collection.js +22 -0
  78. package/build/modules/hash/main.d.ts +2 -0
  79. package/build/modules/hash/main.js +2 -0
  80. package/build/modules/http.d.ts +1 -0
  81. package/build/modules/http.js +1 -0
  82. package/build/modules/logger.d.ts +1 -0
  83. package/build/modules/logger.js +1 -0
  84. package/build/providers/app_provider.d.ts +16 -0
  85. package/build/providers/app_provider.js +74 -0
  86. package/build/providers/hash_provider.d.ts +9 -0
  87. package/build/providers/hash_provider.js +29 -0
  88. package/build/providers/http_provider.d.ts +9 -0
  89. package/build/providers/http_provider.js +36 -0
  90. package/build/services/ace.d.ts +3 -0
  91. package/build/services/ace.js +6 -0
  92. package/build/services/app.d.ts +4 -12
  93. package/build/services/app.js +5 -12
  94. package/build/services/config.d.ts +3 -3
  95. package/build/services/config.js +6 -12
  96. package/build/services/emitter.d.ts +3 -0
  97. package/build/services/emitter.js +7 -0
  98. package/build/services/encryption.d.ts +3 -3
  99. package/build/services/encryption.js +7 -12
  100. package/build/services/hash.d.ts +3 -3
  101. package/build/services/hash.js +7 -12
  102. package/build/services/logger.d.ts +3 -0
  103. package/build/services/logger.js +7 -0
  104. package/build/services/router.d.ts +3 -0
  105. package/build/services/router.js +7 -0
  106. package/build/services/server.d.ts +3 -0
  107. package/build/services/server.js +7 -0
  108. package/build/services/test_utils.d.ts +3 -0
  109. package/build/services/test_utils.js +6 -0
  110. package/build/src/debug.d.ts +3 -0
  111. package/build/src/debug.js +2 -0
  112. package/build/src/helpers/is.d.ts +2 -0
  113. package/build/src/helpers/is.js +2 -0
  114. package/build/src/helpers/main.d.ts +2 -0
  115. package/build/src/helpers/main.js +2 -0
  116. package/build/src/helpers/string.d.ts +17 -0
  117. package/build/src/helpers/string.js +26 -0
  118. package/build/src/helpers/string_builder.d.ts +23 -0
  119. package/build/src/helpers/string_builder.js +86 -0
  120. package/build/src/helpers/types.d.ts +24 -0
  121. package/build/src/helpers/types.js +29 -0
  122. package/build/src/ignitor/ace.d.ts +8 -0
  123. package/build/src/ignitor/ace.js +31 -0
  124. package/build/src/ignitor/http.d.ts +10 -0
  125. package/build/src/ignitor/http.js +62 -0
  126. package/build/src/ignitor/main.d.ts +17 -0
  127. package/build/src/ignitor/main.js +45 -0
  128. package/build/src/ignitor/test.d.ts +8 -0
  129. package/build/src/ignitor/test.js +18 -0
  130. package/build/src/test_utils/http.d.ts +10 -0
  131. package/build/src/test_utils/http.js +42 -0
  132. package/build/src/test_utils/main.d.ts +19 -0
  133. package/build/src/test_utils/main.js +33 -0
  134. package/build/src/types.d.ts +63 -0
  135. package/build/src/types.js +1 -0
  136. package/build/stubs/index.d.ts +1 -0
  137. package/build/stubs/index.js +2 -0
  138. package/build/stubs/make/command/main.stub +19 -0
  139. package/build/stubs/make/controller/api.stub +33 -0
  140. package/build/stubs/make/controller/main.stub +9 -0
  141. package/build/stubs/make/controller/resource.stub +43 -0
  142. package/build/stubs/make/event/main.stub +15 -0
  143. package/build/stubs/make/listener/for_event.stub +13 -0
  144. package/build/stubs/make/listener/main.stub +7 -0
  145. package/build/stubs/make/middleware/main.stub +22 -0
  146. package/build/stubs/make/provider/main.stub +35 -0
  147. package/build/types/ace.d.ts +5 -0
  148. package/build/types/ace.js +1 -0
  149. package/build/types/app.d.ts +1 -0
  150. package/build/types/app.js +1 -0
  151. package/build/types/bodyparser.d.ts +1 -0
  152. package/build/types/bodyparser.js +1 -0
  153. package/build/types/container.d.ts +1 -0
  154. package/build/types/container.js +1 -0
  155. package/build/types/encryption.d.ts +1 -0
  156. package/build/types/encryption.js +1 -0
  157. package/build/types/events.d.ts +1 -0
  158. package/build/types/events.js +1 -0
  159. package/build/types/hash.d.ts +1 -0
  160. package/build/types/hash.js +1 -0
  161. package/build/types/http.d.ts +1 -0
  162. package/build/types/http.js +1 -0
  163. package/build/types/logger.d.ts +1 -0
  164. package/build/types/logger.js +1 -0
  165. package/package.json +235 -245
  166. package/build/adonis-typings/ace.d.ts +0 -5
  167. package/build/adonis-typings/ace.js +0 -8
  168. package/build/adonis-typings/assets-manager.d.ts +0 -92
  169. package/build/adonis-typings/assets-manager.js +0 -8
  170. package/build/adonis-typings/container.d.ts +0 -14
  171. package/build/adonis-typings/container.js +0 -8
  172. package/build/adonis-typings/cors.d.ts +0 -15
  173. package/build/adonis-typings/cors.js +0 -8
  174. package/build/adonis-typings/exception-handler.d.ts +0 -31
  175. package/build/adonis-typings/exception-handler.js +0 -8
  176. package/build/adonis-typings/health-check.d.ts +0 -40
  177. package/build/adonis-typings/health-check.js +0 -8
  178. package/build/adonis-typings/index.d.ts +0 -17
  179. package/build/adonis-typings/index.js +0 -25
  180. package/build/adonis-typings/static.d.ts +0 -15
  181. package/build/adonis-typings/static.js +0 -8
  182. package/build/adonis-typings/test-utils.d.ts +0 -24
  183. package/build/adonis-typings/test-utils.js +0 -8
  184. package/build/adonis-typings/tests.d.ts +0 -13
  185. package/build/adonis-typings/tests.js +0 -11
  186. package/build/commands/DumpRc.d.ts +0 -13
  187. package/build/commands/DumpRc.js +0 -33
  188. package/build/commands/GenerateKey.js +0 -25
  189. package/build/commands/ListRoutes/Renderers/Base.d.ts +0 -31
  190. package/build/commands/ListRoutes/Renderers/Base.js +0 -70
  191. package/build/commands/ListRoutes/Renderers/PrettyRenderer.d.ts +0 -51
  192. package/build/commands/ListRoutes/Renderers/PrettyRenderer.js +0 -135
  193. package/build/commands/ListRoutes/Renderers/TableRenderer.d.ts +0 -36
  194. package/build/commands/ListRoutes/Renderers/TableRenderer.js +0 -137
  195. package/build/commands/ListRoutes/index.d.ts +0 -75
  196. package/build/commands/ListRoutes/index.js +0 -166
  197. package/build/commands/index.d.ts +0 -2
  198. package/build/commands/index.js +0 -15
  199. package/build/config.d.ts +0 -2
  200. package/build/config.js +0 -15
  201. package/build/instructions.js +0 -81
  202. package/build/providers/AppProvider.d.ts +0 -68
  203. package/build/providers/AppProvider.js +0 -201
  204. package/build/services/base.d.ts +0 -3
  205. package/build/services/base.js +0 -23
  206. package/build/services/bodyparser.d.ts +0 -2
  207. package/build/services/bodyparser.js +0 -12
  208. package/build/services/drive.d.ts +0 -3
  209. package/build/services/drive.js +0 -12
  210. package/build/services/event.d.ts +0 -3
  211. package/build/services/event.js +0 -12
  212. package/build/services/healthChecks.d.ts +0 -3
  213. package/build/services/healthChecks.js +0 -12
  214. package/build/services/httpContext.d.ts +0 -3
  215. package/build/services/httpContext.js +0 -12
  216. package/build/services/route.d.ts +0 -3
  217. package/build/services/route.js +0 -12
  218. package/build/services/validator.d.ts +0 -3
  219. package/build/services/validator.js +0 -12
  220. package/build/src/AssetsManager/Drivers/Base.d.ts +0 -27
  221. package/build/src/AssetsManager/Drivers/Base.js +0 -66
  222. package/build/src/AssetsManager/Drivers/Encore.d.ts +0 -58
  223. package/build/src/AssetsManager/Drivers/Encore.js +0 -93
  224. package/build/src/AssetsManager/Drivers/Fake.d.ts +0 -38
  225. package/build/src/AssetsManager/Drivers/Fake.js +0 -61
  226. package/build/src/AssetsManager/Drivers/Vite.d.ts +0 -84
  227. package/build/src/AssetsManager/Drivers/Vite.js +0 -139
  228. package/build/src/AssetsManager/index.d.ts +0 -87
  229. package/build/src/AssetsManager/index.js +0 -184
  230. package/build/src/Bindings/Repl.d.ts +0 -8
  231. package/build/src/Bindings/Repl.js +0 -90
  232. package/build/src/Bindings/Tests.d.ts +0 -7
  233. package/build/src/Bindings/Tests.js +0 -66
  234. package/build/src/HealthCheck/Checkers/AppKey.d.ts +0 -6
  235. package/build/src/HealthCheck/Checkers/AppKey.js +0 -60
  236. package/build/src/HealthCheck/Checkers/Env.d.ts +0 -6
  237. package/build/src/HealthCheck/Checkers/Env.js +0 -42
  238. package/build/src/HealthCheck/index.d.ts +0 -48
  239. package/build/src/HealthCheck/index.js +0 -99
  240. package/build/src/Hooks/Cors/index.d.ts +0 -70
  241. package/build/src/Hooks/Cors/index.js +0 -314
  242. package/build/src/Hooks/Static/index.d.ts +0 -18
  243. package/build/src/Hooks/Static/index.js +0 -66
  244. package/build/src/HttpExceptionHandler/index.d.ts +0 -82
  245. package/build/src/HttpExceptionHandler/index.js +0 -213
  246. package/build/src/Ignitor/Ace/App/index.d.ts +0 -60
  247. package/build/src/Ignitor/Ace/App/index.js +0 -236
  248. package/build/src/Ignitor/Ace/Exceptions/index.d.ts +0 -4
  249. package/build/src/Ignitor/Ace/Exceptions/index.js +0 -19
  250. package/build/src/Ignitor/Ace/GenerateManifest/index.d.ts +0 -28
  251. package/build/src/Ignitor/Ace/GenerateManifest/index.js +0 -75
  252. package/build/src/Ignitor/Ace/index.d.ts +0 -11
  253. package/build/src/Ignitor/Ace/index.js +0 -36
  254. package/build/src/Ignitor/HttpServer/index.d.ts +0 -56
  255. package/build/src/Ignitor/HttpServer/index.js +0 -127
  256. package/build/src/Ignitor/Kernel/index.d.ts +0 -56
  257. package/build/src/Ignitor/Kernel/index.js +0 -123
  258. package/build/src/Ignitor/SignalsListener/index.d.ts +0 -23
  259. package/build/src/Ignitor/SignalsListener/index.js +0 -66
  260. package/build/src/Ignitor/index.d.ts +0 -32
  261. package/build/src/Ignitor/index.js +0 -58
  262. package/build/src/TestUtils/HttpServer/index.d.ts +0 -27
  263. package/build/src/TestUtils/HttpServer/index.js +0 -56
  264. package/build/src/TestUtils/index.d.ts +0 -24
  265. package/build/src/TestUtils/index.js +0 -43
  266. package/build/src/utils/index.d.ts +0 -18
  267. package/build/src/utils/index.js +0 -82
  268. package/build/standalone.d.ts +0 -9
  269. package/build/standalone.js +0 -52
  270. package/build/templates/config/app.txt +0 -303
  271. package/build/templates/config/bodyparser.txt +0 -211
  272. package/build/templates/config/cors.txt +0 -134
  273. package/build/templates/config/drive.txt +0 -149
  274. package/build/templates/config/hash.txt +0 -96
  275. package/build/templates/config/static.txt +0 -89
  276. package/build/templates/contracts/drive.txt +0 -13
  277. package/build/templates/contracts/env.txt +0 -24
  278. package/build/templates/contracts/events.txt +0 -31
  279. package/build/templates/contracts/hash.txt +0 -13
  280. package/build/templates/env.txt +0 -31
package/package.json CHANGED
@@ -1,247 +1,237 @@
1
1
  {
2
- "name": "@adonisjs/core",
3
- "version": "5.9.0",
4
- "description": "Core of AdonisJS",
5
- "exports": {
6
- ".": {
7
- "types": "./build/adonis-typings/index.d.ts",
8
- "require": "./build/providers/AppProvider.js"
9
- },
10
- "./standalone": "./build/standalone.js",
11
- "./config": "./build/config.js",
12
- "./Ignitor": "./build/src/Ignitor/index.js",
13
- "./commands": "./build/commands/index.js",
14
- "./commands/DumpRc": "./build/commands/DumpRc.js",
15
- "./commands/ListRoutes": "./build/commands/ListRoutes.js",
16
- "./commands/GenerateKey": "./build/commands/GenerateKey.js",
17
- "./build/standalone": "./build/standalone.js",
18
- "./build/config": "./build/config.js",
19
- "./build/src/Ignitor": "./build/src/Ignitor/index.js",
20
- "./build/commands": "./build/commands/index.js",
21
- "./build/commands/DumpRc": "./build/commands/DumpRc.js",
22
- "./build/commands/ListRoutes/*": "./build/commands/ListRoutes/*.js",
23
- "./build/commands/GenerateKey": "./build/commands/GenerateKey.js",
24
- "./*": "./*"
25
- },
26
- "files": [
27
- "build/adonis-typings",
28
- "build/commands",
29
- "build/templates",
30
- "build/providers",
31
- "build/services",
32
- "build/src",
33
- "build/instructions.js",
34
- "build/config.js",
35
- "build/config.d.ts",
36
- "build/standalone.js",
37
- "build/standalone.d.ts"
38
- ],
39
- "scripts": {
40
- "mrm": "mrm --preset=@adonisjs/mrm-preset",
41
- "pretest": "npm run lint",
42
- "test": "node -r @adonisjs/require-ts/build/register bin/test.ts",
43
- "clean": "del-cli build",
44
- "compile": "npm run lint && npm run clean && tsc && copyfiles templates/**/* templates/* build",
45
- "build": "npm run compile",
46
- "commit": "git-cz",
47
- "release": "np --message=\"chore(release): %s\"",
48
- "version": "npm run build",
49
- "prepublishOnly": "npm run build",
50
- "lint": "eslint . --ext=.ts",
51
- "format": "prettier --write .",
52
- "sync-labels": "github-label-sync --labels ./node_modules/@adonisjs/mrm-preset/gh-labels.json adonisjs/core"
53
- },
54
- "types": "./build/adonis-typings/index.d.ts",
55
- "repository": {
56
- "type": "git",
57
- "url": "git+https://github.com/adonisjs/core.git"
58
- },
59
- "keywords": [
60
- "adonisjs",
61
- "framework",
62
- "mvc"
63
- ],
64
- "author": "virk,adonisjs",
65
- "license": "MIT",
66
- "bugs": {
67
- "url": "https://github.com/adonisjs/core/issues"
68
- },
69
- "homepage": "https://github.com/adonisjs/core#readme",
70
- "devDependencies": {
71
- "@adonisjs/assembler": "^5.9.5",
72
- "@adonisjs/fold": "^8.2.0",
73
- "@adonisjs/logger": "^4.1.5",
74
- "@adonisjs/mrm-preset": "^5.0.3",
75
- "@adonisjs/repl": "^3.1.11",
76
- "@adonisjs/require-ts": "^2.0.13",
77
- "@adonisjs/sink": "^5.4.2",
78
- "@japa/assert": "^1.3.6",
79
- "@japa/preset-adonis": "^1.2.0",
80
- "@japa/run-failed-tests": "^1.1.0",
81
- "@japa/runner": "^2.2.2",
82
- "@japa/spec-reporter": "^1.3.2",
83
- "@poppinss/dev-utils": "^2.0.3",
84
- "@types/node": "^18.11.9",
85
- "@types/supertest": "^2.0.12",
86
- "clear-module": "^4.1.2",
87
- "commitizen": "^4.2.5",
88
- "copyfiles": "^2.4.1",
89
- "cz-conventional-changelog": "^3.3.0",
90
- "del-cli": "^5.0.0",
91
- "eslint": "^8.28.0",
92
- "eslint-config-prettier": "^8.5.0",
93
- "eslint-plugin-adonis": "^2.1.1",
94
- "eslint-plugin-prettier": "^4.2.1",
95
- "etag": "^1.8.1",
96
- "github-label-sync": "^2.2.0",
97
- "husky": "^8.0.2",
98
- "mrm": "^4.1.13",
99
- "np": "^7.6.2",
100
- "prettier": "^2.7.1",
101
- "reflect-metadata": "^0.1.13",
102
- "strip-ansi": "^6.0.1",
103
- "supertest": "^6.3.1",
104
- "test-console": "^2.0.0",
105
- "typescript": "^4.9.3",
106
- "youch": "^3.2.2",
107
- "youch-terminal": "^2.1.5"
108
- },
109
- "nyc": {
110
- "exclude": [
111
- "test"
112
- ],
113
- "extension": [
114
- ".ts"
115
- ]
116
- },
117
- "husky": {
118
- "hooks": {
119
- "commit-msg": "node ./node_modules/@adonisjs/mrm-preset/validateCommit/conventional/validate.js"
120
- }
121
- },
122
- "config": {
123
- "commitizen": {
124
- "path": "cz-conventional-changelog"
125
- }
126
- },
127
- "dependencies": {
128
- "@adonisjs/ace": "^11.3.1",
129
- "@adonisjs/application": "^5.3.0",
130
- "@adonisjs/bodyparser": "^8.1.7",
131
- "@adonisjs/drive": "^2.3.0",
132
- "@adonisjs/encryption": "^4.0.8",
133
- "@adonisjs/events": "^7.2.1",
134
- "@adonisjs/hash": "^7.2.2",
135
- "@adonisjs/http-server": "^5.12.0",
136
- "@adonisjs/validator": "^12.4.1",
137
- "@poppinss/cliui": "^3.0.5",
138
- "@poppinss/manager": "^5.0.2",
139
- "@poppinss/utils": "^5.0.0",
140
- "fs-extra": "^10.1.0",
141
- "macroable": "^7.0.2",
142
- "memfs": "^3.4.12",
143
- "serve-static": "^1.15.0",
144
- "stringify-attributes": "^2.0.0"
145
- },
146
- "np": {
147
- "contents": ".",
148
- "anyBranch": false
149
- },
150
- "adonisjs": {
151
- "instructions": "./build/instructions.js",
152
- "templates": {
153
- "basePath": "./build/templates",
154
- "config": [
155
- {
156
- "src": "config/bodyparser.txt",
157
- "dest": "bodyparser"
158
- },
159
- {
160
- "src": "config/drive.txt",
161
- "dest": "drive"
162
- },
163
- {
164
- "src": "config/cors.txt",
165
- "dest": "cors"
166
- },
167
- {
168
- "src": "config/hash.txt",
169
- "dest": "hash"
170
- }
171
- ],
172
- "contracts": [
173
- {
174
- "src": "contracts/events.txt",
175
- "dest": "events"
176
- },
177
- {
178
- "src": "contracts/drive.txt",
179
- "dest": "drive"
180
- },
181
- {
182
- "src": "contracts/hash.txt",
183
- "dest": "hash"
184
- },
185
- {
186
- "src": "contracts/env.txt",
187
- "dest": "env"
188
- }
189
- ]
190
- },
191
- "commands": [
192
- "@adonisjs/core/build/commands/index.js"
193
- ],
194
- "types": "@adonisjs/core",
195
- "providers": [
196
- "@adonisjs/core"
197
- ]
198
- },
199
- "publishConfig": {
200
- "access": "public",
201
- "tag": "latest"
202
- },
203
- "mrmConfig": {
204
- "core": true,
205
- "license": "MIT",
206
- "services": [
207
- "github-actions"
208
- ],
209
- "minNodeVersion": "14.15.4",
210
- "probotApps": [
211
- "stale",
212
- "lock"
213
- ],
214
- "runGhActionsOnWindows": true
215
- },
216
- "main": "build/index.js",
217
- "eslintConfig": {
218
- "extends": [
219
- "plugin:adonis/typescriptPackage",
220
- "prettier"
221
- ],
222
- "plugins": [
223
- "prettier"
224
- ],
225
- "rules": {
226
- "prettier/prettier": [
227
- "error",
228
- {
229
- "endOfLine": "auto"
230
- }
231
- ]
232
- }
233
- },
234
- "eslintIgnore": [
235
- "build"
236
- ],
237
- "prettier": {
238
- "trailingComma": "es5",
239
- "semi": false,
240
- "singleQuote": true,
241
- "useTabs": false,
242
- "quoteProps": "consistent",
243
- "bracketSpacing": true,
244
- "arrowParens": "always",
245
- "printWidth": 100
246
- }
2
+ "name": "@adonisjs/core",
3
+ "version": "6.0.1-0",
4
+ "description": "Core of AdonisJS",
5
+ "main": "build/index.js",
6
+ "type": "module",
7
+ "files": [
8
+ "build/modules",
9
+ "build/commands",
10
+ "build/legacy",
11
+ "build/providers",
12
+ "build/services",
13
+ "build/factories",
14
+ "build/types",
15
+ "build/src",
16
+ "build/stubs",
17
+ "build/index.d.ts",
18
+ "build/index.js"
19
+ ],
20
+ "exports": {
21
+ ".": "./build/index.js",
22
+ "./commands": "./build/commands/main.js",
23
+ "./factories": "./build/factories/core/main.js",
24
+ "./factories/app": "./build/factories/app.js",
25
+ "./factories/bodyparser": "./build/factories/bodyparser.js",
26
+ "./factories/encryption": "./build/factories/encryption.js",
27
+ "./factories/events": "./build/factories/events.js",
28
+ "./factories/hash": "./build/factories/hash.js",
29
+ "./factories/http": "./build/factories/http.js",
30
+ "./factories/logger": "./build/factories/logger.js",
31
+ "./types": "./build/src/types.js",
32
+ "./types/ace": "./build/types/ace.js",
33
+ "./types/app": "./build/types/app.js",
34
+ "./types/bodyparser": "./build/types/bodyparser.js",
35
+ "./types/container": "./build/types/container.js",
36
+ "./types/encryption": "./build/types/encryption.js",
37
+ "./types/events": "./build/types/events.js",
38
+ "./types/hash": "./build/types/hash.js",
39
+ "./types/http": "./build/types/http.js",
40
+ "./types/logger": "./build/types/logger.js",
41
+ "./services/ace": "./build/services/ace.js",
42
+ "./services/app": "./build/services/app.js",
43
+ "./services/config": "./build/services/config.js",
44
+ "./services/emitter": "./build/services/emitter.js",
45
+ "./services/encryption": "./build/services/encryption.js",
46
+ "./services/hash": "./build/services/hash.js",
47
+ "./services/logger": "./build/services/logger.js",
48
+ "./services/router": "./build/services/router.js",
49
+ "./services/server": "./build/services/server.js",
50
+ "./providers/app_provider": "./build/providers/app_provider.js",
51
+ "./providers/hash_provider": "./build/providers/hash_provider.js",
52
+ "./providers/http_provider": "./build/providers/http_provider.js",
53
+ "./legacy/validator": "./build/legacy/validator.js",
54
+ "./helpers": "./build/src/helpers/main.js",
55
+ "./helpers/is": "./build/src/helpers/is.js",
56
+ "./helpers/types": "./build/src/helpers/types.js",
57
+ "./helpers/string": "./build/src/helpers/string.js",
58
+ "./helpers/string_builder": "./build/src/helpers/string_builder.js",
59
+ "./ace": "./build/modules/ace/main.js",
60
+ "./bodyparser": "./build/modules/bodyparser/main.js",
61
+ "./bodyparser_middleware": "./build/modules/bodyparser/bodyparser_middleware.js",
62
+ "./hash": "./build/modules/hash/main.js",
63
+ "./app": "./build/modules/app.js",
64
+ "./config": "./build/modules/config.js",
65
+ "./container": "./build/modules/container.js",
66
+ "./encryption": "./build/modules/encryption.js",
67
+ "./env": "./build/modules/env.js",
68
+ "./events": "./build/modules/events.js",
69
+ "./http": "./build/modules/http.js",
70
+ "./logger": "./build/modules/logger.js",
71
+ "./package.json": "./package.json"
72
+ },
73
+ "scripts": {
74
+ "pretest": "npm run lint",
75
+ "test": "cross-env NODE_DEBUG=adonisjs:core c8 npm run vscode:test",
76
+ "clean": "del-cli build",
77
+ "copy:templates": "copyfiles \"stubs/**/**/*.stub\" build",
78
+ "precompile": "npm run lint",
79
+ "compile": "npm run clean && tsc",
80
+ "postcompile": "npm run copy:templates && npm run index:commands",
81
+ "build": "npm run compile",
82
+ "release": "np",
83
+ "version": "npm run build",
84
+ "prepublishOnly": "npm run build",
85
+ "lint": "eslint . --ext=.ts",
86
+ "format": "prettier --write .",
87
+ "sync-labels": "github-label-sync --labels .github/labels.json adonisjs/core",
88
+ "vscode:test": "node --loader=ts-node/esm --experimental-import-meta-resolve bin/test.ts",
89
+ "index:commands": "ace-toolkit index build/commands"
90
+ },
91
+ "keywords": [
92
+ "adonisjs",
93
+ "framework",
94
+ "mvc"
95
+ ],
96
+ "author": "virk,adonisjs",
97
+ "license": "MIT",
98
+ "devDependencies": {
99
+ "@commitlint/cli": "^17.4.4",
100
+ "@commitlint/config-conventional": "^17.4.4",
101
+ "@japa/assert": "^1.4.1",
102
+ "@japa/expect-type": "^1.0.3",
103
+ "@japa/file-system": "^1.0.1",
104
+ "@japa/preset-adonis": "^1.2.0",
105
+ "@japa/run-failed-tests": "^1.1.1",
106
+ "@japa/runner": "^2.5.0",
107
+ "@japa/spec-reporter": "^1.3.3",
108
+ "@swc/core": "^1.3.35",
109
+ "@types/fs-extra": "^11.0.1",
110
+ "@types/node": "^18.14.0",
111
+ "@types/pretty-hrtime": "^1.0.1",
112
+ "@types/sinon": "^10.0.13",
113
+ "@types/supertest": "^2.0.12",
114
+ "@types/test-console": "^2.0.0",
115
+ "c8": "^7.13.0",
116
+ "copyfiles": "^2.4.1",
117
+ "cross-env": "^7.0.3",
118
+ "del-cli": "^5.0.0",
119
+ "eslint": "^8.34.0",
120
+ "eslint-config-prettier": "^8.6.0",
121
+ "eslint-plugin-adonis": "^3.0.3",
122
+ "eslint-plugin-prettier": "^4.2.1",
123
+ "fs-extra": "^11.1.0",
124
+ "get-port": "^6.1.2",
125
+ "github-label-sync": "^2.2.0",
126
+ "husky": "^8.0.3",
127
+ "np": "^7.6.3",
128
+ "prettier": "^2.8.4",
129
+ "reflect-metadata": "^0.1.13",
130
+ "sinon": "^15.0.1",
131
+ "supertest": "^6.3.3",
132
+ "test-console": "^2.0.0",
133
+ "ts-node": "^10.9.1",
134
+ "typescript": "^4.9.5"
135
+ },
136
+ "dependencies": {
137
+ "@adonisjs/ace": "^12.2.0-0",
138
+ "@adonisjs/application": "^7.1.0-0",
139
+ "@adonisjs/bodyparser": "^9.3.0-0",
140
+ "@adonisjs/config": "^4.2.0-0",
141
+ "@adonisjs/encryption": "^5.1.2-0",
142
+ "@adonisjs/env": "^4.2.0-0",
143
+ "@adonisjs/events": "^8.4.7-0",
144
+ "@adonisjs/fold": "^9.9.2-0",
145
+ "@adonisjs/hash": "^8.3.1-0",
146
+ "@adonisjs/http-server": "^6.8.0-0",
147
+ "@adonisjs/logger": "^5.4.2-0",
148
+ "@adonisjs/validator": "^13.0.0-0",
149
+ "@poppinss/macroable": "^1.0.0-2",
150
+ "@poppinss/utils": "^6.5.0-0",
151
+ "@sindresorhus/is": "^5.3.0",
152
+ "@types/he": "^1.2.0",
153
+ "cuid": "^3.0.0",
154
+ "he": "^1.2.0",
155
+ "pretty-hrtime": "^1.0.3",
156
+ "youch": "^3.2.3",
157
+ "youch-terminal": "^2.2.0"
158
+ },
159
+ "peerDependencies": {
160
+ "argon2": "^0.30.3",
161
+ "bcrypt": "^5.0.1"
162
+ },
163
+ "peerDependenciesMeta": {
164
+ "argon2": {
165
+ "optional": true
166
+ },
167
+ "bcrypt": {
168
+ "optional": true
169
+ }
170
+ },
171
+ "repository": {
172
+ "type": "git",
173
+ "url": "git+https://github.com/adonisjs/core.git"
174
+ },
175
+ "bugs": {
176
+ "url": "https://github.com/adonisjs/core/issues"
177
+ },
178
+ "homepage": "https://github.com/adonisjs/core#readme",
179
+ "eslintConfig": {
180
+ "extends": [
181
+ "plugin:adonis/typescriptPackage",
182
+ "prettier"
183
+ ],
184
+ "plugins": [
185
+ "prettier"
186
+ ],
187
+ "rules": {
188
+ "prettier/prettier": [
189
+ "error",
190
+ {
191
+ "endOfLine": "auto"
192
+ }
193
+ ]
194
+ }
195
+ },
196
+ "eslintIgnore": [
197
+ "build",
198
+ "backup"
199
+ ],
200
+ "prettier": {
201
+ "trailingComma": "es5",
202
+ "semi": false,
203
+ "singleQuote": true,
204
+ "useTabs": false,
205
+ "quoteProps": "consistent",
206
+ "bracketSpacing": true,
207
+ "arrowParens": "always",
208
+ "printWidth": 100
209
+ },
210
+ "commitlint": {
211
+ "extends": [
212
+ "@commitlint/config-conventional"
213
+ ]
214
+ },
215
+ "publishConfig": {
216
+ "access": "public",
217
+ "tag": "next"
218
+ },
219
+ "np": {
220
+ "message": "chore(release): %s",
221
+ "tag": "next",
222
+ "branch": "main",
223
+ "anyBranch": false
224
+ },
225
+ "c8": {
226
+ "reporter": [
227
+ "text",
228
+ "html"
229
+ ],
230
+ "exclude": [
231
+ "tests/**",
232
+ "build/**",
233
+ "factories/**",
234
+ ".yalc/**"
235
+ ]
236
+ }
247
237
  }
@@ -1,5 +0,0 @@
1
- declare module '@ioc:Adonis/Core/Ace' {
2
- import { Kernel } from '@adonisjs/ace';
3
- const Ace: Kernel;
4
- export default Ace;
5
- }
@@ -1,8 +0,0 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) Harminder Virk <virk@adonisjs.com>
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
@@ -1,92 +0,0 @@
1
- declare module '@ioc:Adonis/Core/AssetsManager' {
2
- import { ApplicationContract } from '@ioc:Adonis/Core/Application';
3
- /**
4
- * Shape of the extend callback
5
- */
6
- export type ExtendCallback = (manager: AssetsManagerContract, config: AssetsManagerConfig) => AssetsDriverContract;
7
- /**
8
- * Configuration for the asset manager
9
- */
10
- export type AssetsManagerConfig = {
11
- driver?: string;
12
- publicPath?: string;
13
- script?: {
14
- attributes: Record<string, any>;
15
- };
16
- style?: {
17
- attributes: Record<string, any>;
18
- };
19
- };
20
- /**
21
- * Shape of the driver for the assets manager. Driver driver must implement
22
- * it
23
- */
24
- export interface AssetsDriverContract {
25
- name: string;
26
- /**
27
- * A boolean to know if entry points are supported or not
28
- */
29
- hasEntrypoints: boolean;
30
- /**
31
- * Attributes to apply to the script tag
32
- */
33
- scriptAttributes: Record<string, any>;
34
- /**
35
- * The current version of assets.
36
- */
37
- version?: string;
38
- /**
39
- * Path to the public output directory. The property must be
40
- * mutable
41
- */
42
- publicPath: string;
43
- /**
44
- * Returns the manifest contents as an object
45
- */
46
- manifest(): any;
47
- /**
48
- * Returns path to a given asset entry
49
- */
50
- assetPath(filename: string): string;
51
- /**
52
- * Returns the entrypoints contents as an object
53
- */
54
- entryPoints?(): any;
55
- /**
56
- * Returns list for all the javascript files for a given entry point.
57
- * Raises exceptions when [[hasEntrypoints]] is false
58
- */
59
- entryPointJsFiles?(name: string): string[];
60
- /**
61
- * Returns list for all the css files for a given entry point.
62
- * Raises exceptions when [[hasEntrypoints]] is false
63
- */
64
- entryPointCssFiles?(name: string): string[];
65
- }
66
- /**
67
- * Assets manager exposes the API to make link and HTML fragments
68
- * for static assets.
69
- *
70
- * The compilation is not done by the assets manager. It must be done
71
- * separately
72
- */
73
- export interface AssetsManagerContract extends AssetsDriverContract {
74
- application: ApplicationContract;
75
- /**
76
- * Returns an HTML fragment for script tags. Raises exceptions
77
- * when [[hasEntrypoints]] is false
78
- */
79
- entryPointScriptTags(name: string): string;
80
- /**
81
- * Returns an HTML fragment for stylesheet link tags. Raises exceptions
82
- * when [[hasEntrypoints]] is false
83
- */
84
- entryPointStyleTags(name: string): string;
85
- /**
86
- * Register a custom asset manager driver
87
- */
88
- extend(name: string, callback: ExtendCallback): this;
89
- }
90
- const AssetsManager: AssetsManagerContract;
91
- export default AssetsManager;
92
- }
@@ -1,8 +0,0 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) Harminder Virk <virk@adonisjs.com>
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */
@@ -1,14 +0,0 @@
1
- declare module '@ioc:Adonis/Core/Application' {
2
- import Ace from '@ioc:Adonis/Core/Ace';
3
- import { TestUtilsContract } from '@ioc:Adonis/Core/TestUtils';
4
- import { HealthCheckContract } from '@ioc:Adonis/Core/HealthCheck';
5
- import { AssetsManagerContract } from '@ioc:Adonis/Core/AssetsManager';
6
- import HttpExceptionHandler from '@ioc:Adonis/Core/HttpExceptionHandler';
7
- interface ContainerBindings {
8
- 'Adonis/Core/HealthCheck': HealthCheckContract;
9
- 'Adonis/Core/AssetsManager': AssetsManagerContract;
10
- 'Adonis/Core/HttpExceptionHandler': typeof HttpExceptionHandler;
11
- 'Adonis/Core/Ace': typeof Ace;
12
- 'Adonis/Core/TestUtils': TestUtilsContract;
13
- }
14
- }
@@ -1,8 +0,0 @@
1
- /*
2
- * @adonisjs/core
3
- *
4
- * (c) Harminder Virk <virk@adonisjs.com>
5
- *
6
- * For the full copyright and license information, please view the LICENSE
7
- * file that was distributed with this source code.
8
- */