File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @lomray/microservice-nodejs-lib" ,
3- "version" : " 2.4.4 " ,
3+ "version" : " 2.4.5 " ,
44 "description" : " Package for create microservice architecture based on NodeJS & inverted json." ,
55 "main" : " lib/index.js" ,
66 "types" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -6,16 +6,18 @@ enum CookiesAction {
66 remove = 'remove' ,
77}
88
9+ interface IMicroserviceResponseCookie {
10+ action : keyof typeof CookiesAction ;
11+ name : string ;
12+ value ?: string ;
13+ options ?: CookieOptions ;
14+ }
15+
916/**
1017 * Microservices data
1118 */
1219interface IMicroserviceResponsePayload {
13- cookies ?: {
14- action : keyof typeof CookiesAction ;
15- name : string ;
16- value ?: string ;
17- options ?: CookieOptions ;
18- } [ ] ;
20+ cookies ?: IMicroserviceResponseCookie [ ] ;
1921}
2022
2123type PayloadExtends < TParams > = TParams & IMicroserviceResponsePayload ;
@@ -40,4 +42,5 @@ export {
4042 IMicroserviceResponseJson ,
4143 IMicroserviceResponseResult ,
4244 CookiesAction ,
45+ IMicroserviceResponseCookie ,
4346} ;
You can’t perform that action at this time.
0 commit comments