@cedarjs/api-server 4.0.0-canary.13834 → 4.0.0-canary.13837
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/bin.js +6 -2
- package/dist/cjs/bin.js +6 -2
- package/dist/cjs/requestHandlers/awsLambdaFastify.d.ts.map +1 -1
- package/dist/cjs/requestHandlers/awsLambdaFastify.js +6 -2
- package/dist/requestHandlers/awsLambdaFastify.d.ts.map +1 -1
- package/dist/requestHandlers/awsLambdaFastify.js +6 -2
- package/package.json +9 -9
package/dist/bin.js
CHANGED
|
@@ -240,14 +240,18 @@ var init_awsLambdaFastify = __esm({
|
|
|
240
240
|
);
|
|
241
241
|
return {
|
|
242
242
|
httpMethod: request.method,
|
|
243
|
-
headers:
|
|
243
|
+
headers: {
|
|
244
|
+
"x-forwarded-proto": request.protocol,
|
|
245
|
+
...request.headers
|
|
246
|
+
},
|
|
244
247
|
path: request.urlData("path"),
|
|
245
248
|
queryStringParameters: qsParams,
|
|
246
249
|
requestContext: {
|
|
247
250
|
requestId: request.id,
|
|
248
251
|
identity: {
|
|
249
252
|
sourceIp: request.ip
|
|
250
|
-
}
|
|
253
|
+
},
|
|
254
|
+
domainName: request.hostname
|
|
251
255
|
},
|
|
252
256
|
...parseBody(request.rawBody || "")
|
|
253
257
|
// adds `body` and `isBase64Encoded`
|
package/dist/cjs/bin.js
CHANGED
|
@@ -262,14 +262,18 @@ var init_awsLambdaFastify = __esm({
|
|
|
262
262
|
);
|
|
263
263
|
return {
|
|
264
264
|
httpMethod: request.method,
|
|
265
|
-
headers:
|
|
265
|
+
headers: {
|
|
266
|
+
"x-forwarded-proto": request.protocol,
|
|
267
|
+
...request.headers
|
|
268
|
+
},
|
|
266
269
|
path: request.urlData("path"),
|
|
267
270
|
queryStringParameters: qsParams,
|
|
268
271
|
requestContext: {
|
|
269
272
|
requestId: request.id,
|
|
270
273
|
identity: {
|
|
271
274
|
sourceIp: request.ip
|
|
272
|
-
}
|
|
275
|
+
},
|
|
276
|
+
domainName: request.hostname
|
|
273
277
|
},
|
|
274
278
|
...parseBody(request.rawBody || "")
|
|
275
279
|
// adds `body` and `isBase64Encoded`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"awsLambdaFastify.d.ts","sourceRoot":"","sources":["../../../src/requestHandlers/awsLambdaFastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"awsLambdaFastify.d.ts","sourceRoot":"","sources":["../../../src/requestHandlers/awsLambdaFastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,OAAO,EAGR,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3D,eAAO,MAAM,4BAA4B,GACvC,SAAS,cAAc,KACtB,oBA6BF,CAAA;AAoCD,eAAO,MAAM,cAAc,GACzB,KAAK,cAAc,EACnB,OAAO,YAAY,EACnB,SAAS,OAAO,kBAmCjB,CAAA"}
|
|
@@ -35,14 +35,18 @@ const lambdaEventForFastifyRequest = (request) => {
|
|
|
35
35
|
);
|
|
36
36
|
return {
|
|
37
37
|
httpMethod: request.method,
|
|
38
|
-
headers:
|
|
38
|
+
headers: {
|
|
39
|
+
"x-forwarded-proto": request.protocol,
|
|
40
|
+
...request.headers
|
|
41
|
+
},
|
|
39
42
|
path: request.urlData("path"),
|
|
40
43
|
queryStringParameters: qsParams,
|
|
41
44
|
requestContext: {
|
|
42
45
|
requestId: request.id,
|
|
43
46
|
identity: {
|
|
44
47
|
sourceIp: request.ip
|
|
45
|
-
}
|
|
48
|
+
},
|
|
49
|
+
domainName: request.hostname
|
|
46
50
|
},
|
|
47
51
|
...(0, import_utils.parseBody)(request.rawBody || "")
|
|
48
52
|
// adds `body` and `isBase64Encoded`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"awsLambdaFastify.d.ts","sourceRoot":"","sources":["../../src/requestHandlers/awsLambdaFastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,OAAO,
|
|
1
|
+
{"version":3,"file":"awsLambdaFastify.d.ts","sourceRoot":"","sources":["../../src/requestHandlers/awsLambdaFastify.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAEV,oBAAoB,EACpB,OAAO,EAGR,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAK3D,eAAO,MAAM,4BAA4B,GACvC,SAAS,cAAc,KACtB,oBA6BF,CAAA;AAoCD,eAAO,MAAM,cAAc,GACzB,KAAK,cAAc,EACnB,OAAO,YAAY,EACnB,SAAS,OAAO,kBAmCjB,CAAA"}
|
|
@@ -11,14 +11,18 @@ const lambdaEventForFastifyRequest = (request) => {
|
|
|
11
11
|
);
|
|
12
12
|
return {
|
|
13
13
|
httpMethod: request.method,
|
|
14
|
-
headers:
|
|
14
|
+
headers: {
|
|
15
|
+
"x-forwarded-proto": request.protocol,
|
|
16
|
+
...request.headers
|
|
17
|
+
},
|
|
15
18
|
path: request.urlData("path"),
|
|
16
19
|
queryStringParameters: qsParams,
|
|
17
20
|
requestContext: {
|
|
18
21
|
requestId: request.id,
|
|
19
22
|
identity: {
|
|
20
23
|
sourceIp: request.ip
|
|
21
|
-
}
|
|
24
|
+
},
|
|
25
|
+
domainName: request.hostname
|
|
22
26
|
},
|
|
23
27
|
...parseBody(request.rawBody || "")
|
|
24
28
|
// adds `body` and `isBase64Encoded`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/api-server",
|
|
3
|
-
"version": "4.0.0-canary.
|
|
3
|
+
"version": "4.0.0-canary.13837+81a27a64fc",
|
|
4
4
|
"description": "CedarJS's HTTP server for Serverless Functions",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -111,11 +111,11 @@
|
|
|
111
111
|
"test:watch": "vitest watch"
|
|
112
112
|
},
|
|
113
113
|
"dependencies": {
|
|
114
|
-
"@cedarjs/context": "4.0.0-canary.
|
|
115
|
-
"@cedarjs/fastify-web": "4.0.0-canary.
|
|
116
|
-
"@cedarjs/internal": "4.0.0-canary.
|
|
117
|
-
"@cedarjs/project-config": "4.0.0-canary.
|
|
118
|
-
"@cedarjs/web-server": "4.0.0-canary.
|
|
114
|
+
"@cedarjs/context": "4.0.0-canary.13837",
|
|
115
|
+
"@cedarjs/fastify-web": "4.0.0-canary.13837",
|
|
116
|
+
"@cedarjs/internal": "4.0.0-canary.13837",
|
|
117
|
+
"@cedarjs/project-config": "4.0.0-canary.13837",
|
|
118
|
+
"@cedarjs/web-server": "4.0.0-canary.13837",
|
|
119
119
|
"@fastify/multipart": "9.4.0",
|
|
120
120
|
"@fastify/url-data": "6.0.3",
|
|
121
121
|
"ansis": "4.2.0",
|
|
@@ -132,7 +132,7 @@
|
|
|
132
132
|
"yargs": "17.7.2"
|
|
133
133
|
},
|
|
134
134
|
"devDependencies": {
|
|
135
|
-
"@cedarjs/framework-tools": "4.0.0-canary.
|
|
135
|
+
"@cedarjs/framework-tools": "4.0.0-canary.13837",
|
|
136
136
|
"@types/aws-lambda": "8.10.161",
|
|
137
137
|
"@types/dotenv-defaults": "^5.0.0",
|
|
138
138
|
"@types/split2": "4.2.3",
|
|
@@ -145,7 +145,7 @@
|
|
|
145
145
|
"vitest": "3.2.4"
|
|
146
146
|
},
|
|
147
147
|
"peerDependencies": {
|
|
148
|
-
"@cedarjs/graphql-server": "4.0.0-canary.
|
|
148
|
+
"@cedarjs/graphql-server": "4.0.0-canary.13837"
|
|
149
149
|
},
|
|
150
150
|
"peerDependenciesMeta": {
|
|
151
151
|
"@cedarjs/graphql-server": {
|
|
@@ -155,5 +155,5 @@
|
|
|
155
155
|
"publishConfig": {
|
|
156
156
|
"access": "public"
|
|
157
157
|
},
|
|
158
|
-
"gitHead": "
|
|
158
|
+
"gitHead": "81a27a64fc574555674522b7e683e6b96ab87741"
|
|
159
159
|
}
|