File tree Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Expand file tree Collapse file tree 4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 15
15
- name : Use Node.js
16
16
uses : actions/setup-node@v1
17
17
with :
18
- node-version : " 18 .x"
18
+ node-version : " 20 .x"
19
19
registry-url : " https://registry.npmjs.org"
20
20
- name : Install Dependencies
21
21
run : npm install
38
38
- name : Use Node.js
39
39
uses : actions/setup-node@v1
40
40
with :
41
- node-version : " 18 .x"
41
+ node-version : " 20 .x"
42
42
registry-url : " https://registry.npmjs.org"
43
43
- name : Install Dependencies
44
44
run : npm install
63
63
- name : Use Node.js
64
64
uses : actions/setup-node@v1
65
65
with :
66
- node-version : " 18 .x"
66
+ node-version : " 20 .x"
67
67
registry-url : " https://registry.npmjs.org"
68
68
- name : Install Dependencies
69
69
run : npm install
Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.16.1
4
+
5
+ - Fixed issue with proxy injector not returning response
6
+
3
7
## 0.16.0
4
8
5
9
- Fixed error handling with wrong JSON format (#65 )
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " kras" ,
3
- "version" : " 0.16.0 " ,
3
+ "version" : " 0.16.1 " ,
4
4
"description" : " Efficient server proxying and mocking in Node.js." ,
5
5
"main" : " dist/server/index.js" ,
6
6
"types" : " dist/server/index.d.ts" ,
10
10
"engines" : {
11
11
"node" : " >=16.0.0"
12
12
},
13
+ "homepage" : " https://github.com/FlorianRappl/kras" ,
13
14
"repository" : {
14
15
"type" : " git" ,
15
16
"url" : " https://github.com/FlorianRappl/kras.git"
55
56
"@types/accept-language-parser" : " ^1.5.3" ,
56
57
"@types/body-parser" : " ^1.19.2" ,
57
58
"@types/chokidar" : " ^2.1.3" ,
58
- "@types/cookie" : " ^0.4.1 " ,
59
+ "@types/cookie" : " ^0.5.0 " ,
59
60
"@types/express" : " ^4.17.17" ,
60
61
"@types/express-ws" : " ^3.0.1" ,
61
62
"@types/faker" : " ^5.5.9" ,
72
73
"body-parser" : " ^1.20.2" ,
73
74
"chalk" : " ^3.0.0" ,
74
75
"chokidar" : " ^3.5.3" ,
75
- "cookie" : " ^0.4.2 " ,
76
+ "cookie" : " ^0.5.0 " ,
76
77
"cross-env" : " ^7.0.3" ,
77
78
"dets" : " ^0.14.2" ,
78
79
"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
53
53
} ) ,
54
54
responseType : 'arraybuffer' ,
55
55
method : req . method ,
56
+ validateStatus : ( ) => true ,
56
57
proxy : req . proxy ,
57
58
headers : req . headers ,
58
59
data : req . body ,
You can’t perform that action at this time.
0 commit comments