@fedify/koa 2.5.0-dev.2619 → 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 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.forEach((value, key) => ctx.set(key, value));
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.forEach((value, key) => ctx.set(key, value));
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.2619+88aa7efd",
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.2619+88aa7efd"
50
+ "@fedify/fedify": "^2.5.0-dev.2664+4790a72e"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@types/koa": "^2.15.0",