nitropack-nightly 2.11.8-20250324-211144.e5370593 → 2.11.8-20250324-220949.4670f7ef
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.
package/dist/core/index.mjs
CHANGED
|
@@ -483,9 +483,8 @@ async function resolvePathOptions(options) {
|
|
|
483
483
|
options.workspaceDir ||= await findWorkspaceDir(options.rootDir).catch(
|
|
484
484
|
() => options.rootDir
|
|
485
485
|
);
|
|
486
|
-
options.srcDir = resolve(options.srcDir || options.rootDir);
|
|
487
486
|
for (const key of ["srcDir", "buildDir"]) {
|
|
488
|
-
options[key] = resolve(options.rootDir, options[key]);
|
|
487
|
+
options[key] = resolve(options.rootDir, options[key] || ".");
|
|
489
488
|
}
|
|
490
489
|
options.alias = {
|
|
491
490
|
...options.alias,
|
package/dist/meta/index.d.mts
CHANGED
package/dist/meta/index.d.ts
CHANGED
package/dist/meta/index.mjs
CHANGED
|
@@ -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