@mono-labs/dev 0.1.263 → 0.1.265
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.
|
@@ -9,7 +9,7 @@ function synthesizeApiGatewayEvent(req) {
|
|
|
9
9
|
const hasBody = req.method !== 'GET' && req.method !== 'HEAD';
|
|
10
10
|
const body = hasBody ? (0, aws_event_synthesis_1.serializeBody)(req.body) : null;
|
|
11
11
|
const queryParams = (0, aws_event_synthesis_1.extractQueryParams)(req.query);
|
|
12
|
-
const { path, queryString } = (0, aws_event_synthesis_1.splitUrl)(req.
|
|
12
|
+
const { path, queryString } = (0, aws_event_synthesis_1.splitUrl)(req.url);
|
|
13
13
|
const requestId = (0, aws_event_synthesis_1.generateRequestId)();
|
|
14
14
|
const now = Date.now();
|
|
15
15
|
return {
|
|
@@ -47,7 +47,7 @@ function synthesizeALBEvent(req) {
|
|
|
47
47
|
const hasBody = req.method !== 'GET' && req.method !== 'HEAD';
|
|
48
48
|
const body = hasBody ? (0, aws_event_synthesis_1.serializeBody)(req.body) : null;
|
|
49
49
|
const queryParams = (0, aws_event_synthesis_1.extractQueryParams)(req.query);
|
|
50
|
-
const { path } = (0, aws_event_synthesis_1.splitUrl)(req.
|
|
50
|
+
const { path } = (0, aws_event_synthesis_1.splitUrl)(req.url);
|
|
51
51
|
return {
|
|
52
52
|
requestContext: {
|
|
53
53
|
elb: {
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ export function synthesizeApiGatewayEvent(req: Request): APIGatewayProxyEventV2
|
|
|
15
15
|
const hasBody = req.method !== 'GET' && req.method !== 'HEAD'
|
|
16
16
|
const body = hasBody ? serializeBody(req.body) : null
|
|
17
17
|
const queryParams = extractQueryParams(req.query as Record<string, unknown>)
|
|
18
|
-
const { path, queryString } = splitUrl(req.
|
|
18
|
+
const { path, queryString } = splitUrl(req.url)
|
|
19
19
|
const requestId = generateRequestId()
|
|
20
20
|
const now = Date.now()
|
|
21
21
|
|
|
@@ -55,7 +55,7 @@ export function synthesizeALBEvent(req: Request): ALBEvent {
|
|
|
55
55
|
const hasBody = req.method !== 'GET' && req.method !== 'HEAD'
|
|
56
56
|
const body = hasBody ? serializeBody(req.body) : null
|
|
57
57
|
const queryParams = extractQueryParams(req.query as Record<string, unknown>)
|
|
58
|
-
const { path } = splitUrl(req.
|
|
58
|
+
const { path } = splitUrl(req.url)
|
|
59
59
|
|
|
60
60
|
return {
|
|
61
61
|
requestContext: {
|