jimpex 10.0.2 → 11.0.1

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 (346) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/README.md +7 -9
  3. package/dist/app/index.d.ts +1 -1
  4. package/dist/app/index.js +1 -22
  5. package/dist/app/index.js.map +1 -1
  6. package/dist/app/jimpex.d.ts +1 -1
  7. package/dist/app/jimpex.js +100 -131
  8. package/dist/app/jimpex.js.map +1 -1
  9. package/dist/controllers/common/config.d.ts +2 -2
  10. package/dist/controllers/common/config.js +12 -39
  11. package/dist/controllers/common/config.js.map +1 -1
  12. package/dist/controllers/common/health.d.ts +4 -4
  13. package/dist/controllers/common/health.js +20 -47
  14. package/dist/controllers/common/health.js.map +1 -1
  15. package/dist/controllers/common/index.d.ts +1 -1
  16. package/dist/controllers/common/index.js +3 -26
  17. package/dist/controllers/common/index.js.map +1 -1
  18. package/dist/controllers/common/statics.d.ts +3 -3
  19. package/dist/controllers/common/statics.js +32 -65
  20. package/dist/controllers/common/statics.js.map +1 -1
  21. package/dist/controllers/index.d.ts +1 -1
  22. package/dist/controllers/index.js +2 -24
  23. package/dist/controllers/index.js.map +1 -1
  24. package/dist/controllers/utils/gateway.d.ts +5 -5
  25. package/dist/controllers/utils/gateway.js +70 -91
  26. package/dist/controllers/utils/gateway.js.map +1 -1
  27. package/dist/controllers/utils/index.d.ts +1 -1
  28. package/dist/controllers/utils/index.js +1 -22
  29. package/dist/controllers/utils/index.js.map +1 -1
  30. package/dist/{index-C6I3NCC-.d.ts → index-BlSpNHox.d.ts} +13 -13
  31. package/dist/index.d.ts +3 -3
  32. package/dist/index.js +6 -32
  33. package/dist/index.js.map +1 -1
  34. package/dist/middlewares/common/errorHandler.d.ts +5 -5
  35. package/dist/middlewares/common/errorHandler.js +31 -56
  36. package/dist/middlewares/common/errorHandler.js.map +1 -1
  37. package/dist/middlewares/common/forceHTTPS.d.ts +1 -1
  38. package/dist/middlewares/common/forceHTTPS.js +8 -35
  39. package/dist/middlewares/common/forceHTTPS.js.map +1 -1
  40. package/dist/middlewares/common/hsts.d.ts +1 -1
  41. package/dist/middlewares/common/hsts.js +12 -39
  42. package/dist/middlewares/common/hsts.js.map +1 -1
  43. package/dist/middlewares/common/index.d.ts +3 -3
  44. package/dist/middlewares/common/index.js +3 -26
  45. package/dist/middlewares/common/index.js.map +1 -1
  46. package/dist/middlewares/html/fastHTML.d.ts +4 -4
  47. package/dist/middlewares/html/fastHTML.js +43 -66
  48. package/dist/middlewares/html/fastHTML.js.map +1 -1
  49. package/dist/middlewares/html/index.d.ts +2 -2
  50. package/dist/middlewares/html/index.js +2 -24
  51. package/dist/middlewares/html/index.js.map +1 -1
  52. package/dist/middlewares/html/showHTML.d.ts +3 -3
  53. package/dist/middlewares/html/showHTML.js +25 -52
  54. package/dist/middlewares/html/showHTML.js.map +1 -1
  55. package/dist/middlewares/index.d.ts +4 -4
  56. package/dist/middlewares/index.js +3 -26
  57. package/dist/middlewares/index.js.map +1 -1
  58. package/dist/middlewares/utils/index.d.ts +3 -3
  59. package/dist/middlewares/utils/index.js +1 -22
  60. package/dist/middlewares/utils/index.js.map +1 -1
  61. package/dist/middlewares/utils/versionValidator.d.ts +5 -5
  62. package/dist/middlewares/utils/versionValidator.js +24 -51
  63. package/dist/middlewares/utils/versionValidator.js.map +1 -1
  64. package/dist/services/common/appError.d.ts +2 -2
  65. package/dist/services/common/appError.js +18 -46
  66. package/dist/services/common/appError.js.map +1 -1
  67. package/dist/services/common/httpError.d.ts +2 -2
  68. package/dist/services/common/httpError.js +7 -33
  69. package/dist/services/common/httpError.js.map +1 -1
  70. package/dist/services/common/index.d.ts +1 -1
  71. package/dist/services/common/index.js +14 -42
  72. package/dist/services/common/index.js.map +1 -1
  73. package/dist/services/common/sendFile.d.ts +1 -1
  74. package/dist/services/common/sendFile.js +4 -29
  75. package/dist/services/common/sendFile.js.map +1 -1
  76. package/dist/services/frontend/frontendFs.d.ts +2 -2
  77. package/dist/services/frontend/frontendFs.js +12 -49
  78. package/dist/services/frontend/frontendFs.js.map +1 -1
  79. package/dist/services/frontend/index.d.ts +2 -2
  80. package/dist/services/frontend/index.js +8 -34
  81. package/dist/services/frontend/index.js.map +1 -1
  82. package/dist/services/html/htmlGenerator.d.ts +5 -5
  83. package/dist/services/html/htmlGenerator.js +46 -75
  84. package/dist/services/html/htmlGenerator.js.map +1 -1
  85. package/dist/services/html/index.d.ts +2 -2
  86. package/dist/services/html/index.js +8 -34
  87. package/dist/services/html/index.js.map +1 -1
  88. package/dist/services/http/apiClient.d.ts +1 -1
  89. package/dist/services/http/apiClient.js +23 -48
  90. package/dist/services/http/apiClient.js.map +1 -1
  91. package/dist/services/http/http.d.ts +5 -5
  92. package/dist/services/http/http.js +23 -60
  93. package/dist/services/http/http.js.map +1 -1
  94. package/dist/services/http/index.d.ts +2 -2
  95. package/dist/services/http/index.js +14 -42
  96. package/dist/services/http/index.js.map +1 -1
  97. package/dist/services/http/responsesBuilder.d.ts +4 -4
  98. package/dist/services/http/responsesBuilder.js +13 -40
  99. package/dist/services/http/responsesBuilder.js.map +1 -1
  100. package/dist/services/index.d.ts +3 -3
  101. package/dist/services/index.js +5 -30
  102. package/dist/services/index.js.map +1 -1
  103. package/dist/services/utils/ensureBearerToken.d.ts +2 -2
  104. package/dist/services/utils/ensureBearerToken.js +15 -42
  105. package/dist/services/utils/ensureBearerToken.js.map +1 -1
  106. package/dist/services/utils/index.d.ts +1 -1
  107. package/dist/services/utils/index.js +8 -34
  108. package/dist/services/utils/index.js.map +1 -1
  109. package/dist/types/events.d.ts +1 -1
  110. package/dist/types/events.js +0 -16
  111. package/dist/types/events.js.map +1 -1
  112. package/dist/types/express.js +0 -16
  113. package/dist/types/express.js.map +1 -1
  114. package/dist/types/http.js +0 -16
  115. package/dist/types/http.js.map +1 -1
  116. package/dist/types/index.d.ts +1 -1
  117. package/dist/types/index.js +6 -32
  118. package/dist/types/index.js.map +1 -1
  119. package/dist/types/options.d.ts +1 -1
  120. package/dist/types/options.js +0 -16
  121. package/dist/types/options.js.map +1 -1
  122. package/dist/types/utils.js +0 -16
  123. package/dist/types/utils.js.map +1 -1
  124. package/dist/types/wootils.js +0 -16
  125. package/dist/types/wootils.js.map +1 -1
  126. package/dist/utils/fns/index.js +4 -28
  127. package/dist/utils/fns/index.js.map +1 -1
  128. package/dist/utils/fns/others.js +2 -26
  129. package/dist/utils/fns/others.js.map +1 -1
  130. package/dist/utils/fns/routes.js +4 -31
  131. package/dist/utils/fns/routes.js.map +1 -1
  132. package/dist/utils/fns/statuses.js +3 -37
  133. package/dist/utils/fns/statuses.js.map +1 -1
  134. package/dist/utils/fns/text.js +2 -26
  135. package/dist/utils/fns/text.js.map +1 -1
  136. package/dist/utils/index.d.ts +1 -1
  137. package/dist/utils/index.js +2 -24
  138. package/dist/utils/index.js.map +1 -1
  139. package/dist/utils/wrappers.d.ts +1 -1
  140. package/dist/utils/wrappers.js +20 -48
  141. package/dist/utils/wrappers.js.map +1 -1
  142. package/eslint.config.js +19 -0
  143. package/examples/basic/app.ts +4 -4
  144. package/examples/basic/controller.ts +2 -2
  145. package/examples/basic/index.ts +4 -4
  146. package/examples/basic/middleware.ts +2 -2
  147. package/examples/basic/service.ts +1 -1
  148. package/package.json +61 -49
  149. package/pnpm-workspace.yaml +4 -0
  150. package/src/app/index.ts +1 -1
  151. package/src/app/jimpex.ts +23 -20
  152. package/src/controllers/common/config.ts +4 -4
  153. package/src/controllers/common/health.ts +9 -5
  154. package/src/controllers/common/index.ts +3 -3
  155. package/src/controllers/common/statics.ts +12 -7
  156. package/src/controllers/index.ts +2 -2
  157. package/src/controllers/utils/gateway.ts +8 -8
  158. package/src/controllers/utils/index.ts +1 -1
  159. package/src/index.ts +6 -6
  160. package/src/middlewares/common/errorHandler.ts +9 -5
  161. package/src/middlewares/common/forceHTTPS.ts +2 -2
  162. package/src/middlewares/common/hsts.ts +2 -2
  163. package/src/middlewares/common/index.ts +3 -3
  164. package/src/middlewares/html/fastHTML.ts +14 -5
  165. package/src/middlewares/html/index.ts +2 -2
  166. package/src/middlewares/html/showHTML.ts +8 -4
  167. package/src/middlewares/index.ts +3 -3
  168. package/src/middlewares/utils/index.ts +1 -1
  169. package/src/middlewares/utils/versionValidator.ts +6 -6
  170. package/src/services/common/appError.ts +1 -1
  171. package/src/services/common/httpError.ts +2 -2
  172. package/src/services/common/index.ts +7 -7
  173. package/src/services/common/sendFile.ts +2 -2
  174. package/src/services/frontend/frontendFs.ts +3 -3
  175. package/src/services/frontend/index.ts +3 -3
  176. package/src/services/html/htmlGenerator.ts +11 -13
  177. package/src/services/html/index.ts +3 -3
  178. package/src/services/http/apiClient.ts +3 -3
  179. package/src/services/http/http.ts +5 -5
  180. package/src/services/http/index.ts +7 -7
  181. package/src/services/http/responsesBuilder.ts +5 -5
  182. package/src/services/index.ts +5 -5
  183. package/src/services/utils/ensureBearerToken.ts +4 -4
  184. package/src/services/utils/index.ts +3 -3
  185. package/src/types/events.ts +8 -8
  186. package/src/types/http.ts +1 -1
  187. package/src/types/index.ts +6 -6
  188. package/src/types/options.ts +2 -2
  189. package/src/types/utils.ts +4 -4
  190. package/src/utils/fns/index.ts +4 -4
  191. package/src/utils/fns/routes.ts +1 -1
  192. package/src/utils/index.ts +2 -2
  193. package/src/utils/wrappers.ts +6 -6
  194. package/tsconfig.json +9 -4
  195. package/tsup.config.ts +1 -2
  196. package/vitest.config.ts +24 -0
  197. package/dist/app/index.d.mts +0 -14
  198. package/dist/app/jimpex.d.mts +0 -14
  199. package/dist/controllers/common/config.d.mts +0 -79
  200. package/dist/controllers/common/health.d.mts +0 -83
  201. package/dist/controllers/common/index.d.mts +0 -22
  202. package/dist/controllers/common/statics.d.mts +0 -223
  203. package/dist/controllers/index.d.mts +0 -25
  204. package/dist/controllers/utils/gateway.d.mts +0 -725
  205. package/dist/controllers/utils/index.d.mts +0 -17
  206. package/dist/esm/app/index.js +0 -2
  207. package/dist/esm/app/index.js.map +0 -1
  208. package/dist/esm/app/jimpex.js +0 -640
  209. package/dist/esm/app/jimpex.js.map +0 -1
  210. package/dist/esm/chunk-V6TY7KAL.js +0 -8
  211. package/dist/esm/chunk-V6TY7KAL.js.map +0 -1
  212. package/dist/esm/controllers/common/config.js +0 -80
  213. package/dist/esm/controllers/common/config.js.map +0 -1
  214. package/dist/esm/controllers/common/health.js +0 -88
  215. package/dist/esm/controllers/common/health.js.map +0 -1
  216. package/dist/esm/controllers/common/index.js +0 -4
  217. package/dist/esm/controllers/common/index.js.map +0 -1
  218. package/dist/esm/controllers/common/statics.js +0 -226
  219. package/dist/esm/controllers/common/statics.js.map +0 -1
  220. package/dist/esm/controllers/index.js +0 -3
  221. package/dist/esm/controllers/index.js.map +0 -1
  222. package/dist/esm/controllers/utils/gateway.js +0 -559
  223. package/dist/esm/controllers/utils/gateway.js.map +0 -1
  224. package/dist/esm/controllers/utils/index.js +0 -2
  225. package/dist/esm/controllers/utils/index.js.map +0 -1
  226. package/dist/esm/index.js +0 -7
  227. package/dist/esm/index.js.map +0 -1
  228. package/dist/esm/middlewares/common/errorHandler.js +0 -116
  229. package/dist/esm/middlewares/common/errorHandler.js.map +0 -1
  230. package/dist/esm/middlewares/common/forceHTTPS.js +0 -52
  231. package/dist/esm/middlewares/common/forceHTTPS.js.map +0 -1
  232. package/dist/esm/middlewares/common/hsts.js +0 -74
  233. package/dist/esm/middlewares/common/hsts.js.map +0 -1
  234. package/dist/esm/middlewares/common/index.js +0 -4
  235. package/dist/esm/middlewares/common/index.js.map +0 -1
  236. package/dist/esm/middlewares/html/fastHTML.js +0 -157
  237. package/dist/esm/middlewares/html/fastHTML.js.map +0 -1
  238. package/dist/esm/middlewares/html/index.js +0 -3
  239. package/dist/esm/middlewares/html/index.js.map +0 -1
  240. package/dist/esm/middlewares/html/showHTML.js +0 -100
  241. package/dist/esm/middlewares/html/showHTML.js.map +0 -1
  242. package/dist/esm/middlewares/index.js +0 -4
  243. package/dist/esm/middlewares/index.js.map +0 -1
  244. package/dist/esm/middlewares/utils/index.js +0 -2
  245. package/dist/esm/middlewares/utils/index.js.map +0 -1
  246. package/dist/esm/middlewares/utils/versionValidator.js +0 -135
  247. package/dist/esm/middlewares/utils/versionValidator.js.map +0 -1
  248. package/dist/esm/services/common/appError.js +0 -98
  249. package/dist/esm/services/common/appError.js.map +0 -1
  250. package/dist/esm/services/common/httpError.js +0 -28
  251. package/dist/esm/services/common/httpError.js.map +0 -1
  252. package/dist/esm/services/common/index.js +0 -17
  253. package/dist/esm/services/common/index.js.map +0 -1
  254. package/dist/esm/services/common/sendFile.js +0 -27
  255. package/dist/esm/services/common/sendFile.js.map +0 -1
  256. package/dist/esm/services/frontend/frontendFs.js +0 -66
  257. package/dist/esm/services/frontend/frontendFs.js.map +0 -1
  258. package/dist/esm/services/frontend/index.js +0 -11
  259. package/dist/esm/services/frontend/index.js.map +0 -1
  260. package/dist/esm/services/html/htmlGenerator.js +0 -192
  261. package/dist/esm/services/html/htmlGenerator.js.map +0 -1
  262. package/dist/esm/services/html/index.js +0 -11
  263. package/dist/esm/services/html/index.js.map +0 -1
  264. package/dist/esm/services/http/apiClient.js +0 -94
  265. package/dist/esm/services/http/apiClient.js.map +0 -1
  266. package/dist/esm/services/http/http.js +0 -180
  267. package/dist/esm/services/http/http.js.map +0 -1
  268. package/dist/esm/services/http/index.js +0 -17
  269. package/dist/esm/services/http/index.js.map +0 -1
  270. package/dist/esm/services/http/responsesBuilder.js +0 -152
  271. package/dist/esm/services/http/responsesBuilder.js.map +0 -1
  272. package/dist/esm/services/index.js +0 -6
  273. package/dist/esm/services/index.js.map +0 -1
  274. package/dist/esm/services/utils/ensureBearerToken.js +0 -94
  275. package/dist/esm/services/utils/ensureBearerToken.js.map +0 -1
  276. package/dist/esm/services/utils/index.js +0 -11
  277. package/dist/esm/services/utils/index.js.map +0 -1
  278. package/dist/esm/types/events.js +0 -1
  279. package/dist/esm/types/events.js.map +0 -1
  280. package/dist/esm/types/express.js +0 -1
  281. package/dist/esm/types/express.js.map +0 -1
  282. package/dist/esm/types/http.js +0 -1
  283. package/dist/esm/types/http.js.map +0 -1
  284. package/dist/esm/types/index.js +0 -7
  285. package/dist/esm/types/index.js.map +0 -1
  286. package/dist/esm/types/options.js +0 -1
  287. package/dist/esm/types/options.js.map +0 -1
  288. package/dist/esm/types/utils.js +0 -1
  289. package/dist/esm/types/utils.js.map +0 -1
  290. package/dist/esm/types/wootils.js +0 -1
  291. package/dist/esm/types/wootils.js.map +0 -1
  292. package/dist/esm/utils/fns/index.js +0 -5
  293. package/dist/esm/utils/fns/index.js.map +0 -1
  294. package/dist/esm/utils/fns/others.js +0 -6
  295. package/dist/esm/utils/fns/others.js.map +0 -1
  296. package/dist/esm/utils/fns/routes.js +0 -25
  297. package/dist/esm/utils/fns/routes.js.map +0 -1
  298. package/dist/esm/utils/fns/statuses.js +0 -6
  299. package/dist/esm/utils/fns/statuses.js.map +0 -1
  300. package/dist/esm/utils/fns/text.js +0 -6
  301. package/dist/esm/utils/fns/text.js.map +0 -1
  302. package/dist/esm/utils/index.js +0 -3
  303. package/dist/esm/utils/index.js.map +0 -1
  304. package/dist/esm/utils/wrappers.js +0 -41
  305. package/dist/esm/utils/wrappers.js.map +0 -1
  306. package/dist/index-Bwf7JHu9.d.mts +0 -1287
  307. package/dist/index.d.mts +0 -47
  308. package/dist/middlewares/common/errorHandler.d.mts +0 -132
  309. package/dist/middlewares/common/forceHTTPS.d.mts +0 -69
  310. package/dist/middlewares/common/hsts.d.mts +0 -110
  311. package/dist/middlewares/common/index.d.mts +0 -22
  312. package/dist/middlewares/html/fastHTML.d.mts +0 -180
  313. package/dist/middlewares/html/index.d.mts +0 -21
  314. package/dist/middlewares/html/showHTML.d.mts +0 -127
  315. package/dist/middlewares/index.d.mts +0 -30
  316. package/dist/middlewares/utils/index.d.mts +0 -20
  317. package/dist/middlewares/utils/versionValidator.d.mts +0 -215
  318. package/dist/services/common/appError.d.mts +0 -139
  319. package/dist/services/common/httpError.d.mts +0 -80
  320. package/dist/services/common/index.d.mts +0 -47
  321. package/dist/services/common/sendFile.d.mts +0 -102
  322. package/dist/services/frontend/frontendFs.d.mts +0 -96
  323. package/dist/services/frontend/index.d.mts +0 -40
  324. package/dist/services/html/htmlGenerator.d.mts +0 -237
  325. package/dist/services/html/index.d.mts +0 -43
  326. package/dist/services/http/apiClient.d.mts +0 -170
  327. package/dist/services/http/http.d.mts +0 -182
  328. package/dist/services/http/index.d.mts +0 -51
  329. package/dist/services/http/responsesBuilder.d.mts +0 -179
  330. package/dist/services/index.d.mts +0 -33
  331. package/dist/services/utils/ensureBearerToken.d.mts +0 -158
  332. package/dist/services/utils/index.d.mts +0 -44
  333. package/dist/types/events.d.mts +0 -14
  334. package/dist/types/express.d.mts +0 -10
  335. package/dist/types/http.d.mts +0 -82
  336. package/dist/types/index.d.mts +0 -14
  337. package/dist/types/options.d.mts +0 -14
  338. package/dist/types/utils.d.mts +0 -48
  339. package/dist/types/wootils.d.mts +0 -4
  340. package/dist/utils/fns/index.d.mts +0 -5
  341. package/dist/utils/fns/others.d.mts +0 -17
  342. package/dist/utils/fns/routes.d.mts +0 -39
  343. package/dist/utils/fns/statuses.d.mts +0 -45
  344. package/dist/utils/fns/text.d.mts +0 -9
  345. package/dist/utils/index.d.mts +0 -19
  346. package/dist/utils/wrappers.d.mts +0 -14
package/CHANGELOG.md CHANGED
@@ -1,3 +1,39 @@
1
+ ## [11.0.1](https://github.com/homer0/jimpex/compare/11.0.0...11.0.1) (2026-01-02)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update dependencies ([32e56ea](https://github.com/homer0/jimpex/commit/32e56ea6b0dad8ad2f55ee1fcf9755605b9744e0))
7
+
8
+ # [11.0.0](https://github.com/homer0/jimpex/compare/10.0.2...11.0.0) (2025-12-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * add missing extensions for esm ([c08930d](https://github.com/homer0/jimpex/commit/c08930d559f6b656c7fe9aa84b4ab894141439aa))
14
+ * define module exports for the package and set the type to module ([935a9d2](https://github.com/homer0/jimpex/commit/935a9d273f9495f833a0e976e12ffe8d1f4cba3a))
15
+ * drop Node v18 ([46de5f2](https://github.com/homer0/jimpex/commit/46de5f20e185cea701a57de46ed92fb5f8c1c854))
16
+ * import a single obj from spdy ([ee96af3](https://github.com/homer0/jimpex/commit/ee96af3c0a64b4bc1d115a77ef26e635a852a3df))
17
+ * import spdy only when using it ([385b70f](https://github.com/homer0/jimpex/commit/385b70fd14127cbc4510ab2364476d7dad2ba99d))
18
+ * remove unnecessary check ([7530b2b](https://github.com/homer0/jimpex/commit/7530b2b0a16abdddb608c0541a56a765bfc36e35))
19
+ * typo on default value ([9fd84c5](https://github.com/homer0/jimpex/commit/9fd84c5e1ba6ca9908e0e8da45a71b37e8d76206))
20
+ * typo on type name ([c0c3118](https://github.com/homer0/jimpex/commit/c0c311825e9f8895b08b5d8ae09a93111264724c))
21
+ * update dependencies ([8245c8f](https://github.com/homer0/jimpex/commit/8245c8fc11863d27b98652c09b0df9a2345498e3))
22
+ * update regex to cover new stack trace ([c6672ef](https://github.com/homer0/jimpex/commit/c6672ef08c9e4880759fe9a615b5e28419cc0239))
23
+ * use node prefix for importing internals ([ed1df9e](https://github.com/homer0/jimpex/commit/ed1df9e295368a0de417298b38b8fcbd95101492))
24
+ * use the right import path ([7ed1721](https://github.com/homer0/jimpex/commit/7ed1721ddccb170a5ff45e61fee874c040c2d5ad))
25
+
26
+
27
+ ### BREAKING CHANGES
28
+
29
+ * The VersionValidator default option for `popup.message`
30
+ was changed from `vesion:conflict` to `version:confict`
31
+ * The type HTTPContructorOptions was renamed to
32
+ HTTPConstructorOptions
33
+ * This package is now esm only
34
+ * Node v18 is not longer supported. Node v20.19 is the minimum
35
+ required version now.
36
+
1
37
  ## [10.0.2](https://github.com/homer0/jimpex/compare/10.0.1...10.0.2) (2024-11-09)
2
38
 
3
39
 
package/README.md CHANGED
@@ -96,7 +96,7 @@ app.set('message', 'Hello Pili!');
96
96
  app.boot();
97
97
  ```
98
98
 
99
- Now, this may look like an unnecessary feature, but if you consider the possiblity of different entry points based on environment, maybe to enable debugging tools on dev, this becomes really useful.
99
+ Now, this may look like an unnecessary feature, but if you consider the possibility of different entry points based on environment, maybe to enable debugging tools on dev, this becomes really useful.
100
100
 
101
101
  ### ⚙️ Options and configuration
102
102
 
@@ -356,7 +356,7 @@ Jimpex already comes with a few built-in service providers ready to be used, and
356
356
 
357
357
  ##### Configurable services
358
358
 
359
- Since the version of Jimple that Jimpex uses under the hood is [`@homer0/jimple`](https://www.npmjs.com/package/@homer0/jimple), my custom "fork", you can also create "configureable providers":
359
+ Since the version of Jimple that Jimpex uses under the hood is [`@homer0/jimple`](https://www.npmjs.com/package/@homer0/jimple), my custom "fork", you can also create "configurable providers":
360
360
 
361
361
  ```ts
362
362
  // src/my-service.js
@@ -502,7 +502,7 @@ class MyApp extends Jimpex {
502
502
 
503
503
  #### Controllers with services
504
504
 
505
- If for some reason, your controller needs to register a service that the rest of the container needs to have access to, and you plan to do it on the `controller`/`controllerCreator` callback, you could end up messing with the _lazyness_ of the container: If a middleware or another controller tries to access the service and the controller that registers it is mounted after it, it will get an error as the service _doesn't exist yet_.
505
+ If for some reason, your controller needs to register a service that the rest of the container needs to have access to, and you plan to do it on the `controller`/`controllerCreator` callback, you could end up messing with the _laziness_ of the container: If a middleware or another controller tries to access the service and the controller that registers it is mounted after it, it will get an error as the service _doesn't exist yet_.
506
506
 
507
507
  A way to solve this issue would be with a `provider`/`providerCreator`, mounting the controller:
508
508
 
@@ -623,7 +623,7 @@ Just like the `controllerCreator` wrapper, you can also use the `middlewareCreat
623
623
 
624
624
  ```ts
625
625
  // my-middleware.js
626
- import { middlwareCreator } from 'jimpex';
626
+ import { middlewareCreator } from 'jimpex';
627
627
 
628
628
  // Define your middleware function (or class if it gets more complex)
629
629
  export const greetingsMiddleware = (message) => (req, res, next) => {
@@ -743,15 +743,13 @@ The configuration for `semantic-release` is on `./releaserc` and the workflow fo
743
743
 
744
744
  ### Testing
745
745
 
746
- I use [Jest](https://jestjs.io) to test the project.
746
+ I use [Vitest](https://vitest.dev) to test the project.
747
747
 
748
748
  The configuration file is on `./.jestrc.js`, the tests are on `./tests` and the script that runs it is on `./utils/scripts/test`.
749
749
 
750
750
  ### Code linting and formatting
751
751
 
752
- For linting, I use [ESlint](https://eslint.org) with [my own custom configuration](https://npmjs.com/package/@homer0/eslint-plugin).
753
-
754
- There are two configuration files, `./.eslintrc` for the source and the tooling, and `./tests/.eslintrc`, and there's also a `./.eslintignore` to exclude some files.
752
+ For linting, I use [ESlint](https://eslint.org) with [my own custom configuration](https://npmjs.com/package/@homer0/eslint-plugin). The configuration file is `./eslint.config.js`.
755
753
 
756
754
  For formatting, I use [Prettier](https://prettier.io) with [my JSDoc plugin](https://npmjs.com/package/@homer0/prettier-plugin-jsdoc) and [my own custom configuration](https://npmjs.com/package/@homer0/prettier-config). The configuration file is `./.prettierrc`.
757
755
 
@@ -767,4 +765,4 @@ The configuration file is `./.typedoc.json` and the script that runs it is on `.
767
765
 
768
766
  A friend, who's also web developer, brought the idea of start using a dependency injection container on Node, and how Jimple was a great tool for it; from the moment I tried Jimple, I could never think of starting another project without it: It not only allows you to implement dependency injection on a simple and clean way, but it also kind of forces you to have a really good organization of your code.
769
767
 
770
- A couple of months after that, the same friend told me that we should do something similar to [Silex](https://github.com/silexphp/Silex), which is based on Pimple, butwith Express. I ran with the idea and... this project is what I think a mix of Jimple and Express would look like. To be clear, **this is not a port of Silex**.
768
+ A couple of months after that, the same friend told me that we should do something similar to [Silex](https://github.com/silexphp/Silex), which is based on Pimple, but with Express. I ran with the idea and... this project is what I think a mix of Jimple and Express would look like. To be clear, **this is not a port of Silex**.
@@ -1,4 +1,4 @@
1
- export { J as Jimpex, j as jimpex } from '../index-C6I3NCC-.js';
1
+ export { J as Jimpex, j as jimpex } from '../index-BlSpNHox.js';
2
2
  import '../types/express.js';
3
3
  import 'express';
4
4
  import '../types/http.js';
package/dist/app/index.js CHANGED
@@ -1,23 +1,2 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var app_exports = {};
17
- module.exports = __toCommonJS(app_exports);
18
- __reExport(app_exports, require("./jimpex"), module.exports);
19
- // Annotate the CommonJS export names for ESM import in node:
20
- 0 && (module.exports = {
21
- ...require("./jimpex")
22
- });
1
+ export * from "./jimpex.js";
23
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/app/index.ts"],"sourcesContent":["export * from './jimpex';\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,wBAAc,qBAAd;","names":[]}
1
+ {"version":3,"sources":["../../src/app/index.ts"],"sourcesContent":["export * from './jimpex.js';\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import '@homer0/jimple';
2
2
  import '@homer0/events-hub';
3
- export { J as Jimpex, j as jimpex } from '../index-C6I3NCC-.js';
3
+ export { J as Jimpex, j as jimpex } from '../index-BlSpNHox.js';
4
4
  import 'express';
5
5
  import '../types/http.js';
6
6
  import '../types/utils.js';
@@ -1,106 +1,75 @@
1
- "use strict";
2
- var __create = Object.create;
3
- var __defProp = Object.defineProperty;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
- var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
9
- var __export = (target, all) => {
10
- for (var name in all)
11
- __defProp(target, name, { get: all[name], enumerable: true });
12
- };
13
- var __copyProps = (to, from, except, desc) => {
14
- if (from && typeof from === "object" || typeof from === "function") {
15
- for (let key of __getOwnPropNames(from))
16
- if (!__hasOwnProp.call(to, key) && key !== except)
17
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
18
- }
19
- return to;
20
- };
21
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
- // If the importer is in node compatibility mode or this is not an ESM
23
- // file that has been converted to a CommonJS file using a Babel-
24
- // compatible transform (i.e. "__esModule" has not been set), then set
25
- // "default" to the CommonJS "module.exports" for node compatibility.
26
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
- mod
28
- ));
29
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
30
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
31
- var jimpex_exports = {};
32
- __export(jimpex_exports, {
33
- Jimpex: () => Jimpex,
34
- jimpex: () => jimpex
35
- });
36
- module.exports = __toCommonJS(jimpex_exports);
37
- var path = __toESM(require("path"));
38
- var import_promises = __toESM(require("fs/promises"));
39
- var import_https = require("https");
40
- var import_jimple = require("@homer0/jimple");
41
- var import_deep_assign = require("@homer0/deep-assign");
42
- var import_simple_logger = require("@homer0/simple-logger");
43
- var import_env_utils = require("@homer0/env-utils");
44
- var import_package_info = require("@homer0/package-info");
45
- var import_path_utils = require("@homer0/path-utils");
46
- var import_root_file = require("@homer0/root-file");
47
- var import_ts_async_import = require("@homer0/ts-async-import");
48
- var import_events_hub = require("@homer0/events-hub");
49
- var import_simple_config = require("@homer0/simple-config");
50
- var import_compression = __toESM(require("compression"));
51
- var import_body_parser = __toESM(require("body-parser"));
52
- var import_multer = __toESM(require("multer"));
53
- var import_spdy = require("spdy");
54
- var import_express = __toESM(require("express"));
55
- var import_services = require("../services");
56
- var import_utils = require("../utils");
57
- class Jimpex extends import_jimple.Jimple {
1
+ import * as path from "node:path";
2
+ import fs from "node:fs/promises";
3
+ import { createServer as createHTTPSServer } from "https";
4
+ import { Jimple } from "@homer0/jimple";
5
+ import { deepAssignWithOverwrite } from "@homer0/deep-assign";
6
+ import { appLoggerProvider } from "@homer0/simple-logger";
7
+ import { envUtilsProvider } from "@homer0/env-utils";
8
+ import { packageInfoProvider } from "@homer0/package-info";
9
+ import { pathUtilsProvider } from "@homer0/path-utils";
10
+ import { rootFileProvider } from "@homer0/root-file";
11
+ import { tsAsyncImport } from "@homer0/ts-async-import";
12
+ import { EventsHub } from "@homer0/events-hub";
13
+ import { simpleConfigProvider } from "@homer0/simple-config";
14
+ import compression from "compression";
15
+ import bodyParser from "body-parser";
16
+ import multer from "multer";
17
+ import express from "express";
18
+ import {
19
+ commonServicesProvider,
20
+ httpServicesProvider,
21
+ utilsServicesProvider
22
+ } from "../services/index.js";
23
+ import {
24
+ statuses
25
+ } from "../utils/index.js";
26
+ class Jimpex extends Jimple {
27
+ /**
28
+ * The customization settings for the application.
29
+ */
30
+ _options;
31
+ /**
32
+ * The Express application Jimpex uses under the hood.
33
+ */
34
+ _express;
35
+ /**
36
+ * Since the configuration service has an async initialization, the class uses this flag
37
+ * internally to validate if the configuration has been initialized or not.
38
+ */
39
+ _configReady = false;
40
+ /**
41
+ * A reference to the actual HTTP the application will use. This can vary depending on
42
+ * whether HTTPS, or HTTP2 are enabled. If HTTPS is not enabled, it will be the same as
43
+ * the `express` property; if HTTPS is enabled, it will be an `https` server; and if
44
+ * HTTP2 is enabled, it will be an `spdy` server.
45
+ */
46
+ _server;
47
+ /**
48
+ * The instance of the server that is listening for requests.
49
+ */
50
+ _instance;
51
+ /**
52
+ * A list of functions that implement controllers and middlewares. When the application
53
+ * starts, the queue will be processed and those controllers and middlewares will be
54
+ * added to the server instance. The reason they are not added directly like with a
55
+ * regular Express implementation is that services on Jimple use lazy loading, and
56
+ * adding middlewares and controllers as they come could cause errors if they depend on
57
+ * services that are not yet registered.
58
+ */
59
+ _mountQueue = [];
60
+ /**
61
+ * A list with all the top routes controlled by the application. Every time a controller
62
+ * is mounted, its route will be added here.
63
+ */
64
+ _controlledRoutes = [];
58
65
  /**
59
66
  * @param options Preferences to customize the application.
60
67
  * @param config The default settings for the configuration service. It's a
61
- * shortcuit for `options.config.default`
68
+ * short-circuit for `options.config.default`
62
69
  */
63
70
  constructor(options = {}, config = {}) {
64
71
  super();
65
- /**
66
- * The customization settings for the application.
67
- */
68
- __publicField(this, "_options");
69
- /**
70
- * The Express application Jimpex uses under the hood.
71
- */
72
- __publicField(this, "_express");
73
- /**
74
- * Since the configuration service has an async initialization, the class uses this flag
75
- * internally to validate if the configuration has been initialized or not.
76
- */
77
- __publicField(this, "_configReady", false);
78
- /**
79
- * A reference to the actuall HTTP the application will use. This can vary depending on
80
- * whether HTTPS, or HTTP2 are enabled. If HTTPS is not enabled, it will be the same as
81
- * the `express` property; if HTTPS is enabled, it will be an `https` server; and if
82
- * HTTP2 is enabled, it will be an `spdy` server.
83
- */
84
- __publicField(this, "_server");
85
- /**
86
- * The instance of the server that is listening for requests.
87
- */
88
- __publicField(this, "_instance");
89
- /**
90
- * A list of functions that implement controllers and middlewares. When the application
91
- * starts, the queue will be processed and those controllers and middlewares will be
92
- * added to the server instance. The reason they are not added directly like with a
93
- * regular Express implementation is that services on Jimple use lazy loading, and
94
- * adding middlewares and controllers as they come could cause errors if they depend on
95
- * services that are not yet registered.
96
- */
97
- __publicField(this, "_mountQueue", []);
98
- /**
99
- * A list with all the top routes controlled by the application. Every time a controller
100
- * is mounted, its route will be added here.
101
- */
102
- __publicField(this, "_controlledRoutes", []);
103
- this._options = (0, import_deep_assign.deepAssignWithOverwrite)(
72
+ this._options = deepAssignWithOverwrite(
104
73
  {
105
74
  filesizeLimit: "15MB",
106
75
  boot: true,
@@ -140,7 +109,7 @@ class Jimpex extends import_jimple.Jimple {
140
109
  options,
141
110
  this._initOptions()
142
111
  );
143
- this._express = (0, import_express.default)();
112
+ this._express = express();
144
113
  this._setupCoreServices();
145
114
  this._setupExpress();
146
115
  this._configurePath();
@@ -321,7 +290,7 @@ class Jimpex extends import_jimple.Jimple {
321
290
  * The application customization options.
322
291
  */
323
292
  get options() {
324
- return (0, import_deep_assign.deepAssignWithOverwrite)({}, this._options);
293
+ return deepAssignWithOverwrite({}, this._options);
325
294
  }
326
295
  /**
327
296
  * Gets the events service.
@@ -348,7 +317,7 @@ class Jimpex extends import_jimple.Jimple {
348
317
  return this.eventsHub.on(eventName, listener);
349
318
  }
350
319
  /**
351
- * Adds a listener for an application event that will only be execuded once: the first
320
+ * Adds a listener for an application event that will only be executed once: the first
352
321
  * time the event is triggered.
353
322
  *
354
323
  * @param eventName The name of the event to listen for.
@@ -361,7 +330,7 @@ class Jimpex extends import_jimple.Jimple {
361
330
  return this.eventsHub.once(eventName, listener);
362
331
  }
363
332
  /**
364
- * Based on the application options, it returns wheter the application is healthy or
333
+ * Based on the application options, it returns whether the application is healthy or
365
334
  * not.
366
335
  */
367
336
  isHealthy() {
@@ -370,7 +339,7 @@ class Jimpex extends import_jimple.Jimple {
370
339
  /**
371
340
  * This method is like a "lifecycle method", it gets executed on the constructor right
372
341
  * before the "boot step". The idea is for the method to be a helper when the
373
- * application is defined by subclassing {@link Jimpex}: the application could register
342
+ * application is defined by sub-classing {@link Jimpex}: the application could register
374
343
  * all important services here and the routes on boot, then, if the implementation needs
375
344
  * to access or overwrite a something, it can send `boot: false`, access/register what
376
345
  * it needs, and then call `boot()`. That would be impossible for an application without
@@ -380,7 +349,7 @@ class Jimpex extends import_jimple.Jimple {
380
349
  }
381
350
  /**
382
351
  * It generates overwrites for the application options when it gets created. This method
383
- * is a helper for when the application is defined by subclassing {@link Jimpex}: It's
352
+ * is a helper for when the application is defined by sub-classing {@link Jimpex}: It's
384
353
  * highly probable that if the application needs to change the default options, it would
385
354
  * want to do it right from the class, instead of having to do it on every
386
355
  * implementation. A way to do it would be overwriting the constructor and calling
@@ -396,20 +365,20 @@ class Jimpex extends import_jimple.Jimple {
396
365
  */
397
366
  _setupCoreServices() {
398
367
  this.register(
399
- (0, import_simple_logger.appLoggerProvider)({
368
+ appLoggerProvider({
400
369
  serviceName: "logger"
401
370
  })
402
371
  );
403
- this.register(import_env_utils.envUtilsProvider);
404
- this.register(import_package_info.packageInfoProvider);
405
- this.register(import_path_utils.pathUtilsProvider);
406
- this.register(import_root_file.rootFileProvider);
372
+ this.register(envUtilsProvider);
373
+ this.register(packageInfoProvider);
374
+ this.register(pathUtilsProvider);
375
+ this.register(rootFileProvider);
407
376
  const { services: enabledServices } = this._options;
408
- if (enabledServices.common) this.register(import_services.commonServicesProvider);
409
- if (enabledServices.http) this.register(import_services.httpServicesProvider);
410
- if (enabledServices.utils) this.register(import_services.utilsServicesProvider);
411
- this.set("events", () => new import_events_hub.EventsHub());
412
- this.set("statuses", () => import_utils.statuses);
377
+ if (enabledServices.common) this.register(commonServicesProvider);
378
+ if (enabledServices.http) this.register(httpServicesProvider);
379
+ if (enabledServices.utils) this.register(utilsServicesProvider);
380
+ this.set("events", () => new EventsHub());
381
+ this.set("statuses", () => statuses);
413
382
  }
414
383
  /**
415
384
  * Configures the Express application based on the class options.
@@ -423,30 +392,30 @@ class Jimpex extends import_jimple.Jimple {
423
392
  this._express.disable("x-powered-by");
424
393
  }
425
394
  if (expressOptions.compression) {
426
- this._express.use((0, import_compression.default)());
395
+ this._express.use(compression());
427
396
  }
428
397
  if (statics.enabled) {
429
398
  this._addStaticsFolder(statics.route, statics.folder, statics.onHome);
430
399
  }
431
400
  if (expressOptions.bodyParser) {
432
401
  this._express.use(
433
- import_body_parser.default.json({
402
+ bodyParser.json({
434
403
  limit: filesizeLimit
435
404
  })
436
405
  );
437
406
  this._express.use(
438
- import_body_parser.default.urlencoded({
407
+ bodyParser.urlencoded({
439
408
  extended: true,
440
409
  limit: filesizeLimit
441
410
  })
442
411
  );
443
412
  }
444
413
  if (expressOptions.multer) {
445
- this._express.use((0, import_multer.default)().any());
414
+ this._express.use(multer().any());
446
415
  }
447
416
  this.set(
448
417
  "router",
449
- this.factory(() => import_express.default.Router())
418
+ this.factory(() => express.Router())
450
419
  );
451
420
  }
452
421
  /**
@@ -467,7 +436,7 @@ class Jimpex extends import_jimple.Jimple {
467
436
  const pathUtils = this.get("pathUtils");
468
437
  const staticFolder = pathUtils.joinFrom(location, folder || staticRoute);
469
438
  this.mount(`/${staticRoute}`, {
470
- connect: () => import_express.default.static(staticFolder),
439
+ connect: () => express.static(staticFolder),
471
440
  controller: true
472
441
  });
473
442
  }
@@ -475,7 +444,7 @@ class Jimpex extends import_jimple.Jimple {
475
444
  * This helper method validates the `path` options in order to register the `app`
476
445
  * location in the `pathUtils` service. The `app` location should be the path to where
477
446
  * the application executable is located, but due to how ESM works, we can't infer it
478
- * from the `module` object, so we need either recieved as the `appPath` setting, or try
447
+ * from the `module` object, so we need either received as the `appPath` setting, or try
479
448
  * to get it from the parent module.
480
449
  *
481
450
  * @throws If the method should use the path from the parent module, but can't find
@@ -497,7 +466,7 @@ class Jimpex extends import_jimple.Jimple {
497
466
  stackList.shift();
498
467
  const parentFromStack = stackList.find((line) => !line.includes(__filename));
499
468
  if (parentFromStack) {
500
- const parentFile = parentFromStack.replace(/^.*?\s\(([^\s]+):\d+:\d+\)/, "$1");
469
+ const parentFile = parentFromStack.replace(/^.*?\s\(?([^\s]+):\d+:\d+\)?/, "$1");
501
470
  if (parentFile !== parentFromStack) {
502
471
  foundPath = true;
503
472
  pathUtils.addLocation("app", path.dirname(parentFile));
@@ -530,7 +499,7 @@ class Jimpex extends import_jimple.Jimple {
530
499
  options.name
531
500
  );
532
501
  this.register(
533
- (0, import_simple_config.simpleConfigProvider)({
502
+ simpleConfigProvider({
534
503
  name: options.name,
535
504
  defaultConfig: options.default,
536
505
  defaultConfigFilename,
@@ -550,8 +519,8 @@ class Jimpex extends import_jimple.Jimple {
550
519
  * the application so they'll be available for all the services.
551
520
  */
552
521
  async _loadESMModules() {
553
- const { default: nodeFetch } = await (0, import_ts_async_import.tsAsyncImport)("node-fetch");
554
- const { default: mime } = await (0, import_ts_async_import.tsAsyncImport)("mime");
522
+ const { default: nodeFetch } = await tsAsyncImport("node-fetch");
523
+ const { default: mime } = await tsAsyncImport("mime");
555
524
  this.set("node-fetch", () => nodeFetch);
556
525
  this.set("mime", () => mime);
557
526
  }
@@ -603,7 +572,7 @@ class Jimpex extends import_jimple.Jimple {
603
572
  keys.map(async (key) => {
604
573
  const filepath = credentialsInfo[key];
605
574
  if (!filepath) return void 0;
606
- const file = await import_promises.default.readFile(pathUtils.joinFrom(location, filepath), "utf8");
575
+ const file = await fs.readFile(pathUtils.joinFrom(location, filepath), "utf8");
607
576
  return {
608
577
  key,
609
578
  file
@@ -625,7 +594,7 @@ class Jimpex extends import_jimple.Jimple {
625
594
  * @returns {Server}
626
595
  * @throws {Error} If HTTP2 is enabled but HTTPS is not.
627
596
  * @throws {Error} If HTTPS is enabled but there's no `https.credentials` object.
628
- * @throws {Error} If HTTPS is enabled and no creadentials are found.
597
+ * @throws {Error} If HTTPS is enabled and no credentials are found.
629
598
  * @access protected
630
599
  * @ignore
631
600
  */
@@ -652,15 +621,15 @@ class Jimpex extends import_jimple.Jimple {
652
621
  ...credentials,
653
622
  spdy: http2Config.spdy
654
623
  };
655
- return (0, import_spdy.createServer)(serverOptions, this._express);
624
+ const spdyModule = await tsAsyncImport("spdy");
625
+ return spdyModule.default.createServer(serverOptions, this._express);
656
626
  }
657
- return (0, import_https.createServer)(credentials, this._express);
627
+ return createHTTPSServer(credentials, this._express);
658
628
  }
659
629
  }
660
630
  const jimpex = (...args) => new Jimpex(...args);
661
- // Annotate the CommonJS export names for ESM import in node:
662
- 0 && (module.exports = {
631
+ export {
663
632
  Jimpex,
664
633
  jimpex
665
- });
634
+ };
666
635
  //# sourceMappingURL=jimpex.js.map