@certik/serverless-api 1.0.4 → 1.0.5
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/CHANGELOG.md +4 -0
- package/entrypoint.js +2 -3
- package/lib/cors.js +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/entrypoint.js
CHANGED
|
@@ -7,9 +7,7 @@ import pathModule from "node:path";
|
|
|
7
7
|
import { getRoutes } from "./lib/routes.js";
|
|
8
8
|
|
|
9
9
|
export const handler = async (event, context) => {
|
|
10
|
-
const routes = await getRoutes(
|
|
11
|
-
pathModule.resolve("routes"),
|
|
12
|
-
);
|
|
10
|
+
const routes = await getRoutes(pathModule.resolve("routes"));
|
|
13
11
|
|
|
14
12
|
const currentRoute = routes.find((route) => {
|
|
15
13
|
return (
|
|
@@ -43,6 +41,7 @@ export const handler = async (event, context) => {
|
|
|
43
41
|
{
|
|
44
42
|
...event,
|
|
45
43
|
body,
|
|
44
|
+
isBase64Encoded: false,
|
|
46
45
|
},
|
|
47
46
|
context,
|
|
48
47
|
);
|
package/lib/cors.js
CHANGED