File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - name : Use Node.js
1616 uses : actions/setup-node@v1
1717 with :
18- node-version : " 18 .x"
18+ node-version : " 20 .x"
1919 registry-url : " https://registry.npmjs.org"
2020 - name : Install Dependencies
2121 run : npm install
3838 - name : Use Node.js
3939 uses : actions/setup-node@v1
4040 with :
41- node-version : " 18 .x"
41+ node-version : " 20 .x"
4242 registry-url : " https://registry.npmjs.org"
4343 - name : Install Dependencies
4444 run : npm install
6363 - name : Use Node.js
6464 uses : actions/setup-node@v1
6565 with :
66- node-version : " 18 .x"
66+ node-version : " 20 .x"
6767 registry-url : " https://registry.npmjs.org"
6868 - name : Install Dependencies
6969 run : npm install
Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.16.1
4+
5+ - Fixed issue with proxy injector not returning response
6+
37## 0.16.0
48
59- Fixed error handling with wrong JSON format (#65 )
Original file line number Diff line number Diff line change 11{
22 "name" : " kras" ,
3- "version" : " 0.16.0 " ,
3+ "version" : " 0.16.1 " ,
44 "description" : " Efficient server proxying and mocking in Node.js." ,
55 "main" : " dist/server/index.js" ,
66 "types" : " dist/server/index.d.ts" ,
1010 "engines" : {
1111 "node" : " >=16.0.0"
1212 },
13+ "homepage" : " https://github.com/FlorianRappl/kras" ,
1314 "repository" : {
1415 "type" : " git" ,
1516 "url" : " https://github.com/FlorianRappl/kras.git"
5556 "@types/accept-language-parser" : " ^1.5.3" ,
5657 "@types/body-parser" : " ^1.19.2" ,
5758 "@types/chokidar" : " ^2.1.3" ,
58- "@types/cookie" : " ^0.4.1 " ,
59+ "@types/cookie" : " ^0.5.0 " ,
5960 "@types/express" : " ^4.17.17" ,
6061 "@types/express-ws" : " ^3.0.1" ,
6162 "@types/faker" : " ^5.5.9" ,
7273 "body-parser" : " ^1.20.2" ,
7374 "chalk" : " ^3.0.0" ,
7475 "chokidar" : " ^3.5.3" ,
75- "cookie" : " ^0.4.2 " ,
76+ "cookie" : " ^0.5.0 " ,
7677 "cross-env" : " ^7.0.3" ,
7778 "dets" : " ^0.14.2" ,
7879 "enzyme-to-json" : " ^3.6.2" ,
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ export async function proxyRequest(req: ProxyRequestOptions): Promise<KrasAnswer
5353 } ) ,
5454 responseType : 'arraybuffer' ,
5555 method : req . method ,
56+ validateStatus : ( ) => true ,
5657 proxy : req . proxy ,
5758 headers : req . headers ,
5859 data : req . body ,
You can’t perform that action at this time.
0 commit comments