@h4ad/serverless-adapter 2.3.1 → 2.3.2

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 (264) 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 +1 -0
  187. package/lib/frameworks/lazy/index.d.ts.map +1 -0
  188. package/lib/frameworks/lazy/index.js +6 -1
  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/handlers/default/default.handler.d.ts +36 -32
  195. package/lib/handlers/default/default.handler.d.ts.map +1 -0
  196. package/lib/handlers/default/default.handler.js +36 -32
  197. package/lib/handlers/default/default.handler.js.map +1 -0
  198. package/lib/handlers/default/index.d.ts +1 -0
  199. package/lib/handlers/default/index.d.ts.map +1 -0
  200. package/lib/handlers/default/index.js +6 -1
  201. package/lib/handlers/default/index.js.map +1 -0
  202. package/lib/handlers/huawei/http-huawei.handler.d.ts +14 -4
  203. package/lib/handlers/huawei/http-huawei.handler.d.ts.map +1 -0
  204. package/lib/handlers/huawei/http-huawei.handler.js +15 -4
  205. package/lib/handlers/huawei/http-huawei.handler.js.map +1 -0
  206. package/lib/handlers/huawei/index.d.ts +1 -0
  207. package/lib/handlers/huawei/index.d.ts.map +1 -0
  208. package/lib/handlers/huawei/index.js +6 -1
  209. package/lib/handlers/huawei/index.js.map +1 -0
  210. package/lib/index.d.ts +1 -0
  211. package/lib/index.d.ts.map +1 -0
  212. package/lib/index.js +6 -1
  213. package/lib/index.js.map +1 -0
  214. package/lib/network/index.d.ts +1 -0
  215. package/lib/network/index.d.ts.map +1 -0
  216. package/lib/network/index.js +6 -1
  217. package/lib/network/index.js.map +1 -0
  218. package/lib/network/request.d.ts +28 -0
  219. package/lib/network/request.d.ts.map +1 -0
  220. package/lib/network/request.js +7 -0
  221. package/lib/network/request.js.map +1 -0
  222. package/lib/network/response.d.ts +18 -1
  223. package/lib/network/response.d.ts.map +1 -0
  224. package/lib/network/response.js +9 -1
  225. package/lib/network/response.js.map +1 -0
  226. package/lib/resolvers/aws-context/aws-context.resolver.d.ts +7 -9
  227. package/lib/resolvers/aws-context/aws-context.resolver.d.ts.map +1 -0
  228. package/lib/resolvers/aws-context/aws-context.resolver.js +7 -9
  229. package/lib/resolvers/aws-context/aws-context.resolver.js.map +1 -0
  230. package/lib/resolvers/aws-context/index.d.ts +1 -0
  231. package/lib/resolvers/aws-context/index.d.ts.map +1 -0
  232. package/lib/resolvers/aws-context/index.js +6 -1
  233. package/lib/resolvers/aws-context/index.js.map +1 -0
  234. package/lib/resolvers/callback/callback.resolver.d.ts +9 -2
  235. package/lib/resolvers/callback/callback.resolver.d.ts.map +1 -0
  236. package/lib/resolvers/callback/callback.resolver.js +6 -2
  237. package/lib/resolvers/callback/callback.resolver.js.map +1 -0
  238. package/lib/resolvers/callback/index.d.ts +1 -0
  239. package/lib/resolvers/callback/index.d.ts.map +1 -0
  240. package/lib/resolvers/callback/index.js +6 -1
  241. package/lib/resolvers/callback/index.js.map +1 -0
  242. package/lib/resolvers/dummy/dummy.resolver.d.ts +5 -1
  243. package/lib/resolvers/dummy/dummy.resolver.d.ts.map +1 -0
  244. package/lib/resolvers/dummy/dummy.resolver.js +5 -1
  245. package/lib/resolvers/dummy/dummy.resolver.js.map +1 -0
  246. package/lib/resolvers/dummy/index.d.ts +1 -0
  247. package/lib/resolvers/dummy/index.d.ts.map +1 -0
  248. package/lib/resolvers/dummy/index.js +6 -1
  249. package/lib/resolvers/dummy/index.js.map +1 -0
  250. package/lib/resolvers/promise/index.d.ts +1 -0
  251. package/lib/resolvers/promise/index.d.ts.map +1 -0
  252. package/lib/resolvers/promise/index.js +6 -1
  253. package/lib/resolvers/promise/index.js.map +1 -0
  254. package/lib/resolvers/promise/promise.resolver.d.ts +5 -1
  255. package/lib/resolvers/promise/promise.resolver.d.ts.map +1 -0
  256. package/lib/resolvers/promise/promise.resolver.js +5 -1
  257. package/lib/resolvers/promise/promise.resolver.js.map +1 -0
  258. package/lib/serverless-adapter.d.ts +17 -12
  259. package/lib/serverless-adapter.d.ts.map +1 -0
  260. package/lib/serverless-adapter.js +17 -12
  261. package/lib/serverless-adapter.js.map +1 -0
  262. package/package.json +18 -2
  263. package/lib/@types/proxy-params.d.ts +0 -8
  264. package/lib/@types/proxy-params.js +0 -2
@@ -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;;OAEG;IACH,SAAS,CAAC,QAAQ,CAAC,EAAE,gBAAgB,CACnC,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,CACR,CAAC;IAEF;;OAEG;IACH,SAAS,CAAC,OAAO,CAAC,EAAE,eAAe,CACjC,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,CACR,CAAC;IAMF;;;;OAIG;WACW,GAAG,CACf,IAAI,EACJ,MAAM,EACN,QAAQ,GAAG,GAAG,EACd,SAAS,GAAG,GAAG,EACf,SAAS,GAAG,GAAG,EACf,OAAO,GAAG,GAAG,EAEb,GAAG,EAAE,IAAI,GACR,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC;IAQ3E;;;;OAIG;IACI,UAAU,CACf,OAAO,EAAE,eAAe,CACtB,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,SAAS,EACT,SAAS,EACT,OAAO,CACR,GACA,IAAI,CAAC,IAAI,EAAE,YAAY,CAAC;IAS3B;;;;OAIG;IACI,WAAW,CAChB,QAAQ,EAAE,gBAAgB,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,GAC1E,IAAI,CAAC,IAAI,EAAE,aAAa,CAAC;IAS5B;;;;OAIG;IACI,YAAY,CACjB,SAAS,EAAE,iBAAiB,CAAC,IAAI,CAAC,GACjC,IAAI,CAAC,IAAI,EAAE,cAAc,CAAC;IAY7B;;;;OAIG;IACI,SAAS,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC,IAAI,EAAE,WAAW,CAAC;IAM1D;;;;OAIG;IACI,iBAAiB,CACtB,cAAc,EAAE,cAAc,GAC7B,IAAI,CAAC,IAAI,EAAE,mBAAmB,CAAC;IAMlC;;;;OAIG;IACI,oBAAoB,CACzB,iBAAiB,EAAE,OAAO,GACzB,IAAI,CAAC,IAAI,EAAE,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":"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"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h4ad/serverless-adapter",
3
- "version": "2.3.1",
4
- "description": "This library enables you to utilize any Cloud or Event Source to respond to web and API requests using your existing Node.js application framework.",
3
+ "version": "2.3.2",
4
+ "description": "Run REST APIs and other web applications using your existing Node.js application framework (NestJS, Express, Koa, Hapi, Fastify and many others), on top of AWS, Huawei and many other clouds.",
5
5
  "main": "./lib/index.js",
6
6
  "files": [
7
7
  "lib/**/*"
@@ -10,11 +10,16 @@
10
10
  "install:peers": "npx npm-install-peers",
11
11
  "prepare": "husky install",
12
12
  "build": "tsc -p tsconfig.build.json",
13
+ "build:docs": "tsc -p tsconfig.doc.json",
13
14
  "clean": "rm -rf ./lib/",
14
15
  "cm": "cz",
15
16
  "coverage": "codecov",
16
17
  "lint": "eslint ./src/ ./test/ --fix",
17
18
  "semantic-release": "semantic-release",
19
+ "docs:generate": "npm run docs:generate:parsing && npm run docs:generate:markdown && npm run docs:generate:api-pages",
20
+ "docs:generate:parsing": "npm run build:docs && ts-node scripts/parse-docs.ts",
21
+ "docs:generate:markdown": "ts-node scripts/generate-markdown.ts",
22
+ "docs:generate:api-pages": "ts-node scripts/generate-api-pages.ts",
18
23
  "test:watch": "jest --watch",
19
24
  "test": "jest --coverage",
20
25
  "typecheck": "tsc --noEmit"
@@ -55,6 +60,11 @@
55
60
  },
56
61
  "homepage": "https://github.com/H4ad/serverless-adapter#readme",
57
62
  "devDependencies": {
63
+ "@microsoft/api-documenter": "7.17.16",
64
+ "@microsoft/api-extractor": "7.24.2",
65
+ "@microsoft/api-extractor-model": "7.17.3",
66
+ "@microsoft/tsdoc": "0.14.1",
67
+ "@rushstack/node-core-library": "^3.45.2",
58
68
  "@types/aws-lambda": "^8.10.92",
59
69
  "@types/body-parser": "^1.19.2",
60
70
  "@types/jest": "^27.4.0",
@@ -72,6 +82,7 @@
72
82
  "eslint-plugin-import": "^2.25.4",
73
83
  "eslint-plugin-node": "^11.1.0",
74
84
  "eslint-plugin-prettier": "^4.0.0",
85
+ "eslint-plugin-tsdoc": "^0.2.14",
75
86
  "husky": "^6.0.0",
76
87
  "jest": "^27.5.1",
77
88
  "lint-staged": "^10.5.4",
@@ -81,10 +92,12 @@
81
92
  "supertest": "^6.2.3",
82
93
  "ts-jest": "^27.1.3",
83
94
  "ts-node": "^10.4.0",
95
+ "typedoc": "^0.22.13",
84
96
  "typescript": "^4.5.5"
85
97
  },
86
98
  "peerDependencies": {
87
99
  "@hapi/hapi": ">= 20.0.0",
100
+ "@types/aws-lambda": "^8.10.92",
88
101
  "@types/express": ">= 4.15.4",
89
102
  "@types/hapi": ">= 18.0.7",
90
103
  "@types/koa": ">= 2.11.2",
@@ -94,6 +107,9 @@
94
107
  "koa": ">= 2.5.1"
95
108
  },
96
109
  "peerDependenciesMeta": {
110
+ "@types/aws-lambda": {
111
+ "optional": true
112
+ },
97
113
  "@hapi/hapi": {
98
114
  "optional": true
99
115
  },
@@ -1,8 +0,0 @@
1
- /// <reference types="node" />
2
- import { RequestListener } from 'http';
3
- import { BinarySettings } from './binary-settings';
4
- export interface ProxyParams {
5
- app: RequestListener;
6
- binaryMimeTypes?: string[];
7
- binarySettings?: BinarySettings;
8
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });