@fedify/express 2.0.0-pr.559.6 → 2.0.1-dev.400
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/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -65,7 +65,7 @@ function integrateFederation(federation, contextDataFactory) {
|
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
67
|
function fromERequest(req) {
|
|
68
|
-
const url = `${req.protocol}://${req.header("Host")
|
|
68
|
+
const url = `${req.protocol}://${req.host ?? req.header("Host")}${req.url}`;
|
|
69
69
|
const headers = new Headers();
|
|
70
70
|
for (const [key, value] of Object.entries(req.headers)) if (Array.isArray(value)) for (const v of value) headers.append(key, v);
|
|
71
71
|
else if (typeof value === "string") headers.append(key, value);
|
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function integrateFederation(federation, contextDataFactory) {
|
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function fromERequest(req) {
|
|
45
|
-
const url = `${req.protocol}://${req.header("Host")
|
|
45
|
+
const url = `${req.protocol}://${req.host ?? req.header("Host")}${req.url}`;
|
|
46
46
|
const headers = new Headers();
|
|
47
47
|
for (const [key, value] of Object.entries(req.headers)) if (Array.isArray(value)) for (const v of value) headers.append(key, v);
|
|
48
48
|
else if (typeof value === "string") headers.append(key, value);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/express",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1-dev.400+51b2d013",
|
|
4
4
|
"description": "Integrate Fedify with Express",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
],
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"express": "^4.0.0",
|
|
52
|
-
"@fedify/fedify": "^2.0.
|
|
52
|
+
"@fedify/fedify": "^2.0.1-dev.400+51b2d013"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@types/express": "^4.0.0",
|