Commit Graph

5 Commits

Author SHA1 Message Date
Miroslav Bajtoš 404c27bd5b API cleanup
Rename "per-request-context" middleware to shorter "per-request".

Introduce "LoopBackContext.perRequest" as a shortcut for way too long
  "loopback-context/server/middlewar/per-request"
2016-09-09 10:27:37 +02:00
Miroslav Bajtoš 12a7113aeb fixup! style 2016-08-02 14:41:24 +02:00
Miroslav Bajtoš df60f13f4d Lazy-load CLS module
As soon as CLS module is loaded, the instrumentation/patching of
async-listener is fired. This may cause stack overflows due to promise
instrumentation.

By loading CLS module lazily (only when used for real), we avoid
this kind of problems in applications that are not using current-context
at all.
2016-08-02 14:41:24 +02:00
Miroslav Bajtoš 2a0bbb3c77 Rename to loopback-context/LoopBackContext 2016-08-02 14:41:24 +02:00
Miroslav Bajtoš c7e8bf7001 Initial implementation 2016-08-02 14:41:24 +02:00