File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @fastify/http-proxy" ,
3- "version" : " 10.0.0-pre.fv5.2 " ,
3+ "version" : " 10.0.0" ,
44 "description" : " proxy http requests, for Fastify" ,
55 "main" : " index.js" ,
66 "type" : " commonjs" ,
3737 "express" : " ^4.19.2" ,
3838 "express-http-proxy" : " ^2.0.0" ,
3939 "fast-proxy" : " ^2.1.0" ,
40- "fastify" : " ^5.0.0-alpha.3 " ,
40+ "fastify" : " ^5.0.0-alpha.4 " ,
4141 "got" : " ^11.8.6" ,
4242 "http-errors" : " ^2.0.0" ,
4343 "http-proxy" : " ^1.18.1" ,
5252 "why-is-node-running" : " ^3.0.0"
5353 },
5454 "dependencies" : {
55- "@fastify/reply-from" : " ^10 .0.0-pre.fv5.1 " ,
55+ "@fastify/reply-from" : " ^11 .0.0" ,
5656 "fast-querystring" : " ^1.1.2" ,
57- "fastify-plugin" : " ^5.0.0-pre.fv5.1 " ,
57+ "fastify-plugin" : " ^5.0.0" ,
5858 "ws" : " ^8.16.0"
5959 },
6060 "tsd" : {
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ async function run () {
1919 } )
2020
2121 origin . get ( '/redirect' , async ( request , reply ) => {
22- return reply . redirect ( 302 , 'https://fastify.dev' )
22+ return reply . redirect ( 'https://fastify.dev' , 302 )
2323 } )
2424
2525 origin . post ( '/this-has-data' , async ( request , reply ) => {
@@ -666,7 +666,7 @@ async function run () {
666666 upstream : `http://localhost:${ origin . server . address ( ) . port } ` ,
667667 prefix : '/api' ,
668668 replyOptions : {
669- onResponse ( request , reply , stream ) {
669+ onResponse ( request , reply , { stream } ) {
670670 return reply . send (
671671 stream . pipe (
672672 new Transform ( {
You can’t perform that action at this time.
0 commit comments