File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
types/express-correlation-id Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,4 @@ app.use(correlator({}));
77app . use ( correlator ( { header : "x-correlation-id" } ) ) ;
88
99const x : string = correlator . getId ( ) || "" ;
10+ correlator . setId ( "1234" ) ;
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { RequestHandler } from "express-serve-static-core";
33declare const correlator : {
44 ( options ?: { header ?: string | undefined } ) : RequestHandler ;
55 getId ( ) : string | undefined ;
6+ setId ( id : string ) : void ;
67} ;
78
89export = correlator ;
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "name" : " @types/express-correlation-id" ,
4- "version" : " 1.2 .9999" ,
4+ "version" : " 3.0 .9999" ,
55 "projects" : [
66 " https://github.com/toboid/express-correlation-id#readme"
77 ],
1212 "@types/express" : " *" ,
1313 "@types/express-correlation-id" : " workspace:."
1414 },
15- "owners" : []
15+ "owners" : [
16+ {
17+ "name" : " Kitthanat Srirussamee" ,
18+ "githubUsername" : " greenrenge"
19+ }
20+ ]
1621}
You can’t perform that action at this time.
0 commit comments