@whatwg-node/server 0.4.14 → 0.4.15-alpha-20221111153822-97fe4d1

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.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -127,7 +127,7 @@ app.route({
127
127
 
128
128
  reply.status(response.status)
129
129
 
130
- reply.send(response.body)
130
+ reply.send(Readable.from(response.body))
131
131
 
132
132
  return reply
133
133
  }
@@ -157,7 +157,7 @@ app.use(async ctx => {
157
157
  ctx.append(key, value)
158
158
  })
159
159
 
160
- ctx.body = response.body
160
+ ctx.body = Readable.from(response.body)
161
161
  })
162
162
 
163
163
  app.listen(4000, () => {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@whatwg-node/server",
3
- "version": "0.4.14",
3
+ "version": "0.4.15-alpha-20221111153822-97fe4d1",
4
4
  "description": "Fetch API compliant HTTP Server adapter",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "@types/node": "^18.0.6"
8
8
  },
9
9
  "dependencies": {
10
- "@whatwg-node/fetch": "0.5.1",
10
+ "@whatwg-node/fetch": "0.5.2-alpha-20221111153822-97fe4d1",
11
11
  "tslib": "^2.3.1"
12
12
  },
13
13
  "repository": {