@vercube/serverless 0.0.43 → 0.0.46

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.
@@ -2,7 +2,7 @@ import { t as ServerlessHandler } from "../../ServerlessTypes-XdyGzZOn.mjs";
2
2
  import { App } from "@vercube/core";
3
3
  import { Writable } from "node:stream";
4
4
 
5
- //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.160/node_modules/@types/aws-lambda/common/api-gateway.d.ts
5
+ //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/common/api-gateway.d.ts
6
6
  // Default authorizer type, prefer using a specific type with the "...WithAuthorizer..." variant types.
7
7
  // Note that this doesn't have to be a context from a custom lambda outhorizer, AWS also has a cognito
8
8
  // authorizer type and could add more, so the property won't always be a string.
@@ -68,7 +68,7 @@ interface APIGatewayEventIdentity {
68
68
  vpceId?: string | undefined;
69
69
  }
70
70
  //#endregion
71
- //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.160/node_modules/@types/aws-lambda/handler.d.ts
71
+ //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/handler.d.ts
72
72
  /**
73
73
  * {@link Handler} context parameter.
74
74
  * See {@link https://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html AWS documentation}.
@@ -204,7 +204,7 @@ declare global {
204
204
  }
205
205
  }
206
206
  //#endregion
207
- //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.160/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts
207
+ //#region ../../node_modules/.pnpm/@types+aws-lambda@8.10.161/node_modules/@types/aws-lambda/trigger/api-gateway-proxy.d.ts
208
208
  /**
209
209
  * Works with Lambda Proxy Integration for Rest API or HTTP API integration Payload Format version 1.0
210
210
  * @see - https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html
@@ -1,5 +1,4 @@
1
1
  import { toLambdaHandler } from "srvx/aws-lambda";
2
-
3
2
  //#region src/Adapters/aws-lambda/index.ts
4
3
  /**
5
4
  * Converts a Vercube App instance into an AWS Lambda handler function for API Gateway integration.
@@ -31,6 +30,5 @@ function toServerlessHandler(app) {
31
30
  return await app.fetch(request);
32
31
  } });
33
32
  }
34
-
35
33
  //#endregion
36
- export { toServerlessHandler };
34
+ export { toServerlessHandler };
@@ -4,7 +4,7 @@ import { Blob } from "buffer";
4
4
  import { ReadableStream } from "stream/web";
5
5
  import { URLSearchParams } from "url";
6
6
 
7
- //#region ../../node_modules/.pnpm/@azure+functions@4.11.1/node_modules/@azure/functions/types/http.d.ts
7
+ //#region ../../node_modules/.pnpm/@azure+functions@4.12.0/node_modules/@azure/functions/types/http.d.ts
8
8
  /**
9
9
  * HTTP request object. Provided to your function when using HTTP Bindings.
10
10
  */
@@ -16,7 +16,6 @@ function headersToObject(input) {
16
16
  });
17
17
  return headers;
18
18
  }
19
-
20
19
  //#endregion
21
20
  //#region src/Utils/cookies.ts
22
21
  /**
@@ -69,7 +68,6 @@ function cookiesFromHeaders$1(headers) {
69
68
  if (cookies.length === 0) return void 0;
70
69
  return cookies.map(parseCookieString);
71
70
  }
72
-
73
71
  //#endregion
74
72
  //#region src/Adapters/azure-functions/Utils/Request.ts
75
73
  /**
@@ -104,7 +102,6 @@ function convertEventToRequest(request) {
104
102
  } : {}
105
103
  });
106
104
  }
107
-
108
105
  //#endregion
109
106
  //#region src/Adapters/azure-functions/Utils/Utils.ts
110
107
  /**
@@ -141,7 +138,6 @@ function convertGenericCookieToAzure(genericCookie) {
141
138
  maxAge: genericCookie.maxAge
142
139
  };
143
140
  }
144
-
145
141
  //#endregion
146
142
  //#region src/Adapters/azure-functions/Utils/Response.ts
147
143
  /**
@@ -173,7 +169,6 @@ function convertResponseToAzureFunctionsResponse(response) {
173
169
  body: response.body
174
170
  };
175
171
  }
176
-
177
172
  //#endregion
178
173
  //#region src/Adapters/azure-functions/index.ts
179
174
  /**
@@ -205,6 +200,5 @@ function toServerlessHandler(app) {
205
200
  return convertResponseToAzureFunctionsResponse(await app.fetch(request));
206
201
  };
207
202
  }
208
-
209
203
  //#endregion
210
- export { toServerlessHandler };
204
+ export { toServerlessHandler };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- export { };
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/serverless",
3
- "version": "0.0.43",
3
+ "version": "0.0.46",
4
4
  "description": "Serverless module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,18 +36,22 @@
36
36
  "azure-function-http"
37
37
  ],
38
38
  "dependencies": {
39
- "srvx": "0.11.0",
39
+ "srvx": "0.11.13",
40
40
  "ufo": "1.6.3",
41
- "@vercube/core": "0.0.43",
42
- "@vercube/di": "0.0.43"
41
+ "@vercube/core": "0.0.46",
42
+ "@vercube/di": "0.0.46"
43
43
  },
44
44
  "devDependencies": {
45
- "@azure/functions": "4.11.1",
46
- "@types/aws-lambda": "8.10.160"
45
+ "@azure/functions": "4.12.0",
46
+ "@types/aws-lambda": "8.10.161"
47
47
  },
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  },
51
+ "inlinedDependencies": {
52
+ "@azure/functions": "4.12.0",
53
+ "@types/aws-lambda": "8.10.161"
54
+ },
51
55
  "scripts": {
52
56
  "build": "tsdown --config tsdown.config.ts --config-loader=unrun"
53
57
  }