UNPKG

@villedemontreal/correlation-id

Version:

Express middleware to set a correlation in Express. The correlation id will be consistent across async calls within the handling of a request.

28 lines 757 B
/** * Library constants */ export declare class Constants { /** * The library root. When this library is used * as a dependency in a project, the "libRoot" * will be the path to the dependency folder, * inside the "node_modules". */ libRoot: string; /** * The app root. When this library is used * as a dependency in a project, the "appRoot" * will be the path to the root project! */ appRoot: string; constructor(); /** * Extra values that we can add to the original Express request. */ get requestExtraVariables(): { cidReceivedInRequest: string; cidNew: string; }; } export declare const constants: Constants; //# sourceMappingURL=constants.d.ts.map