gunnargrosch / failure-lambda

Module for fault injection into AWS Lambda
MIT License
94 stars 13 forks source link

fixed state managemnt of mitm listeners #21

Closed jpbarto closed 3 years ago

jpbarto commented 3 years ago

this is a fix for #16 - it puts the mitm object (collection of EventEmitter listeners) in the library global namespace so that it persists across function invocations. this lets failure-lambda manage the number of listeners registered by the library.

gunnargrosch commented 3 years ago

LGTM.