@h4ad/serverless-adapter 2.3.0 → 2.4.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 (272) hide show
  1. package/README.md +4 -260
  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/dummy/dummy.adapter.d.ts +9 -5
  71. package/lib/adapters/dummy/dummy.adapter.d.ts.map +1 -0
  72. package/lib/adapters/dummy/dummy.adapter.js +9 -5
  73. package/lib/adapters/dummy/dummy.adapter.js.map +1 -0
  74. package/lib/adapters/dummy/index.d.ts +1 -0
  75. package/lib/adapters/dummy/index.d.ts.map +1 -0
  76. package/lib/adapters/dummy/index.js +6 -1
  77. package/lib/adapters/dummy/index.js.map +1 -0
  78. package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts +19 -12
  79. package/lib/adapters/huawei/huawei-api-gateway.adapter.d.ts.map +1 -0
  80. package/lib/adapters/huawei/huawei-api-gateway.adapter.js +14 -9
  81. package/lib/adapters/huawei/huawei-api-gateway.adapter.js.map +1 -0
  82. package/lib/adapters/huawei/index.d.ts +1 -0
  83. package/lib/adapters/huawei/index.d.ts.map +1 -0
  84. package/lib/adapters/huawei/index.js +6 -1
  85. package/lib/adapters/huawei/index.js.map +1 -0
  86. package/lib/contracts/adapter.contract.d.ts +30 -30
  87. package/lib/contracts/adapter.contract.d.ts.map +1 -0
  88. package/lib/contracts/adapter.contract.js +2 -0
  89. package/lib/contracts/adapter.contract.js.map +1 -0
  90. package/lib/contracts/framework.contract.d.ts +7 -3
  91. package/lib/contracts/framework.contract.d.ts.map +1 -0
  92. package/lib/contracts/framework.contract.js +1 -0
  93. package/lib/contracts/framework.contract.js.map +1 -0
  94. package/lib/contracts/handler.contract.d.ts +7 -0
  95. package/lib/contracts/handler.contract.d.ts.map +1 -0
  96. package/lib/contracts/handler.contract.js +1 -0
  97. package/lib/contracts/handler.contract.js.map +1 -0
  98. package/lib/contracts/index.d.ts +1 -0
  99. package/lib/contracts/index.d.ts.map +1 -0
  100. package/lib/contracts/index.js +6 -1
  101. package/lib/contracts/index.js.map +1 -0
  102. package/lib/contracts/resolver.contract.d.ts +17 -4
  103. package/lib/contracts/resolver.contract.d.ts.map +1 -0
  104. package/lib/contracts/resolver.contract.js +1 -0
  105. package/lib/contracts/resolver.contract.js.map +1 -0
  106. package/lib/core/base-handler.d.ts +9 -5
  107. package/lib/core/base-handler.d.ts.map +1 -0
  108. package/lib/core/base-handler.js +9 -5
  109. package/lib/core/base-handler.js.map +1 -0
  110. package/lib/core/constants.d.ts +27 -0
  111. package/lib/core/constants.d.ts.map +1 -0
  112. package/lib/core/constants.js +21 -0
  113. package/lib/core/constants.js.map +1 -0
  114. package/lib/core/current-invoke.d.ts +17 -6
  115. package/lib/core/current-invoke.d.ts.map +1 -0
  116. package/lib/core/current-invoke.js +12 -4
  117. package/lib/core/current-invoke.js.map +1 -0
  118. package/lib/core/event-body.d.ts +9 -3
  119. package/lib/core/event-body.d.ts.map +1 -0
  120. package/lib/core/event-body.js +9 -3
  121. package/lib/core/event-body.js.map +1 -0
  122. package/lib/core/headers.d.ts +17 -6
  123. package/lib/core/headers.d.ts.map +1 -0
  124. package/lib/core/headers.js +17 -6
  125. package/lib/core/headers.js.map +1 -0
  126. package/lib/core/index.d.ts +1 -0
  127. package/lib/core/index.d.ts.map +1 -0
  128. package/lib/core/index.js +6 -1
  129. package/lib/core/index.js.map +1 -0
  130. package/lib/core/is-binary.d.ts +29 -11
  131. package/lib/core/is-binary.d.ts.map +1 -0
  132. package/lib/core/is-binary.js +29 -11
  133. package/lib/core/is-binary.js.map +1 -0
  134. package/lib/core/logger.d.ts +22 -5
  135. package/lib/core/logger.d.ts.map +1 -0
  136. package/lib/core/logger.js +8 -3
  137. package/lib/core/logger.js.map +1 -0
  138. package/lib/core/no-op.d.ts +4 -0
  139. package/lib/core/no-op.d.ts.map +1 -0
  140. package/lib/core/no-op.js +4 -0
  141. package/lib/core/no-op.js.map +1 -0
  142. package/lib/core/optional.d.ts +8 -3
  143. package/lib/core/optional.d.ts.map +1 -0
  144. package/lib/core/optional.js +8 -3
  145. package/lib/core/optional.js.map +1 -0
  146. package/lib/core/path.d.ts +14 -5
  147. package/lib/core/path.d.ts.map +1 -0
  148. package/lib/core/path.js +14 -5
  149. package/lib/core/path.js.map +1 -0
  150. package/lib/core/stream.d.ts +5 -1
  151. package/lib/core/stream.d.ts.map +1 -0
  152. package/lib/core/stream.js +6 -2
  153. package/lib/core/stream.js.map +1 -0
  154. package/lib/frameworks/express/express.framework.d.ts +5 -1
  155. package/lib/frameworks/express/express.framework.d.ts.map +1 -0
  156. package/lib/frameworks/express/express.framework.js +5 -1
  157. package/lib/frameworks/express/express.framework.js.map +1 -0
  158. package/lib/frameworks/express/index.d.ts +1 -0
  159. package/lib/frameworks/express/index.d.ts.map +1 -0
  160. package/lib/frameworks/express/index.js +6 -1
  161. package/lib/frameworks/express/index.js.map +1 -0
  162. package/lib/frameworks/fastify/fastify.framework.d.ts +5 -1
  163. package/lib/frameworks/fastify/fastify.framework.d.ts.map +1 -0
  164. package/lib/frameworks/fastify/fastify.framework.js +5 -1
  165. package/lib/frameworks/fastify/fastify.framework.js.map +1 -0
  166. package/lib/frameworks/fastify/index.d.ts +1 -0
  167. package/lib/frameworks/fastify/index.d.ts.map +1 -0
  168. package/lib/frameworks/fastify/index.js +6 -1
  169. package/lib/frameworks/fastify/index.js.map +1 -0
  170. package/lib/frameworks/hapi/hapi.framework.d.ts +5 -1
  171. package/lib/frameworks/hapi/hapi.framework.d.ts.map +1 -0
  172. package/lib/frameworks/hapi/hapi.framework.js +5 -1
  173. package/lib/frameworks/hapi/hapi.framework.js.map +1 -0
  174. package/lib/frameworks/hapi/index.d.ts +1 -0
  175. package/lib/frameworks/hapi/index.d.ts.map +1 -0
  176. package/lib/frameworks/hapi/index.js +6 -1
  177. package/lib/frameworks/hapi/index.js.map +1 -0
  178. package/lib/frameworks/koa/index.d.ts +1 -0
  179. package/lib/frameworks/koa/index.d.ts.map +1 -0
  180. package/lib/frameworks/koa/index.js +6 -1
  181. package/lib/frameworks/koa/index.js.map +1 -0
  182. package/lib/frameworks/koa/koa.framework.d.ts +5 -1
  183. package/lib/frameworks/koa/koa.framework.d.ts.map +1 -0
  184. package/lib/frameworks/koa/koa.framework.js +5 -1
  185. package/lib/frameworks/koa/koa.framework.js.map +1 -0
  186. package/lib/frameworks/lazy/index.d.ts +2 -0
  187. package/lib/frameworks/lazy/index.d.ts.map +1 -0
  188. package/lib/frameworks/lazy/index.js +17 -0
  189. package/lib/frameworks/lazy/index.js.map +1 -0
  190. package/lib/frameworks/lazy/lazy.framework.d.ts +7 -2
  191. package/lib/frameworks/lazy/lazy.framework.d.ts.map +1 -0
  192. package/lib/frameworks/lazy/lazy.framework.js +7 -2
  193. package/lib/frameworks/lazy/lazy.framework.js.map +1 -0
  194. package/lib/frameworks/trpc/index.d.ts +2 -0
  195. package/lib/frameworks/trpc/index.d.ts.map +1 -0
  196. package/lib/frameworks/trpc/index.js +18 -0
  197. package/lib/frameworks/trpc/index.js.map +1 -0
  198. package/lib/frameworks/trpc/trpc.framework.d.ts +152 -0
  199. package/lib/frameworks/trpc/trpc.framework.d.ts.map +1 -0
  200. package/lib/frameworks/trpc/trpc.framework.js +119 -0
  201. package/lib/frameworks/trpc/trpc.framework.js.map +1 -0
  202. package/lib/handlers/default/default.handler.d.ts +36 -32
  203. package/lib/handlers/default/default.handler.d.ts.map +1 -0
  204. package/lib/handlers/default/default.handler.js +36 -32
  205. package/lib/handlers/default/default.handler.js.map +1 -0
  206. package/lib/handlers/default/index.d.ts +1 -0
  207. package/lib/handlers/default/index.d.ts.map +1 -0
  208. package/lib/handlers/default/index.js +6 -1
  209. package/lib/handlers/default/index.js.map +1 -0
  210. package/lib/handlers/huawei/http-huawei.handler.d.ts +14 -4
  211. package/lib/handlers/huawei/http-huawei.handler.d.ts.map +1 -0
  212. package/lib/handlers/huawei/http-huawei.handler.js +15 -4
  213. package/lib/handlers/huawei/http-huawei.handler.js.map +1 -0
  214. package/lib/handlers/huawei/index.d.ts +1 -0
  215. package/lib/handlers/huawei/index.d.ts.map +1 -0
  216. package/lib/handlers/huawei/index.js +6 -1
  217. package/lib/handlers/huawei/index.js.map +1 -0
  218. package/lib/index.d.ts +1 -0
  219. package/lib/index.d.ts.map +1 -0
  220. package/lib/index.js +6 -1
  221. package/lib/index.js.map +1 -0
  222. package/lib/network/index.d.ts +1 -0
  223. package/lib/network/index.d.ts.map +1 -0
  224. package/lib/network/index.js +6 -1
  225. package/lib/network/index.js.map +1 -0
  226. package/lib/network/request.d.ts +28 -0
  227. package/lib/network/request.d.ts.map +1 -0
  228. package/lib/network/request.js +7 -0
  229. package/lib/network/request.js.map +1 -0
  230. package/lib/network/response.d.ts +18 -1
  231. package/lib/network/response.d.ts.map +1 -0
  232. package/lib/network/response.js +9 -1
  233. package/lib/network/response.js.map +1 -0
  234. package/lib/resolvers/aws-context/aws-context.resolver.d.ts +7 -9
  235. package/lib/resolvers/aws-context/aws-context.resolver.d.ts.map +1 -0
  236. package/lib/resolvers/aws-context/aws-context.resolver.js +7 -9
  237. package/lib/resolvers/aws-context/aws-context.resolver.js.map +1 -0
  238. package/lib/resolvers/aws-context/index.d.ts +1 -0
  239. package/lib/resolvers/aws-context/index.d.ts.map +1 -0
  240. package/lib/resolvers/aws-context/index.js +6 -1
  241. package/lib/resolvers/aws-context/index.js.map +1 -0
  242. package/lib/resolvers/callback/callback.resolver.d.ts +9 -2
  243. package/lib/resolvers/callback/callback.resolver.d.ts.map +1 -0
  244. package/lib/resolvers/callback/callback.resolver.js +6 -2
  245. package/lib/resolvers/callback/callback.resolver.js.map +1 -0
  246. package/lib/resolvers/callback/index.d.ts +1 -0
  247. package/lib/resolvers/callback/index.d.ts.map +1 -0
  248. package/lib/resolvers/callback/index.js +6 -1
  249. package/lib/resolvers/callback/index.js.map +1 -0
  250. package/lib/resolvers/dummy/dummy.resolver.d.ts +5 -1
  251. package/lib/resolvers/dummy/dummy.resolver.d.ts.map +1 -0
  252. package/lib/resolvers/dummy/dummy.resolver.js +5 -1
  253. package/lib/resolvers/dummy/dummy.resolver.js.map +1 -0
  254. package/lib/resolvers/dummy/index.d.ts +1 -0
  255. package/lib/resolvers/dummy/index.d.ts.map +1 -0
  256. package/lib/resolvers/dummy/index.js +6 -1
  257. package/lib/resolvers/dummy/index.js.map +1 -0
  258. package/lib/resolvers/promise/index.d.ts +1 -0
  259. package/lib/resolvers/promise/index.d.ts.map +1 -0
  260. package/lib/resolvers/promise/index.js +6 -1
  261. package/lib/resolvers/promise/index.js.map +1 -0
  262. package/lib/resolvers/promise/promise.resolver.d.ts +5 -1
  263. package/lib/resolvers/promise/promise.resolver.d.ts.map +1 -0
  264. package/lib/resolvers/promise/promise.resolver.js +5 -1
  265. package/lib/resolvers/promise/promise.resolver.js.map +1 -0
  266. package/lib/serverless-adapter.d.ts +17 -12
  267. package/lib/serverless-adapter.d.ts.map +1 -0
  268. package/lib/serverless-adapter.js +17 -12
  269. package/lib/serverless-adapter.js.map +1 -0
  270. package/package.json +29 -4
  271. package/lib/@types/proxy-params.d.ts +0 -8
  272. package/lib/@types/proxy-params.js +0 -2
@@ -21,6 +21,13 @@ function addData(stream, data) {
21
21
  else
22
22
  throw new Error(`response.write() of unexpected type: ${typeof data}`);
23
23
  }
24
+ /**
25
+ * The class that represents a response instance used to send to the framework and wait until the framework finishes processing the request.
26
+ * Once it's happens, we use the properties from this response to built the response to the cloud.
27
+ *
28
+ * @breadcrumb Network / ServerlessResponse
29
+ * @public
30
+ */
24
31
  class ServerlessResponse extends http_1.ServerResponse {
25
32
  constructor({ method }) {
26
33
  super({ method });
@@ -103,7 +110,7 @@ class ServerlessResponse extends http_1.ServerResponse {
103
110
  }
104
111
  /**
105
112
  * I use ignore here because in nodejs 12.x, statusMessage can be string | OutgoingHttpHeaders
106
- * But in nodejs >=14.x, statusMessage can also be OutgoingHttpHeaders[]
113
+ * But in nodejs \>=14.x, statusMessage can also be OutgoingHttpHeaders[]
107
114
  * I take care of these cases above, but here I can't handle it well, so I give up
108
115
  * nodejs 12.x ref: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/v12/http.d.ts#L229
109
116
  * nodejs 14.x ref: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/v14/http.d.ts#L263
@@ -113,3 +120,4 @@ class ServerlessResponse extends http_1.ServerResponse {
113
120
  }
114
121
  }
115
122
  exports.ServerlessResponse = ServerlessResponse;
123
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../src/network/response.ts"],"names":[],"mappings":";;;AAAA,8DAA8D;AAC9D,+BAAuD;AAEvD,kCAAgC;AAEhC,MAAM,SAAS,GAAG,UAAU,CAAC;AAE7B,MAAM,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC;AACrC,MAAM,OAAO,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;AAE3C,SAAS,SAAS,CAAC,IAA+B;IAChD,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;SACnD,IAAI,OAAO,IAAI,KAAK,QAAQ;QAAE,OAAO,IAAI,CAAC;;QAC1C,MAAM,IAAI,KAAK,CAAC,wCAAwC,OAAO,IAAI,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,OAAO,CAAC,MAA0B,EAAE,IAAyB;IACpE,IAAI,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,OAAO,IAAI,KAAK,QAAQ;QACnD,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;;QAClC,MAAM,IAAI,KAAK,CAAC,wCAAwC,OAAO,IAAI,EAAE,CAAC,CAAC;AAC9E,CA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,CAAC;IACnC,CAAC;IAED,SAAS,CACP,UAAkB,EAClB,aAAoC,EACpC,GAAiB;QAEjB,MAAM,iBAAiB,GACrB,OAAO,aAAa,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC;QAE1D,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,iBAAiB,CAAC;YACnD,CAAC,CAAC,iBAAiB;YACnB,CAAC,CAAC,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;QAE9B,KAAK,MAAM,OAAO,IAAI,YAAY,EAAE;YAClC,KAAK,MAAM,IAAI,IAAI,OAAO,EAAE;gBAC1B,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAE,CAAC,CAAC;gBAErC,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;oBACtB,8CAA8C;oBAC9C,8CAA8C;oBAC9C,MAAM;iBACP;aACF;SACF;QAED,OAAO,IAAI,CAAC,mBAAmB,CAAC,UAAU,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;IAClE,CAAC;IAED;;;;;;OAMG;IACO,mBAAmB,CAC3B,UAAkB,EAClB,aAAoC,EACpC,GAAiB;QAEjB,OAAO,KAAK,CAAC,SAAS,CAAC,UAAU,EAAE,aAAa,EAAE,GAAG,CAAC,CAAC;IACzD,CAAC;CACF;AAhID,gDAgIC"}
@@ -3,19 +3,17 @@ import { Resolver, ResolverContract, ResolverProps } from '../../contracts';
3
3
  /**
4
4
  * The class that implements the resolver by using the AWS Context object.
5
5
  *
6
- * @note To use this resolver, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
6
+ * @remarks To use this resolver, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html | callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
7
7
  *
8
- * ```md
9
- * From the AWS Documentation, describing the functions used in this resolver:
10
- * // Functions for compatibility with earlier Node.js Runtime v0.10.42
11
- * // No longer documented, so they are deprecated, but they still work
12
- * // as of the 12.x runtime, so they are not removed from the types.
13
- * ```
14
- * @deprecated
8
+ * @deprecated From the AWS Documentation, describing the functions used in this resolver: Functions for compatibility with earlier Node.js Runtime v0.10.42. No longer documented, so they are deprecated, but they still work as of the 12.x runtime, so they are not removed from the types.
9
+ *
10
+ * @breadcrumb Resolvers / AwsContextResolver
11
+ * @public
15
12
  */
16
13
  export declare class AwsContextResolver<TEvent, TCallback, TResponse> implements ResolverContract<TEvent, Context, TCallback, TResponse, void> {
17
14
  /**
18
- * @inheritDoc
15
+ * {@inheritDoc}
19
16
  */
20
17
  createResolver({ context, event, log, respondWithErrors, adapter, }: ResolverProps<any, Context, any, any>): Resolver<any, void>;
21
18
  }
19
+ //# sourceMappingURL=aws-context.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-context.resolver.d.ts","sourceRoot":"","sources":["../../../src/resolvers/aws-context/aws-context.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,EAEL,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACd,MAAM,iBAAiB,CAAC;AAIzB;;;;;;;;;GASG;AACH,qBAAa,kBAAkB,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,CAC1D,YAAW,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,CAAC;IAExE;;OAEG;IACI,cAAc,CAAC,EACpB,OAAO,EACP,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GACR,EAAE,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;CA6C/D"}
@@ -6,19 +6,16 @@ exports.AwsContextResolver = void 0;
6
6
  /**
7
7
  * The class that implements the resolver by using the AWS Context object.
8
8
  *
9
- * @note To use this resolver, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
9
+ * @remarks To use this resolver, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html | callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
10
10
  *
11
- * ```md
12
- * From the AWS Documentation, describing the functions used in this resolver:
13
- * // Functions for compatibility with earlier Node.js Runtime v0.10.42
14
- * // No longer documented, so they are deprecated, but they still work
15
- * // as of the 12.x runtime, so they are not removed from the types.
16
- * ```
17
- * @deprecated
11
+ * @deprecated From the AWS Documentation, describing the functions used in this resolver: Functions for compatibility with earlier Node.js Runtime v0.10.42. No longer documented, so they are deprecated, but they still work as of the 12.x runtime, so they are not removed from the types.
12
+ *
13
+ * @breadcrumb Resolvers / AwsContextResolver
14
+ * @public
18
15
  */
19
16
  class AwsContextResolver {
20
17
  /**
21
- * @inheritDoc
18
+ * {@inheritDoc}
22
19
  */
23
20
  createResolver({ context, event, log, respondWithErrors, adapter, }) {
24
21
  if (!context) {
@@ -53,3 +50,4 @@ class AwsContextResolver {
53
50
  }
54
51
  }
55
52
  exports.AwsContextResolver = AwsContextResolver;
53
+ //# sourceMappingURL=aws-context.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aws-context.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/aws-context/aws-context.resolver.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAUjB,YAAY;AAEZ;;;;;;;;;GASG;AACH,MAAa,kBAAkB;IAG7B;;OAEG;IACI,cAAc,CAAC,EACpB,OAAO,EACP,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GAC+B;QACtC,IAAI,CAAC,OAAO,EAAE;YACZ,MAAM,IAAI,KAAK,CACb,8FAA8F,CAC/F,CAAC;SACH;QAED,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE;YACpB,MAAM,IAAI,KAAK,CACb,qHAAqH,CACtH,CAAC;SACH;QAED,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,kHAAkH,CACnH,CAAC;SACH;QAED,MAAM,iBAAiB,GAA2B;YAChD,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC;YAC9C,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC;SACnC,CAAC;QAEF,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,EAAE;gBACV,IAAI,EAAE;qBACH,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;qBACrD,KAAK,CAAC,KAAK,CAAC,EAAE;oBACb,GAAG,CAAC,KAAK,CACP,uDAAuD,EACvD,KAAK,CACN,CAAC;oBAEF,OAAO,CAAC,sBAAsB,CAAC;wBAC7B,iBAAiB;wBACjB,KAAK;wBACL,GAAG;wBACH,KAAK;wBACL,iBAAiB;qBAClB,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;SACF,CAAC;IACJ,CAAC;CACF;AAzDD,gDAyDC"}
@@ -1 +1,2 @@
1
1
  export * from './aws-context.resolver';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resolvers/aws-context/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,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("./aws-context.resolver"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/aws-context/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC"}
@@ -1,16 +1,23 @@
1
1
  import { Resolver, ResolverContract, ResolverProps } from '../../contracts';
2
2
  /**
3
3
  * The default signature of the callback sent by serverless
4
+ *
5
+ * @breadcrumb Resolvers / CallbackResolver
6
+ * @public
4
7
  */
5
8
  export declare type ServerlessCallback<TResponse> = (error: Error | null, success: TResponse | null) => void;
6
9
  /**
7
10
  * The class that implements the resolver using the callback function sent by serverless
8
11
  *
9
- * @note To use this resolver on AWS, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
12
+ * @remarks To use this resolver on AWS, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html | callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
13
+ *
14
+ * @breadcrumb Resolvers / CallbackResolver
15
+ * @public
10
16
  */
11
17
  export declare class CallbackResolver<TEvent, TContext, TResponse> implements ResolverContract<TEvent, TContext, ServerlessCallback<any>, TResponse, void> {
12
18
  /**
13
- * @inheritDoc
19
+ * {@inheritDoc}
14
20
  */
15
21
  createResolver({ callback, event, log, respondWithErrors, adapter, }: ResolverProps<TEvent, TContext, ServerlessCallback<any>, TResponse>): Resolver<any, void>;
16
22
  }
23
+ //# sourceMappingURL=callback.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callback.resolver.d.ts","sourceRoot":"","sources":["../../../src/resolvers/callback/callback.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACd,MAAM,iBAAiB,CAAC;AAIzB;;;;;GAKG;AACH,oBAAY,kBAAkB,CAAC,SAAS,IAAI,CAC1C,KAAK,EAAE,KAAK,GAAG,IAAI,EACnB,OAAO,EAAE,SAAS,GAAG,IAAI,KACtB,IAAI,CAAC;AAEV;;;;;;;GAOG;AACH,qBAAa,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CACvD,YACE,gBAAgB,CACd,MAAM,EACN,QAAQ,EACR,kBAAkB,CAAC,GAAG,CAAC,EACvB,SAAS,EACT,IAAI,CACL;IAEH;;OAEG;IACI,cAAc,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GACR,EAAE,aAAa,CACd,MAAM,EACN,QAAQ,EACR,kBAAkB,CAAC,GAAG,CAAC,EACvB,SAAS,CACV,GAAG,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;CAiCxB"}
@@ -5,11 +5,14 @@ exports.CallbackResolver = void 0;
5
5
  /**
6
6
  * The class that implements the resolver using the callback function sent by serverless
7
7
  *
8
- * @note To use this resolver on AWS, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
8
+ * @remarks To use this resolver on AWS, you MUST leave `{@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-context.html | callbackWaitsForEmptyEventLoop}` as true, otherwise, AWS will not wait for this resolver to resolve.
9
+ *
10
+ * @breadcrumb Resolvers / CallbackResolver
11
+ * @public
9
12
  */
10
13
  class CallbackResolver {
11
14
  /**
12
- * @inheritDoc
15
+ * {@inheritDoc}
13
16
  */
14
17
  createResolver({ callback, event, log, respondWithErrors, adapter, }) {
15
18
  if (!callback) {
@@ -38,3 +41,4 @@ class CallbackResolver {
38
41
  }
39
42
  }
40
43
  exports.CallbackResolver = CallbackResolver;
44
+ //# sourceMappingURL=callback.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callback.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/callback/callback.resolver.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAsBjB;;;;;;;GAOG;AACH,MAAa,gBAAgB;IAU3B;;OAEG;IACI,cAAc,CAAC,EACpB,QAAQ,EACR,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GAMR;QACC,IAAI,CAAC,QAAQ,EAAE;YACb,MAAM,IAAI,KAAK,CACb,+FAA+F,CAChG,CAAC;SACH;QAED,MAAM,iBAAiB,GAA2B;YAChD,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;YAC7C,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC;SACrC,CAAC;QAEF,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,EAAE;gBACV,IAAI,EAAE;qBACH,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;qBACrD,KAAK,CAAC,KAAK,CAAC,EAAE;oBACb,GAAG,CAAC,KAAK,CACP,uDAAuD,EACvD,KAAK,CACN,CAAC;oBAEF,OAAO,CAAC,sBAAsB,CAAC;wBAC7B,iBAAiB;wBACjB,KAAK;wBACL,GAAG;wBACH,KAAK;wBACL,iBAAiB;qBAClB,CAAC,CAAC;gBACL,CAAC,CAAC,CAAC;YACP,CAAC;SACF,CAAC;IACJ,CAAC;CACF;AAzDD,4CAyDC"}
@@ -1 +1,2 @@
1
1
  export * from './callback.resolver';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resolvers/callback/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("./callback.resolver"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/callback/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC"}
@@ -1,10 +1,14 @@
1
1
  import { Resolver, ResolverContract } from '../../contracts';
2
2
  /**
3
3
  * The class that represents a dummy resolver that does nothing and can be used by the cloud that doesn't use resolvers.
4
+ *
5
+ * @breadcrumb Resolvers / DummyResolver
6
+ * @public
4
7
  */
5
8
  export declare class DummyResolver implements ResolverContract<any, any, any, any, any> {
6
9
  /**
7
- * @inheritDoc
10
+ * {@inheritDoc}
8
11
  */
9
12
  createResolver(): Resolver<any, void>;
10
13
  }
14
+ //# sourceMappingURL=dummy.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dummy.resolver.d.ts","sourceRoot":"","sources":["../../../src/resolvers/dummy/dummy.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAI7D;;;;;GAKG;AACH,qBAAa,aACX,YAAW,gBAAgB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAEpD;;OAEG;IACI,cAAc,IAAI,QAAQ,CAAC,GAAG,EAAE,IAAI,CAAC;CAK7C"}
@@ -5,10 +5,13 @@ exports.DummyResolver = void 0;
5
5
  //#endregion
6
6
  /**
7
7
  * The class that represents a dummy resolver that does nothing and can be used by the cloud that doesn't use resolvers.
8
+ *
9
+ * @breadcrumb Resolvers / DummyResolver
10
+ * @public
8
11
  */
9
12
  class DummyResolver {
10
13
  /**
11
- * @inheritDoc
14
+ * {@inheritDoc}
12
15
  */
13
16
  createResolver() {
14
17
  return {
@@ -17,3 +20,4 @@ class DummyResolver {
17
20
  }
18
21
  }
19
22
  exports.DummyResolver = DummyResolver;
23
+ //# sourceMappingURL=dummy.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dummy.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/dummy/dummy.resolver.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAIjB,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,aAAa;IAGxB;;OAEG;IACI,cAAc;QACnB,OAAO;YACL,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE;SAC7B,CAAC;IACJ,CAAC;CACF;AAXD,sCAWC"}
@@ -1 +1,2 @@
1
1
  export * from './dummy.resolver';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resolvers/dummy/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("./dummy.resolver"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/dummy/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC"}
@@ -1 +1,2 @@
1
1
  export * from './promise.resolver';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resolvers/promise/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,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("./promise.resolver"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/promise/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC"}
@@ -1,10 +1,14 @@
1
1
  import { Resolver, ResolverContract, ResolverProps } from '../../contracts';
2
2
  /**
3
3
  * The class that implements the resolver using the promise object sent by this library
4
+ *
5
+ * @breadcrumb Resolvers / PromiseResolver
6
+ * @public
4
7
  */
5
8
  export declare class PromiseResolver<TEvent, TContext, TCallback, TResponse, TReturn> implements ResolverContract<TEvent, TContext, TCallback, TResponse, Promise<any>> {
6
9
  /**
7
- * @inheritDoc
10
+ * {@inheritDoc}
8
11
  */
9
12
  createResolver({ event, log, respondWithErrors, adapter, }: ResolverProps<TEvent, TContext, TCallback, TResponse>): Resolver<TResponse, Promise<TReturn>>;
10
13
  }
14
+ //# sourceMappingURL=promise.resolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promise.resolver.d.ts","sourceRoot":"","sources":["../../../src/resolvers/promise/promise.resolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACd,MAAM,iBAAiB,CAAC;AAIzB;;;;;GAKG;AACH,qBAAa,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAC1E,YACE,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC;IAExE;;OAEG;IACI,cAAc,CAAC,EACpB,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GACR,EAAE,aAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,CAAC,GAAG,QAAQ,CACjE,SAAS,EACT,OAAO,CAAC,OAAO,CAAC,CACjB;CA6BF"}
@@ -5,10 +5,13 @@ exports.PromiseResolver = void 0;
5
5
  //#endregion
6
6
  /**
7
7
  * The class that implements the resolver using the promise object sent by this library
8
+ *
9
+ * @breadcrumb Resolvers / PromiseResolver
10
+ * @public
8
11
  */
9
12
  class PromiseResolver {
10
13
  /**
11
- * @inheritDoc
14
+ * {@inheritDoc}
12
15
  */
13
16
  createResolver({ event, log, respondWithErrors, adapter, }) {
14
17
  return {
@@ -36,3 +39,4 @@ class PromiseResolver {
36
39
  }
37
40
  }
38
41
  exports.PromiseResolver = PromiseResolver;
42
+ //# sourceMappingURL=promise.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"promise.resolver.js","sourceRoot":"","sources":["../../../src/resolvers/promise/promise.resolver.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AASjB,YAAY;AAEZ;;;;;GAKG;AACH,MAAa,eAAe;IAI1B;;OAEG;IACI,cAAc,CAAC,EACpB,KAAK,EACL,GAAG,EACH,iBAAiB,EACjB,OAAO,GAC+C;QAItD,OAAO;YACL,GAAG,EAAE,IAAI,CAAC,EAAE;gBACV,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;oBACrC,MAAM,iBAAiB,GAA2B;wBAChD,OAAO,EAAE,QAAQ,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC;wBACtC,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;qBAC7B,CAAC;oBAEF,IAAI,EAAE;yBACH,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;yBACrD,KAAK,CAAC,KAAK,CAAC,EAAE;wBACb,GAAG,CAAC,KAAK,CACP,uDAAuD,EACvD,KAAK,CACN,CAAC;wBAEF,OAAO,CAAC,sBAAsB,CAAC;4BAC7B,iBAAiB;4BACjB,KAAK;4BACL,GAAG;4BACH,KAAK;4BACL,iBAAiB;yBAClB,CAAC,CAAC;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC,CAAC,CAAC;YACL,CAAC;SACF,CAAC;IACJ,CAAC;CACF;AA5CD,0CA4CC"}
@@ -4,7 +4,8 @@ import { ILogger } from './core';
4
4
  /**
5
5
  * The class used to build the serverless handler.
6
6
  *
7
- * @example```typescript
7
+ * @example
8
+ * ```typescript
8
9
  * const app = express();
9
10
  * export const handler = ServerlessAdapter.new(app)
10
11
  * .setFramework(new ExpressFramework())
@@ -16,6 +17,9 @@ import { ILogger } from './core';
16
17
  * .addAdapter(new SNSAdapter())
17
18
  * .build();
18
19
  * ```
20
+ *
21
+ * @breadcrumb ServerlessAdapter
22
+ * @public
19
23
  */
20
24
  export declare class ServerlessAdapter<TApp, TEvent, TContext, TCallback, TResponse, TReturn> {
21
25
  /**
@@ -29,14 +33,14 @@ export declare class ServerlessAdapter<TApp, TEvent, TContext, TCallback, TRespo
29
33
  /**
30
34
  * Settings for whether the response should be treated as binary or not
31
35
  *
32
- * @default `contentEncodings` and `contentTypes` are set with {@link DEFAULT_BINARY_ENCODINGS} and {@link DEFAULT_BINARY_CONTENT_TYPES}, respectively.
36
+ * @defaultValue `contentEncodings` and `contentTypes` are set with {@link DEFAULT_BINARY_ENCODINGS} and {@link DEFAULT_BINARY_CONTENT_TYPES}, respectively.
33
37
  */
34
38
  protected binarySettings: BinarySettings;
35
39
  /**
36
40
  * Indicates whether the error stack should be included in the response or not
37
41
  *
38
- * @note These errors will only be included when an error occurs while forwarding the event to the framework
39
- * @default True when NODE_ENV is equal to `development`
42
+ * @remarks These errors will only be included when an error occurs while forwarding the event to the framework
43
+ * @defaultValue True when NODE_ENV is equal to `development`
40
44
  */
41
45
  protected respondWithErrors: boolean;
42
46
  /**
@@ -62,49 +66,49 @@ export declare class ServerlessAdapter<TApp, TEvent, TContext, TCallback, TRespo
62
66
  /**
63
67
  * Creates a new instance of the builder with app (express, hapi, koa, etc...)
64
68
  *
65
- * @param app The instance of the app
69
+ * @param app - The instance of the app
66
70
  */
67
71
  static new<TApp, TEvent, TContext = any, TCallback = any, TResponse = any, TReturn = any>(app: TApp): ServerlessAdapter<TApp, TEvent, TContext, TCallback, TResponse, TReturn>;
68
72
  /**
69
73
  * Defines the handler that will get the event, context and callback and pass it to the adapter and framework
70
74
  *
71
- * @param handler The implementation of the handler contract
75
+ * @param handler - The implementation of the handler contract
72
76
  */
73
77
  setHandler(handler: HandlerContract<TApp, TEvent, TContext, TCallback, TResponse, TReturn>): Omit<this, 'setHandler'>;
74
78
  /**
75
79
  * Defines the resolver that aims to resolve the response to serverless and stop its execution when the request ends
76
80
  *
77
- * @param resolver The implementation of the resolver contract
81
+ * @param resolver - The implementation of the resolver contract
78
82
  */
79
83
  setResolver(resolver: ResolverContract<TEvent, TContext, TCallback, TResponse, TReturn>): Omit<this, 'setResolver'>;
80
84
  /**
81
85
  * Defines the framework that will process requests
82
86
  *
83
- * @param framework The implementation of the framework contract
87
+ * @param framework - The implementation of the framework contract
84
88
  */
85
89
  setFramework(framework: FrameworkContract<TApp>): Omit<this, 'setFramework'>;
86
90
  /**
87
91
  * Defines the logger service used during the execution of the handler
88
92
  *
89
- * @param logger The implementation of the logger
93
+ * @param logger - The implementation of the logger
90
94
  */
91
95
  setLogger(logger: ILogger): Omit<this, 'setLogger'>;
92
96
  /**
93
97
  * Defines the binary settings for whether the response should be treated as binary or not
94
98
  *
95
- * @param binarySettings The binary settings
99
+ * @param binarySettings - The binary settings
96
100
  */
97
101
  setBinarySettings(binarySettings: BinarySettings): Omit<this, 'setBinarySettings'>;
98
102
  /**
99
103
  * Defines the responseWithErrors, a property that indicates whether the error stack should be included in the response or not
100
104
  *
101
- * @param respondWithErrors Should include or not the errors in response
105
+ * @param respondWithErrors - Should include or not the errors in response
102
106
  */
103
107
  setRespondWithErrors(respondWithErrors: boolean): Omit<this, 'setRespondWithErrors'>;
104
108
  /**
105
109
  * Add an adapter to the adapters list to handle the event coming from any serverless event source
106
110
  *
107
- * @param adapter The implementation of the adapter contract
111
+ * @param adapter - The implementation of the adapter contract
108
112
  */
109
113
  addAdapter(adapter: AdapterContract<TEvent, TContext, TResponse>): Pick<this, 'addAdapter' | 'build'>;
110
114
  /**
@@ -112,3 +116,4 @@ export declare class ServerlessAdapter<TApp, TEvent, TContext, TCallback, TRespo
112
116
  */
113
117
  build(): ServerlessHandler<TReturn>;
114
118
  }
119
+ //# sourceMappingURL=serverless-adapter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverless-adapter.d.ts","sourceRoot":"","sources":["../src/serverless-adapter.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAGL,OAAO,EAER,MAAM,QAAQ,CAAC;AAIhB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAAa,iBAAiB,CAC5B,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO;IAIP;;OAEG;IACH,OAAO;IAQP;;OAEG;IACH,SAAS,CAAC,GAAG,EAAE,IAAI,CAAC;IAMpB;;;;OAIG;IACH,SAAS,CAAC,cAAc,EAAE,cAAc,CAGtC;IAEF;;;;;OAKG;IACH,SAAS,CAAC,iBAAiB,EAAE,OAAO,CAA0C;IAE9E;;OAEG;IACH,SAAS,CAAC,GAAG,EAAE,OAAO,CAAyB;IAE/C;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,EAAE,CAAM;IAExE;;OAEG;IACH,SAAS,CAAC,SAAS,CAAC,EAAE,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE9C;;OAE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,sBAAsB,CAAC;IAMrC;;;;OAIG;IACI,UAAU,CACf,OAAO,EAAE,eAAe,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC,GACpD,IAAI,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC;IAMrC;;OAEG;IACI,KAAK,IAAI,iBAAiB,CAAC,OAAO,CAAC;CAqC3C"}
@@ -7,7 +7,8 @@ const core_1 = require("./core");
7
7
  /**
8
8
  * The class used to build the serverless handler.
9
9
  *
10
- * @example```typescript
10
+ * @example
11
+ * ```typescript
11
12
  * const app = express();
12
13
  * export const handler = ServerlessAdapter.new(app)
13
14
  * .setFramework(new ExpressFramework())
@@ -19,6 +20,9 @@ const core_1 = require("./core");
19
20
  * .addAdapter(new SNSAdapter())
20
21
  * .build();
21
22
  * ```
23
+ *
24
+ * @breadcrumb ServerlessAdapter
25
+ * @public
22
26
  */
23
27
  class ServerlessAdapter {
24
28
  //#region Constructor
@@ -31,7 +35,7 @@ class ServerlessAdapter {
31
35
  /**
32
36
  * Settings for whether the response should be treated as binary or not
33
37
  *
34
- * @default `contentEncodings` and `contentTypes` are set with {@link DEFAULT_BINARY_ENCODINGS} and {@link DEFAULT_BINARY_CONTENT_TYPES}, respectively.
38
+ * @defaultValue `contentEncodings` and `contentTypes` are set with {@link DEFAULT_BINARY_ENCODINGS} and {@link DEFAULT_BINARY_CONTENT_TYPES}, respectively.
35
39
  */
36
40
  this.binarySettings = {
37
41
  contentEncodings: core_1.DEFAULT_BINARY_ENCODINGS,
@@ -40,8 +44,8 @@ class ServerlessAdapter {
40
44
  /**
41
45
  * Indicates whether the error stack should be included in the response or not
42
46
  *
43
- * @note These errors will only be included when an error occurs while forwarding the event to the framework
44
- * @default True when NODE_ENV is equal to `development`
47
+ * @remarks These errors will only be included when an error occurs while forwarding the event to the framework
48
+ * @defaultValue True when NODE_ENV is equal to `development`
45
49
  */
46
50
  this.respondWithErrors = process.env.NODE_ENV === 'development';
47
51
  /**
@@ -59,7 +63,7 @@ class ServerlessAdapter {
59
63
  /**
60
64
  * Creates a new instance of the builder with app (express, hapi, koa, etc...)
61
65
  *
62
- * @param app The instance of the app
66
+ * @param app - The instance of the app
63
67
  */
64
68
  static new(app) {
65
69
  return new ServerlessAdapter(app);
@@ -69,7 +73,7 @@ class ServerlessAdapter {
69
73
  /**
70
74
  * Defines the handler that will get the event, context and callback and pass it to the adapter and framework
71
75
  *
72
- * @param handler The implementation of the handler contract
76
+ * @param handler - The implementation of the handler contract
73
77
  */
74
78
  setHandler(handler) {
75
79
  if (this.handler)
@@ -80,7 +84,7 @@ class ServerlessAdapter {
80
84
  /**
81
85
  * Defines the resolver that aims to resolve the response to serverless and stop its execution when the request ends
82
86
  *
83
- * @param resolver The implementation of the resolver contract
87
+ * @param resolver - The implementation of the resolver contract
84
88
  */
85
89
  setResolver(resolver) {
86
90
  if (this.resolver)
@@ -91,7 +95,7 @@ class ServerlessAdapter {
91
95
  /**
92
96
  * Defines the framework that will process requests
93
97
  *
94
- * @param framework The implementation of the framework contract
98
+ * @param framework - The implementation of the framework contract
95
99
  */
96
100
  setFramework(framework) {
97
101
  if (this.framework) {
@@ -103,7 +107,7 @@ class ServerlessAdapter {
103
107
  /**
104
108
  * Defines the logger service used during the execution of the handler
105
109
  *
106
- * @param logger The implementation of the logger
110
+ * @param logger - The implementation of the logger
107
111
  */
108
112
  setLogger(logger) {
109
113
  this.log = logger;
@@ -112,7 +116,7 @@ class ServerlessAdapter {
112
116
  /**
113
117
  * Defines the binary settings for whether the response should be treated as binary or not
114
118
  *
115
- * @param binarySettings The binary settings
119
+ * @param binarySettings - The binary settings
116
120
  */
117
121
  setBinarySettings(binarySettings) {
118
122
  this.binarySettings = binarySettings;
@@ -121,7 +125,7 @@ class ServerlessAdapter {
121
125
  /**
122
126
  * Defines the responseWithErrors, a property that indicates whether the error stack should be included in the response or not
123
127
  *
124
- * @param respondWithErrors Should include or not the errors in response
128
+ * @param respondWithErrors - Should include or not the errors in response
125
129
  */
126
130
  setRespondWithErrors(respondWithErrors) {
127
131
  this.respondWithErrors = respondWithErrors;
@@ -130,7 +134,7 @@ class ServerlessAdapter {
130
134
  /**
131
135
  * Add an adapter to the adapters list to handle the event coming from any serverless event source
132
136
  *
133
- * @param adapter The implementation of the adapter contract
137
+ * @param adapter - The implementation of the adapter contract
134
138
  */
135
139
  addAdapter(adapter) {
136
140
  this.adapters.push(adapter);
@@ -156,3 +160,4 @@ class ServerlessAdapter {
156
160
  }
157
161
  }
158
162
  exports.ServerlessAdapter = ServerlessAdapter;
163
+ //# sourceMappingURL=serverless-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"serverless-adapter.js","sourceRoot":"","sources":["../src/serverless-adapter.ts"],"names":[],"mappings":";AAAA,iBAAiB;;;AAUjB,iCAKgB;AAEhB,YAAY;AAEZ;;;;;;;;;;;;;;;;;;;GAmBG;AACH,MAAa,iBAAiB;IAQ5B,qBAAqB;IAErB;;OAEG;IACH,YAAoB,GAAS;QAa7B,YAAY;QAEZ,8BAA8B;QAE9B;;;;WAIG;QACO,mBAAc,GAAmB;YACzC,gBAAgB,EAAE,+BAAwB;YAC1C,YAAY,EAAE,mCAA4B;SAC3C,CAAC;QAEF;;;;;WAKG;QACO,sBAAiB,GAAY,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,CAAC;QAE9E;;WAEG;QACO,QAAG,GAAY,IAAA,0BAAmB,GAAE,CAAC;QAE/C;;WAEG;QACO,aAAQ,GAAmD,EAAE,CAAC;QA1CtE,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAuED,YAAY;IAEZ,wBAAwB;IAExB;;;;OAIG;IACI,MAAM,CAAC,GAAG,CAQf,GAAS;QAET,OAAO,IAAI,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACpC,CAAC;IAED,YAAY;IAEZ,yBAAyB;IAEzB;;;;OAIG;IACI,UAAU,CACf,OAOC;QAED,IAAI,IAAI,CAAC,OAAO;YACd,MAAM,I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