Commit Graph

5 Commits

Author SHA1 Message Date
Miroslav Bajtoš 28e99e5e2c 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-08-01 15:23:19 +02:00
Miroslav Bajtoš 71585a2395 fixup! style 2016-07-29 09:39:38 +02:00
Miroslav Bajtoš 1f214bf3ba 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-07-29 09:36:34 +02:00
Miroslav Bajtoš 867a7c3616 Rename to loopback-context/LoopBackContext 2016-07-29 09:36:34 +02:00
Miroslav Bajtoš 9bd4afbe7e Initial implementation 2016-07-29 09:17:04 +02:00