@h4ad/serverless-adapter 2.3.1 → 2.5.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 (288) hide show
  1. package/README.md +22 -243
  2. package/lib/@types/binary-settings.d.ts +24 -6
  3. package/lib/@types/binary-settings.d.ts.map +1 -0
  4. package/lib/@types/binary-settings.js +1 -0
  5. package/lib/@types/binary-settings.js.map +1 -0
  6. package/lib/@types/headers.d.ts +16 -3
  7. package/lib/@types/headers.d.ts.map +1 -0
  8. package/lib/@types/headers.js +1 -0
  9. package/lib/@types/headers.js.map +1 -0
  10. package/lib/@types/helpers.d.ts +4 -0
  11. package/lib/@types/helpers.d.ts.map +1 -0
  12. package/lib/@types/helpers.js +1 -0
  13. package/lib/@types/helpers.js.map +1 -0
  14. package/lib/@types/huawei/huawei-api-gateway-event.d.ts +62 -0
  15. package/lib/@types/huawei/huawei-api-gateway-event.d.ts.map +1 -0
  16. package/lib/@types/huawei/huawei-api-gateway-event.js +2 -0
  17. package/lib/@types/huawei/huawei-api-gateway-event.js.map +1 -0
  18. package/lib/@types/huawei/huawei-api-gateway-response.d.ts +20 -0
  19. package/lib/@types/huawei/huawei-api-gateway-response.d.ts.map +1 -0
  20. package/lib/@types/huawei/huawei-api-gateway-response.js +2 -0
  21. package/lib/@types/huawei/huawei-api-gateway-response.js.map +1 -0
  22. package/lib/@types/huawei/huawei-context.d.ts +157 -0
  23. package/lib/@types/huawei/huawei-context.d.ts.map +1 -0
  24. package/lib/@types/huawei/huawei-context.js +1 -0
  25. package/lib/@types/huawei/huawei-context.js.map +1 -0
  26. package/lib/@types/huawei/index.d.ts +1 -0
  27. package/lib/@types/huawei/index.d.ts.map +1 -0
  28. package/lib/@types/huawei/index.js +6 -1
  29. package/lib/@types/huawei/index.js.map +1 -0
  30. package/lib/@types/index.d.ts +2 -1
  31. package/lib/@types/index.d.ts.map +1 -0
  32. package/lib/@types/index.js +7 -2
  33. package/lib/@types/index.js.map +1 -0
  34. package/lib/adapters/aws/alb.adapter.d.ts +18 -10
  35. package/lib/adapters/aws/alb.adapter.d.ts.map +1 -0
  36. package/lib/adapters/aws/alb.adapter.js +14 -9
  37. package/lib/adapters/aws/alb.adapter.js.map +1 -0
  38. package/lib/adapters/aws/api-gateway-v1.adapter.d.ts +20 -12
  39. package/lib/adapters/aws/api-gateway-v1.adapter.d.ts.map +1 -0
  40. package/lib/adapters/aws/api-gateway-v1.adapter.js +19 -14
  41. package/lib/adapters/aws/api-gateway-v1.adapter.js.map +1 -0
  42. package/lib/adapters/aws/api-gateway-v2.adapter.d.ts +19 -11
  43. package/lib/adapters/aws/api-gateway-v2.adapter.d.ts.map +1 -0
  44. package/lib/adapters/aws/api-gateway-v2.adapter.js +15 -10
  45. package/lib/adapters/aws/api-gateway-v2.adapter.js.map +1 -0
  46. package/lib/adapters/aws/dynamodb.adapter.d.ts +18 -10
  47. package/lib/adapters/aws/dynamodb.adapter.d.ts.map +1 -0
  48. package/lib/adapters/aws/dynamodb.adapter.js +13 -8
  49. package/lib/adapters/aws/dynamodb.adapter.js.map +1 -0
  50. package/lib/adapters/aws/event-bridge.adapter.d.ts +21 -10
  51. package/lib/adapters/aws/event-bridge.adapter.d.ts.map +1 -0
  52. package/lib/adapters/aws/event-bridge.adapter.js +13 -8
  53. package/lib/adapters/aws/event-bridge.adapter.js.map +1 -0
  54. package/lib/adapters/aws/index.d.ts +1 -0
  55. package/lib/adapters/aws/index.d.ts.map +1 -0
  56. package/lib/adapters/aws/index.js +6 -1
  57. package/lib/adapters/aws/index.js.map +1 -0
  58. package/lib/adapters/aws/lambda-edge.adapter.d.ts +76 -46
  59. package/lib/adapters/aws/lambda-edge.adapter.d.ts.map +1 -0
  60. package/lib/adapters/aws/lambda-edge.adapter.js +40 -24
  61. package/lib/adapters/aws/lambda-edge.adapter.js.map +1 -0
  62. package/lib/adapters/aws/sns.adapter.d.ts +18 -10
  63. package/lib/adapters/aws/sns.adapter.d.ts.map +1 -0
  64. package/lib/adapters/aws/sns.adapter.js +13 -8
  65. package/lib/adapters/aws/sns.adapter.js.map +1 -0
  66. package/lib/adapters/aws/sqs.adapter.d.ts +18 -10
  67. package/lib/adapters/aws/sqs.adapter.d.ts.map +1 -0
  68. package/lib/adapters/aws/sqs.adapter.js +13 -8
  69. package/lib/adapters/aws/sqs.adapter.js.map +1 -0
  70. package/lib/adapters/azure/http-trigger-v4.adapter.d.ts +81 -0
  71. package/lib/adapters/azure/http-trigger-v4.adapter.d.ts.map +1 -0
  72. package/lib/adapters/azure/http-trigger-v4.adapter.js +191 -0
  73. package/lib/adapters/azure/http-trigger-v4.adapter.js.map +1 -0
  74. package/lib/adapters/azure/index.d.ts +2 -0
  75. package/lib/adapters/azure/index.d.ts.map +1 -0
  76. package/lib/adapters/azure/index.js +18 -0
  77. package/lib/adapters/azure/index.js.map +1 -0
  78. package/lib/adapters/dummy/dummy.adapter.d.ts +9 -5
  79. package/lib/adapters/dummy/dummy.adapter.d.ts.map +1 -0
  80. package/lib/adapters/dummy/dummy.adapter.js +9 -5
  81. package/lib/adapters/dummy/dummy.adapter.js.map +1 -0
  82. package/lib/adapters/dummy/index.d.ts +1 -0
  83. package/lib/adapters/dummy/index.d.ts.map +1 -0
  84. package/lib/adapters/dummy/index.js +6 -1
  85. package/lib/adapters/dummy/index.js.map +1 -0
  86. package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts +19 -12
  87. package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts.map +1 -0
  88. package/lib/adapters/huawei/huawei-api-gateway.adapter.js +14 -9
  89. package/lib/adapters/huawei/huawei-api-gateway.adapter.js.map +1 -0
  90. package/lib/adapters/huawei/index.d.ts +1 -0
  91. package/lib/adapters/huawei/index.d.ts.map +1 -0
  92. package/lib/adapters/huawei/index.js +6 -1
  93. package/lib/adapters/huawei/index.js.map +1 -0
  94. package/lib/contracts/adapter.contract.d.ts +30 -30
  95. package/lib/contracts/adapter.contract.d.ts.map +1 -0
  96. package/lib/contracts/adapter.contract.js +2 -0
  97. package/lib/contracts/adapter.contract.js.map +1 -0
  98. package/lib/contracts/framework.contract.d.ts +7 -3
  99. package/lib/contracts/framework.contract.d.ts.map +1 -0
  100. package/lib/contracts/framework.contract.js +1 -0
  101. package/lib/contracts/framework.contract.js.map +1 -0
  102. package/lib/contracts/handler.contract.d.ts +7 -0
  103. package/lib/contracts/handler.contract.d.ts.map +1 -0
  104. package/lib/contracts/handler.contract.js +1 -0
  105. package/lib/contracts/handler.contract.js.map +1 -0
  106. package/lib/contracts/index.d.ts +1 -0
  107. package/lib/contracts/index.d.ts.map +1 -0
  108. package/lib/contracts/index.js +6 -1
  109. package/lib/contracts/index.js.map +1 -0
  110. package/lib/contracts/resolver.contract.d.ts +17 -4
  111. package/lib/contracts/resolver.contract.d.ts.map +1 -0
  112. package/lib/contracts/resolver.contract.js +1 -0
  113. package/lib/contracts/resolver.contract.js.map +1 -0
  114. package/lib/core/base-handler.d.ts +9 -5
  115. package/lib/core/base-handler.d.ts.map +1 -0
  116. package/lib/core/base-handler.js +9 -5
  117. package/lib/core/base-handler.js.map +1 -0
  118. package/lib/core/constants.d.ts +27 -0
  119. package/lib/core/constants.d.ts.map +1 -0
  120. package/lib/core/constants.js +21 -0
  121. package/lib/core/constants.js.map +1 -0
  122. package/lib/core/current-invoke.d.ts +17 -6
  123. package/lib/core/current-invoke.d.ts.map +1 -0
  124. package/lib/core/current-invoke.js +12 -4
  125. package/lib/core/current-invoke.js.map +1 -0
  126. package/lib/core/event-body.d.ts +9 -3
  127. package/lib/core/event-body.d.ts.map +1 -0
  128. package/lib/core/event-body.js +9 -3
  129. package/lib/core/event-body.js.map +1 -0
  130. package/lib/core/headers.d.ts +17 -6
  131. package/lib/core/headers.d.ts.map +1 -0
  132. package/lib/core/headers.js +17 -6
  133. package/lib/core/headers.js.map +1 -0
  134. package/lib/core/index.d.ts +1 -0
  135. package/lib/core/index.d.ts.map +1 -0
  136. package/lib/core/index.js +6 -1
  137. package/lib/core/index.js.map +1 -0
  138. package/lib/core/is-binary.d.ts +29 -11
  139. package/lib/core/is-binary.d.ts.map +1 -0
  140. package/lib/core/is-binary.js +29 -11
  141. package/lib/core/is-binary.js.map +1 -0
  142. package/lib/core/logger.d.ts +31 -5
  143. package/lib/core/logger.d.ts.map +1 -0
  144. package/lib/core/logger.js +29 -4
  145. package/lib/core/logger.js.map +1 -0
  146. package/lib/core/no-op.d.ts +4 -0
  147. package/lib/core/no-op.d.ts.map +1 -0
  148. package/lib/core/no-op.js +4 -0
  149. package/lib/core/no-op.js.map +1 -0
  150. package/lib/core/optional.d.ts +8 -3
  151. package/lib/core/optional.d.ts.map +1 -0
  152. package/lib/core/optional.js +8 -3
  153. package/lib/core/optional.js.map +1 -0
  154. package/lib/core/path.d.ts +14 -5
  155. package/lib/core/path.d.ts.map +1 -0
  156. package/lib/core/path.js +14 -5
  157. package/lib/core/path.js.map +1 -0
  158. package/lib/core/stream.d.ts +5 -1
  159. package/lib/core/stream.d.ts.map +1 -0
  160. package/lib/core/stream.js +6 -2
  161. package/lib/core/stream.js.map +1 -0
  162. package/lib/frameworks/express/express.framework.d.ts +5 -1
  163. package/lib/frameworks/express/express.framework.d.ts.map +1 -0
  164. package/lib/frameworks/express/express.framework.js +5 -1
  165. package/lib/frameworks/express/express.framework.js.map +1 -0
  166. package/lib/frameworks/express/index.d.ts +1 -0
  167. package/lib/frameworks/express/index.d.ts.map +1 -0
  168. package/lib/frameworks/express/index.js +6 -1
  169. package/lib/frameworks/express/index.js.map +1 -0
  170. package/lib/frameworks/fastify/fastify.framework.d.ts +5 -1
  171. package/lib/frameworks/fastify/fastify.framework.d.ts.map +1 -0
  172. package/lib/frameworks/fastify/fastify.framework.js +5 -1
  173. package/lib/frameworks/fastify/fastify.framework.js.map +1 -0
  174. package/lib/frameworks/fastify/index.d.ts +1 -0
  175. package/lib/frameworks/fastify/index.d.ts.map +1 -0
  176. package/lib/frameworks/fastify/index.js +6 -1
  177. package/lib/frameworks/fastify/index.js.map +1 -0
  178. package/lib/frameworks/hapi/hapi.framework.d.ts +5 -1
  179. package/lib/frameworks/hapi/hapi.framework.d.ts.map +1 -0
  180. package/lib/frameworks/hapi/hapi.framework.js +5 -1
  181. package/lib/frameworks/hapi/hapi.framework.js.map +1 -0
  182. package/lib/frameworks/hapi/index.d.ts +1 -0
  183. package/lib/frameworks/hapi/index.d.ts.map +1 -0
  184. package/lib/frameworks/hapi/index.js +6 -1
  185. package/lib/frameworks/hapi/index.js.map +1 -0
  186. package/lib/frameworks/koa/index.d.ts +1 -0
  187. package/lib/frameworks/koa/index.d.ts.map +1 -0
  188. package/lib/frameworks/koa/index.js +6 -1
  189. package/lib/frameworks/koa/index.js.map +1 -0
  190. package/lib/frameworks/koa/koa.framework.d.ts +5 -1
  191. package/lib/frameworks/koa/koa.framework.d.ts.map +1 -0
  192. package/lib/frameworks/koa/koa.framework.js +5 -1
  193. package/lib/frameworks/koa/koa.framework.js.map +1 -0
  194. package/lib/frameworks/lazy/index.d.ts +1 -0
  195. package/lib/frameworks/lazy/index.d.ts.map +1 -0
  196. package/lib/frameworks/lazy/index.js +6 -1
  197. package/lib/frameworks/lazy/index.js.map +1 -0
  198. package/lib/frameworks/lazy/lazy.framework.d.ts +7 -2
  199. package/lib/frameworks/lazy/lazy.framework.d.ts.map +1 -0
  200. package/lib/frameworks/lazy/lazy.framework.js +7 -2
  201. package/lib/frameworks/lazy/lazy.framework.js.map +1 -0
  202. package/lib/frameworks/trpc/index.d.ts +2 -0
  203. package/lib/frameworks/trpc/index.d.ts.map +1 -0
  204. package/lib/frameworks/trpc/index.js +18 -0
  205. package/lib/frameworks/trpc/index.js.map +1 -0
  206. package/lib/frameworks/trpc/trpc.framework.d.ts +152 -0
  207. package/lib/frameworks/trpc/trpc.framework.d.ts.map +1 -0
  208. package/lib/frameworks/trpc/trpc.framework.js +137 -0
  209. package/lib/frameworks/trpc/trpc.framework.js.map +1 -0
  210. package/lib/handlers/azure/azure.handler.d.ts +45 -0
  211. package/lib/handlers/azure/azure.handler.d.ts.map +1 -0
  212. package/lib/handlers/azure/azure.handler.js +63 -0
  213. package/lib/handlers/azure/azure.handler.js.map +1 -0
  214. package/lib/handlers/azure/index.d.ts +2 -0
  215. package/lib/handlers/azure/index.d.ts.map +1 -0
  216. package/lib/handlers/azure/index.js +18 -0
  217. package/lib/handlers/azure/index.js.map +1 -0
  218. package/lib/handlers/default/default.handler.d.ts +36 -32
  219. package/lib/handlers/default/default.handler.d.ts.map +1 -0
  220. package/lib/handlers/default/default.handler.js +48 -52
  221. package/lib/handlers/default/default.handler.js.map +1 -0
  222. package/lib/handlers/default/index.d.ts +1 -0
  223. package/lib/handlers/default/index.d.ts.map +1 -0
  224. package/lib/handlers/default/index.js +6 -1
  225. package/lib/handlers/default/index.js.map +1 -0
  226. package/lib/handlers/huawei/http-huawei.handler.d.ts +14 -4
  227. package/lib/handlers/huawei/http-huawei.handler.d.ts.map +1 -0
  228. package/lib/handlers/huawei/http-huawei.handler.js +15 -4
  229. package/lib/handlers/huawei/http-huawei.handler.js.map +1 -0
  230. package/lib/handlers/huawei/index.d.ts +1 -0
  231. package/lib/handlers/huawei/index.d.ts.map +1 -0
  232. package/lib/handlers/huawei/index.js +6 -1
  233. package/lib/handlers/huawei/index.js.map +1 -0
  234. package/lib/index.d.ts +1 -0
  235. package/lib/index.d.ts.map +1 -0
  236. package/lib/index.js +6 -1
  237. package/lib/index.js.map +1 -0
  238. package/lib/network/index.d.ts +1 -0
  239. package/lib/network/index.d.ts.map +1 -0
  240. package/lib/network/index.js +6 -1
  241. package/lib/network/index.js.map +1 -0
  242. package/lib/network/request.d.ts +28 -0
  243. package/lib/network/request.d.ts.map +1 -0
  244. package/lib/network/request.js +7 -0
  245. package/lib/network/request.js.map +1 -0
  246. package/lib/network/response.d.ts +18 -1
  247. package/lib/network/response.d.ts.map +1 -0
  248. package/lib/network/response.js +9 -1
  249. package/lib/network/response.js.map +1 -0
  250. package/lib/resolvers/aws-context/aws-context.resolver.d.ts +7 -9
  251. package/lib/resolvers/aws-context/aws-context.resolver.d.ts.map +1 -0
  252. package/lib/resolvers/aws-context/aws-context.resolver.js +7 -9
  253. package/lib/resolvers/aws-context/aws-context.resolver.js.map +1 -0
  254. package/lib/resolvers/aws-context/index.d.ts +1 -0
  255. package/lib/resolvers/aws-context/index.d.ts.map +1 -0
  256. package/lib/resolvers/aws-context/index.js +6 -1
  257. package/lib/resolvers/aws-context/index.js.map +1 -0
  258. package/lib/resolvers/callback/callback.resolver.d.ts +9 -2
  259. package/lib/resolvers/callback/callback.resolver.d.ts.map +1 -0
  260. package/lib/resolvers/callback/callback.resolver.js +6 -2
  261. package/lib/resolvers/callback/callback.resolver.js.map +1 -0
  262. package/lib/resolvers/callback/index.d.ts +1 -0
  263. package/lib/resolvers/callback/index.d.ts.map +1 -0
  264. package/lib/resolvers/callback/index.js +6 -1
  265. package/lib/resolvers/callback/index.js.map +1 -0
  266. package/lib/resolvers/dummy/dummy.resolver.d.ts +5 -1
  267. package/lib/resolvers/dummy/dummy.resolver.d.ts.map +1 -0
  268. package/lib/resolvers/dummy/dummy.resolver.js +5 -1
  269. package/lib/resolvers/dummy/dummy.resolver.js.map +1 -0
  270. package/lib/resolvers/dummy/index.d.ts +1 -0
  271. package/lib/resolvers/dummy/index.d.ts.map +1 -0
  272. package/lib/resolvers/dummy/index.js +6 -1
  273. package/lib/resolvers/dummy/index.js.map +1 -0
  274. package/lib/resolvers/promise/index.d.ts +1 -0
  275. package/lib/resolvers/promise/index.d.ts.map +1 -0
  276. package/lib/resolvers/promise/index.js +6 -1
  277. package/lib/resolvers/promise/index.js.map +1 -0
  278. package/lib/resolvers/promise/promise.resolver.d.ts +5 -1
  279. package/lib/resolvers/promise/promise.resolver.d.ts.map +1 -0
  280. package/lib/resolvers/promise/promise.resolver.js +5 -1
  281. package/lib/resolvers/promise/promise.resolver.js.map +1 -0
  282. package/lib/serverless-adapter.d.ts +17 -12
  283. package/lib/serverless-adapter.d.ts.map +1 -0
  284. package/lib/serverless-adapter.js +17 -12
  285. package/lib/serverless-adapter.js.map +1 -0
  286. package/package.json +32 -4
  287. package/lib/@types/proxy-params.d.ts +0 -8
  288. package/lib/@types/proxy-params.js +0 -2
@@ -1,19 +1,30 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createDefaultLogger = void 0;
3
+ exports.isInternalLogger = exports.createDefaultLogger = void 0;
4
+ /**
5
+ * The symbol used to check against an ILogger instace to verify if that ILogger was created by this library
6
+ *
7
+ * @breadcrumb Core / Logger
8
+ * @public
9
+ */
10
+ const InternalLoggerSymbol = Symbol('InternalLogger');
4
11
  /**
5
12
  * The method used to create a simple logger instance to use in this library.
6
13
  *
7
- * @note Behind the scenes, this simple logger sends the message to the `console` methods.
14
+ * @remarks Behind the scenes, this simple logger sends the message to the `console` methods.
8
15
  *
9
- * @example```typescript
16
+ * @example
17
+ * ```typescript
10
18
  * const logger = createDefaultLogger();
11
19
  *
12
20
  * logger.error('An error happens.');
13
21
  * // An error happens.
14
22
  * ```
15
23
  *
16
- * @param level Select the level of the log
24
+ * @param level - Select the level of the log
25
+ *
26
+ * @breadcrumb Core / Logger
27
+ * @public
17
28
  */
18
29
  function createDefaultLogger({ level } = { level: 'error' }) {
19
30
  const errorLogLevel = ['debug', 'verbose', 'info', 'warn', 'error'];
@@ -21,6 +32,7 @@ function createDefaultLogger({ level } = { level: 'error' }) {
21
32
  const infoLogLevel = ['debug', 'verbose', 'info'];
22
33
  const verboseLogLevel = ['debug', 'verbose'];
23
34
  return {
35
+ [InternalLoggerSymbol]: true,
24
36
  error: (message, ...additional) => {
25
37
  if (!errorLogLevel.includes(level))
26
38
  return;
@@ -49,3 +61,16 @@ function createDefaultLogger({ level } = { level: 'error' }) {
49
61
  };
50
62
  }
51
63
  exports.createDefaultLogger = createDefaultLogger;
64
+ /**
65
+ * The method used to chck if logger was created by this library, or it was defined by the user.
66
+ *
67
+ * @param logger - The instance of the logger to check
68
+ *
69
+ * @breadcrumb Core / Logger
70
+ * @public
71
+ */
72
+ function isInternalLogger(logger) {
73
+ return !!logger[InternalLoggerSymbol];
74
+ }
75
+ exports.isInternalLogger = isInternalLogger;
76
+ //# sourceMappingURL=logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.js","sourceRoot":"","sources":["../../src/core/logger.ts"],"names":[],"mappings":";;;AA6CA;;;;;GAKG;AACH,MAAM,oBAAoB,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;AAEtD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,mBAAmB,CACjC,EAAE,KAAK,KAAoB,EAAE,KAAK,EAAE,OAAO,EAAE;IAE7C,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACpE,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1D,MAAM,YAAY,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IAClD,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC;IAE7C,OAAO;QACL,CAAC,oBAAoB,CAAC,EAAE,IAAI;QAC5B,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAE;YAChC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAE,OAAO;YAE3C,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;QACxC,CAAC;QACD,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAE;YAC/B,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAE,OAAO;YAE1C,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;QACvC,CAAC;QACD,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAE;YAC/B,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAE,OAAO;YAE1C,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;QACvC,CAAC;QACD,OAAO,EAAE,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAE;YAClC,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,KAAK,CAAC;gBAAE,OAAO;YAE7C,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;QACxC,CAAC;QACD,KAAK,EAAE,CAAC,OAAO,EAAE,GAAG,UAAU,EAAE,EAAE;YAChC,IAAI,KAAK,KAAK,OAAO;gBAAE,OAAO;YAE9B,OAAO,CAAC,KAAK,CAAC,OAAO,EAAE,GAAG,UAAU,CAAC,CAAC;QACxC,CAAC;KACS,CAAC;AACf,CAAC;AApCD,kDAoCC;AAED;;;;;;;GAOG;AACH,SAAgB,gBAAgB,CAAC,MAAe;IAC9C,OAAO,CAAC,CAAC,MAAM,CAAC,oBAAoB,CAAC,CAAC;AACxC,CAAC;AAFD,4CAEC"}
@@ -1,4 +1,8 @@
1
1
  /**
2
2
  * No operation function is used when we need to pass a function, but we don't want to specify any behavior.
3
+ *
4
+ * @breadcrumb Core
5
+ * @public
3
6
  */
4
7
  export declare const NO_OP: (...args: any[]) => any;
8
+ //# sourceMappingURL=no-op.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-op.d.ts","sourceRoot":"","sources":["../../src/core/no-op.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAkB,CAAC"}
package/lib/core/no-op.js CHANGED
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NO_OP = void 0;
4
4
  /**
5
5
  * No operation function is used when we need to pass a function, but we don't want to specify any behavior.
6
+ *
7
+ * @breadcrumb Core
8
+ * @public
6
9
  */
7
10
  const NO_OP = () => void 0;
8
11
  exports.NO_OP = NO_OP;
12
+ //# sourceMappingURL=no-op.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-op.js","sourceRoot":"","sources":["../../src/core/no-op.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACI,MAAM,KAAK,GAA4B,GAAG,EAAE,CAAC,KAAK,CAAC,CAAC;AAA9C,QAAA,KAAK,SAAyC"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Return the defaultValue whether the value is undefined, otherwise, return the value.
3
3
  *
4
- * @example```typescript
4
+ * @example
5
+ * ```typescript
5
6
  * const value1 = getDefaultIfUndefined(undefined, true);
6
7
  * const value2 = getDefaultIfUndefined(false, true);
7
8
  *
@@ -11,7 +12,11 @@
11
12
  * // false
12
13
  * ```
13
14
  *
14
- * @param value The value to be checked
15
- * @param defaultValue The default value when value is undefined
15
+ * @param value - The value to be checked
16
+ * @param defaultValue - The default value when value is undefined
17
+ *
18
+ * @breadcrumb Core
19
+ * @public
16
20
  */
17
21
  export declare function getDefaultIfUndefined<T>(value: T | undefined, defaultValue: T): T;
22
+ //# sourceMappingURL=optional.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../src/core/optional.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,KAAK,EAAE,CAAC,GAAG,SAAS,EACpB,YAAY,EAAE,CAAC,GACd,CAAC,CAIH"}
@@ -4,7 +4,8 @@ exports.getDefaultIfUndefined = void 0;
4
4
  /**
5
5
  * Return the defaultValue whether the value is undefined, otherwise, return the value.
6
6
  *
7
- * @example```typescript
7
+ * @example
8
+ * ```typescript
8
9
  * const value1 = getDefaultIfUndefined(undefined, true);
9
10
  * const value2 = getDefaultIfUndefined(false, true);
10
11
  *
@@ -14,8 +15,11 @@ exports.getDefaultIfUndefined = void 0;
14
15
  * // false
15
16
  * ```
16
17
  *
17
- * @param value The value to be checked
18
- * @param defaultValue The default value when value is undefined
18
+ * @param value - The value to be checked
19
+ * @param defaultValue - The default value when value is undefined
20
+ *
21
+ * @breadcrumb Core
22
+ * @public
19
23
  */
20
24
  function getDefaultIfUndefined(value, defaultValue) {
21
25
  if (typeof value === 'undefined')
@@ -23,3 +27,4 @@ function getDefaultIfUndefined(value, defaultValue) {
23
27
  return value;
24
28
  }
25
29
  exports.getDefaultIfUndefined = getDefaultIfUndefined;
30
+ //# sourceMappingURL=optional.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optional.js","sourceRoot":"","sources":["../../src/core/optional.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,qBAAqB,CACnC,KAAoB,EACpB,YAAe;IAEf,IAAI,OAAO,KAAK,KAAK,WAAW;QAAE,OAAO,YAAY,CAAC;IAEtD,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,sDAOC"}
@@ -1,7 +1,8 @@
1
1
  /**
2
2
  * Transform the path and a map of query params to a string with formatted query params
3
3
  *
4
- * @example```typescript
4
+ * @example
5
+ * ```typescript
5
6
  * const path = '/pets/search';
6
7
  * const queryParams = { batata: undefined, petType: [ 'dog', 'fish' ] };
7
8
  * const result = getPathWithQueryStringParams(path, queryParams);
@@ -9,20 +10,28 @@
9
10
  * // /pets/search?batata=&petType=dog&petType=fish
10
11
  * ```
11
12
  *
12
- * @param path The path
13
- * @param queryParams The query params
13
+ * @param path - The path
14
+ * @param queryParams - The query params
15
+ *
16
+ * @breadcrumb Core / Path
17
+ * @public
14
18
  */
15
19
  export declare function getPathWithQueryStringParams(path: string, queryParams: string | Record<string, string | string[] | undefined> | undefined | null): string;
16
20
  /**
17
21
  * Map query params to a string with formatted query params
18
22
  *
19
- * @example```typescript
23
+ * @example
24
+ * ```typescript
20
25
  * const queryParams = { batata: undefined, petType: [ 'dog', 'fish' ] };
21
26
  * const result = getQueryParamsStringFromRecord(queryParams);
22
27
  * console.log(result);
23
28
  * // batata=&petType=dog&petType=fish
24
29
  * ```
25
30
  *
26
- * @param queryParamsRecord The query params record
31
+ * @param queryParamsRecord - The query params record
32
+ *
33
+ * @breadcrumb Core / Path
34
+ * @public
27
35
  */
28
36
  export declare function getQueryParamsStringFromRecord(queryParamsRecord: Record<string, string | string[] | undefined> | undefined | null): string;
37
+ //# sourceMappingURL=path.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/core/path.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,4BAA4B,CAC1C,IAAI,EAAE,MAAM,EACZ,WAAW,EACP,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,GAC7C,SAAS,GACT,IAAI,GACP,MAAM,CAUR;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,8BAA8B,CAC5C,iBAAiB,EACb,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,GAC7C,SAAS,GACT,IAAI,GACP,MAAM,CAkBR"}
package/lib/core/path.js CHANGED
@@ -4,7 +4,8 @@ exports.getQueryParamsStringFromRecord = exports.getPathWithQueryStringParams =
4
4
  /**
5
5
  * Transform the path and a map of query params to a string with formatted query params
6
6
  *
7
- * @example```typescript
7
+ * @example
8
+ * ```typescript
8
9
  * const path = '/pets/search';
9
10
  * const queryParams = { batata: undefined, petType: [ 'dog', 'fish' ] };
10
11
  * const result = getPathWithQueryStringParams(path, queryParams);
@@ -12,8 +13,11 @@ exports.getQueryParamsStringFromRecord = exports.getPathWithQueryStringParams =
12
13
  * // /pets/search?batata=&petType=dog&petType=fish
13
14
  * ```
14
15
  *
15
- * @param path The path
16
- * @param queryParams The query params
16
+ * @param path - The path
17
+ * @param queryParams - The query params
18
+ *
19
+ * @breadcrumb Core / Path
20
+ * @public
17
21
  */
18
22
  function getPathWithQueryStringParams(path, queryParams) {
19
23
  if (String(queryParams || '').length === 0)
@@ -29,14 +33,18 @@ exports.getPathWithQueryStringParams = getPathWithQueryStringParams;
29
33
  /**
30
34
  * Map query params to a string with formatted query params
31
35
  *
32
- * @example```typescript
36
+ * @example
37
+ * ```typescript
33
38
  * const queryParams = { batata: undefined, petType: [ 'dog', 'fish' ] };
34
39
  * const result = getQueryParamsStringFromRecord(queryParams);
35
40
  * console.log(result);
36
41
  * // batata=&petType=dog&petType=fish
37
42
  * ```
38
43
  *
39
- * @param queryParamsRecord The query params record
44
+ * @param queryParamsRecord - The query params record
45
+ *
46
+ * @breadcrumb Core / Path
47
+ * @public
40
48
  */
41
49
  function getQueryParamsStringFromRecord(queryParamsRecord) {
42
50
  const searchParams = new URLSearchParams();
@@ -54,3 +62,4 @@ function getQueryParamsStringFromRecord(queryParamsRecord) {
54
62
  return searchParams.toString();
55
63
  }
56
64
  exports.getQueryParamsStringFromRecord = getQueryParamsStringFromRecord;
65
+ //# sourceMappingURL=path.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/core/path.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,4BAA4B,CAC1C,IAAY,EACZ,WAIQ;IAER,IAAI,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAExD,IAAI,OAAO,WAAW,KAAK,QAAQ;QAAE,OAAO,GAAG,IAAI,IAAI,WAAW,EAAE,CAAC;IAErE,MAAM,iBAAiB,GAAG,8BAA8B,CAAC,WAAW,CAAC,CAAC;IAEtE,IAAI,CAAC,iBAAiB;QAAE,OAAO,IAAI,CAAC;IAEpC,OAAO,GAAG,IAAI,IAAI,iBAAiB,EAAE,CAAC;AACxC,CAAC;AAjBD,oEAiBC;AAED;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,8BAA8B,CAC5C,iBAGQ;IAER,MAAM,YAAY,GAAG,IAAI,eAAe,EAAE,CAAC;IAE3C,MAAM,wBAAwB,GAC5B,MAAM,CAAC,OAAO,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IAE1C,IAAI,wBAAwB,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAErD,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,wBAAwB,EAAE;QACnD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACzB,YAAY,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;YACtC,SAAS;SACV;QAED,KAAK,MAAM,UAAU,IAAI,KAAK;YAAE,YAAY,CAAC,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;KACtE;IAED,OAAO,YAAY,CAAC,QAAQ,EAAE,CAAC;AACjC,CAAC;AAvBD,wEAuBC"}
@@ -3,6 +3,10 @@ import { Readable, Writable } from 'stream';
3
3
  /**
4
4
  * Wait asynchronous the stream to complete
5
5
  *
6
- * @param stream The stream
6
+ * @param stream - The stream
7
+ *
8
+ * @breadcrumb Core / Stream
9
+ * @public
7
10
  */
8
11
  export declare function waitForStreamComplete<TStream extends Readable | Writable>(stream: TStream): Promise<TStream>;
12
+ //# sourceMappingURL=stream.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../src/core/stream.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAI5C;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,SAAS,QAAQ,GAAG,QAAQ,EACvE,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,OAAO,CAAC,CA+BlB"}
@@ -6,7 +6,10 @@ exports.waitForStreamComplete = void 0;
6
6
  /**
7
7
  * Wait asynchronous the stream to complete
8
8
  *
9
- * @param stream The stream
9
+ * @param stream - The stream
10
+ *
11
+ * @breadcrumb Core / Stream
12
+ * @public
10
13
  */
11
14
  function waitForStreamComplete(stream) {
12
15
  if ('readableEnded' in stream && stream.readableEnded)
@@ -14,7 +17,7 @@ function waitForStreamComplete(stream) {
14
17
  if ('writableEnded' in stream && stream.writableEnded)
15
18
  return Promise.resolve(stream);
16
19
  return new Promise((resolve, reject) => {
17
- // Reading the {@link https://github.com/nodejs/node/blob/v12.22.9/lib/events.js#L262 emit source code},
20
+ // Reading the {@link https://github.com/nodejs/node/blob/v12.22.9/lib/events.js#L262 | emit source code},
18
21
  // it's almost impossible to complete being called twice because the emit function runs synchronously and removes the other listeners,
19
22
  // but I'll leave it at that because I didn't write that code, so I couldn't figure out what the author thought when he wrote this.
20
23
  let isComplete = false;
@@ -37,3 +40,4 @@ function waitForStreamComplete(stream) {
37
40
  });
38
41
  }
39
42
  exports.waitForStreamComplete = waitForStreamComplete;
43
+ //# sourceMappingURL=stream.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stream.js","sourceRoot":"","sources":["../../src/core/stream.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAIjB,YAAY;AAEZ;;;;;;;GAOG;AACH,SAAgB,qBAAqB,CACnC,MAAe;IAEf,IAAI,eAAe,IAAI,MAAM,IAAI,MAAM,CAAC,aAAa;QACnD,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjC,IAAI,eAAe,IAAI,MAAM,IAAI,MAAM,CAAC,aAAa;QACnD,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IAEjC,OAAO,IAAI,OAAO,CAAU,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QAC9C,0GAA0G;QAC1G,sIAAsI;QACtI,mIAAmI;QACnI,IAAI,UAAU,GAAG,KAAK,CAAC;QAEvB,SAAS,QAAQ,CAAC,GAAG;YACnB,0BAA0B;YAC1B,IAAI,UAAU;gBAAE,OAAO;YAEvB,UAAU,GAAG,IAAI,CAAC;YAElB,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YACzC,MAAM,CAAC,cAAc,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;YACvC,MAAM,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;YAE1C,IAAI,GAAG;gBAAE,MAAM,CAAC,GAAG,CAAC,CAAC;;gBAChB,OAAO,CAAC,MAAM,CAAC,CAAC;QACvB,CAAC;QAED,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAC/B,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC7B,MAAM,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;AACL,CAAC;AAjCD,sDAiCC"}
@@ -4,10 +4,14 @@ import type { Express } from 'express';
4
4
  import { FrameworkContract } from '../../contracts';
5
5
  /**
6
6
  * The framework that forwards requests to express handler
7
+ *
8
+ * @breadcrumb Frameworks / ExpressFramework
9
+ * @public
7
10
  */
8
11
  export declare class ExpressFramework implements FrameworkContract<Express> {
9
12
  /**
10
- * @inheritDoc
13
+ * {@inheritDoc}
11
14
  */
12
15
  sendRequest(app: Express, request: IncomingMessage, response: ServerResponse): void;
13
16
  }
17
+ //# sourceMappingURL=express.framework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.framework.d.ts","sourceRoot":"","sources":["../../../src/frameworks/express/express.framework.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB,CAAC,OAAO,CAAC;IACjE;;OAEG;IACI,WAAW,CAChB,GAAG,EAAE,OAAO,EACZ,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,GACvB,IAAI;CAGR"}
@@ -5,13 +5,17 @@ exports.ExpressFramework = void 0;
5
5
  //#endregion
6
6
  /**
7
7
  * The framework that forwards requests to express handler
8
+ *
9
+ * @breadcrumb Frameworks / ExpressFramework
10
+ * @public
8
11
  */
9
12
  class ExpressFramework {
10
13
  /**
11
- * @inheritDoc
14
+ * {@inheritDoc}
12
15
  */
13
16
  sendRequest(app, request, response) {
14
17
  app(request, response);
15
18
  }
16
19
  }
17
20
  exports.ExpressFramework = ExpressFramework;
21
+ //# sourceMappingURL=express.framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"express.framework.js","sourceRoot":"","sources":["../../../src/frameworks/express/express.framework.ts"],"names":[],"mappings":";AAAA,SAAS;;;AAMT,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IACI,WAAW,CAChB,GAAY,EACZ,OAAwB,EACxB,QAAwB;QAExB,GAAG,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACzB,CAAC;CACF;AAXD,4CAWC"}
@@ -1 +1,2 @@
1
1
  export * from './express.framework';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/frameworks/express/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./express.framework"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/frameworks/express/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -4,10 +4,14 @@ import type { FastifyInstance } from 'fastify';
4
4
  import { FrameworkContract } from '../../contracts';
5
5
  /**
6
6
  * The framework that forwards requests to fastify handler
7
+ *
8
+ * @breadcrumb Frameworks / FastifyFramework
9
+ * @public
7
10
  */
8
11
  export declare class FastifyFramework implements FrameworkContract<FastifyInstance> {
9
12
  /**
10
- * @inheritDoc
13
+ * {@inheritDoc}
11
14
  */
12
15
  sendRequest(app: FastifyInstance, request: IncomingMessage, response: ServerResponse): void;
13
16
  }
17
+ //# sourceMappingURL=fastify.framework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fastify.framework.d.ts","sourceRoot":"","sources":["../../../src/frameworks/fastify/fastify.framework.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;;;;GAKG;AACH,qBAAa,gBAAiB,YAAW,iBAAiB,CAAC,eAAe,CAAC;IACzE;;OAEG;IACI,WAAW,CAChB,GAAG,EAAE,eAAe,EACpB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,GACvB,IAAI;CAIR"}
@@ -5,10 +5,13 @@ exports.FastifyFramework = void 0;
5
5
  //#endregion
6
6
  /**
7
7
  * The framework that forwards requests to fastify handler
8
+ *
9
+ * @breadcrumb Frameworks / FastifyFramework
10
+ * @public
8
11
  */
9
12
  class FastifyFramework {
10
13
  /**
11
- * @inheritDoc
14
+ * {@inheritDoc}
12
15
  */
13
16
  sendRequest(app, request, response) {
14
17
  // ref: https://www.fastify.io/docs/latest/Guides/Serverless/#implement-and-export-the-function
@@ -16,3 +19,4 @@ class FastifyFramework {
16
19
  }
17
20
  }
18
21
  exports.FastifyFramework = FastifyFramework;
22
+ //# sourceMappingURL=fastify.framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fastify.framework.js","sourceRoot":"","sources":["../../../src/frameworks/fastify/fastify.framework.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAMjB,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,gBAAgB;IAC3B;;OAEG;IACI,WAAW,CAChB,GAAoB,EACpB,OAAwB,EACxB,QAAwB;QAExB,+FAA+F;QAC/F,GAAG,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC;IACxE,CAAC;CACF;AAZD,4CAYC"}
@@ -1 +1,2 @@
1
1
  export * from './fastify.framework';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/frameworks/fastify/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./fastify.framework"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/frameworks/fastify/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -4,10 +4,14 @@ import type { Server } from 'hapi';
4
4
  import { FrameworkContract } from '../../contracts';
5
5
  /**
6
6
  * The framework that forwards requests to hapi handler
7
+ *
8
+ * @breadcrumb Frameworks / HapiFramework
9
+ * @public
7
10
  */
8
11
  export declare class HapiFramework implements FrameworkContract<Server> {
9
12
  /**
10
- * @inheritDoc
13
+ * {@inheritDoc}
11
14
  */
12
15
  sendRequest(app: Server, request: IncomingMessage, response: ServerResponse): void;
13
16
  }
17
+ //# sourceMappingURL=hapi.framework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hapi.framework.d.ts","sourceRoot":"","sources":["../../../src/frameworks/hapi/hapi.framework.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;;;;GAKG;AACH,qBAAa,aAAc,YAAW,iBAAiB,CAAC,MAAM,CAAC;IAC7D;;OAEG;IACI,WAAW,CAChB,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,GACvB,IAAI;CAKR"}
@@ -5,10 +5,13 @@ exports.HapiFramework = void 0;
5
5
  //#endregion
6
6
  /**
7
7
  * The framework that forwards requests to hapi handler
8
+ *
9
+ * @breadcrumb Frameworks / HapiFramework
10
+ * @public
8
11
  */
9
12
  class HapiFramework {
10
13
  /**
11
- * @inheritDoc
14
+ * {@inheritDoc}
12
15
  */
13
16
  sendRequest(app, request, response) {
14
17
  const httpServer = app.listener;
@@ -16,3 +19,4 @@ class HapiFramework {
16
19
  }
17
20
  }
18
21
  exports.HapiFramework = HapiFramework;
22
+ //# sourceMappingURL=hapi.framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hapi.framework.js","sourceRoot":"","sources":["../../../src/frameworks/hapi/hapi.framework.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAMjB,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,aAAa;IACxB;;OAEG;IACI,WAAW,CAChB,GAAW,EACX,OAAwB,EACxB,QAAwB;QAExB,MAAM,UAAU,GAAQ,GAAG,CAAC,QAAQ,CAAC;QAErC,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IAChD,CAAC;CACF;AAbD,sCAaC"}
@@ -1 +1,2 @@
1
1
  export * from './hapi.framework';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/frameworks/hapi/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./hapi.framework"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/frameworks/hapi/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -1 +1,2 @@
1
1
  export * from './koa.framework';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/frameworks/koa/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./koa.framework"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/frameworks/koa/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC"}
@@ -4,10 +4,14 @@ import type Application from 'koa';
4
4
  import { FrameworkContract } from '../../contracts';
5
5
  /**
6
6
  * The framework that forwards requests to koa handler
7
+ *
8
+ * @breadcrumb Frameworks / KoaFramework
9
+ * @public
7
10
  */
8
11
  export declare class KoaFramework implements FrameworkContract<Application> {
9
12
  /**
10
- * @inheritDoc
13
+ * {@inheritDoc}
11
14
  */
12
15
  sendRequest(app: Application, request: IncomingMessage, response: ServerResponse): void;
13
16
  }
17
+ //# sourceMappingURL=koa.framework.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"koa.framework.d.ts","sourceRoot":"","sources":["../../../src/frameworks/koa/koa.framework.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACvD,OAAO,KAAK,WAAW,MAAM,KAAK,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAIpD;;;;;GAKG;AACH,qBAAa,YAAa,YAAW,iBAAiB,CAAC,WAAW,CAAC;IACjE;;OAEG;IACI,WAAW,CAChB,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,eAAe,EACxB,QAAQ,EAAE,cAAc,GACvB,IAAI;CAGR"}
@@ -5,13 +5,17 @@ exports.KoaFramework = void 0;
5
5
  //#endregion
6
6
  /**
7
7
  * The framework that forwards requests to koa handler
8
+ *
9
+ * @breadcrumb Frameworks / KoaFramework
10
+ * @public
8
11
  */
9
12
  class KoaFramework {
10
13
  /**
11
- * @inheritDoc
14
+ * {@inheritDoc}
12
15
  */
13
16
  sendRequest(app, request, response) {
14
17
  app.callback()(request, response);
15
18
  }
16
19
  }
17
20
  exports.KoaFramework = KoaFramework;
21
+ //# sourceMappingURL=koa.framework.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"koa.framework.js","sourceRoot":"","sources":["../../../src/frameworks/koa/koa.framework.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAMjB,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,YAAY;IACvB;;OAEG;IACI,WAAW,CAChB,GAAgB,EAChB,OAAwB,EACxB,QAAwB;QAExB,GAAG,CAAC,QAAQ,EAAE,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;CACF;AAXD,oCAWC"}
@@ -1 +1,2 @@
1
1
  export * from './lazy.framework';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/frameworks/lazy/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -11,3 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
11
15
  };
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
17
  __exportStar(require("./lazy.framework"), exports);
18
+ //# sourceMappingURL=index.js.map