express-http-context icon indicating copy to clipboard operation
express-http-context copied to clipboard

fix: check if there is an existing namespace before creating one

Open daxadal opened this issue 1 year ago • 0 comments

Solves https://github.com/skonves/express-http-context/issues/26

Changes

fix: check if there is an existing namespace before creating one

Description

As stated in https://github.com/skonves/express-http-context/issues/26#issuecomment-859488026, if the library is required in two different dependences, the code creates a new namespaces without checking if there is already an existing one. If the endpoint request travels through both of this dependencies, the context will be lost in the middle

daxadal avatar Mar 04 '24 17:03 daxadal