nitropack-nightly 2.11.8-20250324-211144.e5370593 → 2.11.8-20250324-220806.305f7e1a

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.
@@ -1,3 +1,3 @@
1
- const version = "2.11.8-20250324-211144.e5370593";
1
+ const version = "2.11.8-20250324-220806.305f7e1a";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.8-20250324-211144.e5370593";
1
+ const version = "2.11.8-20250324-220806.305f7e1a";
2
2
 
3
3
  export { version };
@@ -1,3 +1,3 @@
1
- const version = "2.11.8-20250324-211144.e5370593";
1
+ const version = "2.11.8-20250324-220806.305f7e1a";
2
2
 
3
3
  export { version };
@@ -1,6 +1,7 @@
1
1
  import "#nitro-internal-pollyfills";
2
2
  import { useNitroApp } from "nitropack/runtime";
3
3
  import {
4
+ normalizeCookieHeader,
4
5
  normalizeLambdaIncomingHeaders,
5
6
  normalizeLambdaOutgoingHeaders
6
7
  } from "nitropack/runtime/internal";
@@ -25,8 +26,13 @@ export const handler = awslambda.streamifyResponse(
25
26
  query,
26
27
  body: event.isBase64Encoded ? Buffer.from(event.body || "", "base64").toString("utf8") : event.body
27
28
  });
29
+ const isApiGwV2 = "cookies" in event || "rawPath" in event;
30
+ const cookies = normalizeCookieHeader(r.headers["set-cookie"]);
28
31
  const httpResponseMetadata = {
29
32
  statusCode: r.status,
33
+ ...cookies.length > 0 && {
34
+ ...isApiGwV2 ? { cookies } : { multiValueHeaders: { "set-cookie": cookies } }
35
+ },
30
36
  headers: {
31
37
  ...normalizeLambdaOutgoingHeaders(r.headers, true),
32
38
  "Transfer-Encoding": "chunked"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nitropack-nightly",
3
- "version": "2.11.8-20250324-211144.e5370593",
3
+ "version": "2.11.8-20250324-220806.305f7e1a",
4
4
  "description": "Build and Deploy Universal JavaScript Servers",
5
5
  "repository": "nitrojs/nitro",
6
6
  "license": "MIT",