@fedify/koa 2.5.0-dev.2618 → 2.5.0-dev.2664
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
|
@@ -144,7 +144,7 @@ function waitForReadable(message, signal) {
|
|
|
144
144
|
}
|
|
145
145
|
function setResponse(ctx, response) {
|
|
146
146
|
ctx.status = response.status;
|
|
147
|
-
response.headers
|
|
147
|
+
for (const [key, value] of response.headers) ctx.set(key, value);
|
|
148
148
|
if (response.body == null) return;
|
|
149
149
|
const reader = response.body.getReader();
|
|
150
150
|
ctx.body = new node_stream.Readable({ async read() {
|
package/dist/index.js
CHANGED
|
@@ -143,7 +143,7 @@ function waitForReadable(message, signal) {
|
|
|
143
143
|
}
|
|
144
144
|
function setResponse(ctx, response) {
|
|
145
145
|
ctx.status = response.status;
|
|
146
|
-
response.headers
|
|
146
|
+
for (const [key, value] of response.headers) ctx.set(key, value);
|
|
147
147
|
if (response.body == null) return;
|
|
148
148
|
const reader = response.body.getReader();
|
|
149
149
|
ctx.body = new Readable({ async read() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fedify/koa",
|
|
3
|
-
"version": "2.5.0-dev.
|
|
3
|
+
"version": "2.5.0-dev.2664+4790a72e",
|
|
4
4
|
"description": "Integrate Fedify with Koa",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Fedify",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
],
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"koa": "^2.0.0 || ^3.0.0",
|
|
50
|
-
"@fedify/fedify": "^2.5.0-dev.
|
|
50
|
+
"@fedify/fedify": "^2.5.0-dev.2664+4790a72e"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/koa": "^2.15.0",
|