File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " aliyun-serverless-wrapper" ,
3- "version" : " 1.0.6 " ,
3+ "version" : " 1.0.7 " ,
44 "description" : " wrapper for aliyun serverless" ,
55 "main" : " dist/index.js" ,
66 "repository" : {
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ export const mockRequest = (req?: ITestReq) => {
3535 }
3636
3737 return Object . assign ( request , {
38- queries : new Map ( Object . entries ( req . query || { } ) ) ,
38+ queries : req . query || { } ,
3939 clientIp : "127.0.0.1" ,
4040 path : "/"
4141 } )
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { AliyunHttpRequest } from "./types"
33export class Request {
44 public body : any
55
6- constructor ( private readonly _req : AliyunHttpRequest ) { }
6+ public constructor ( private readonly _req : AliyunHttpRequest ) { }
77
88 public get headers ( ) {
99 return this . _req . headers
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Context } from "./context"
55export interface AliyunHttpRequest extends IncomingMessage {
66 headers : any
77 path : string
8- queries : Map < string , string | any [ ] >
8+ queries : { [ key : string ] : string | any [ ] }
99 method : string
1010 clientIp : string
1111 url : string
You can’t perform that action at this time.
0 commit comments